Skip to content

Commit 9bfeedf

Browse files
committed
expose express, remove unused validator fn
1 parent b359d1b commit 9bfeedf

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ declare module '@exajs/core/database' {
99
export { connection, models };
1010
}
1111

12+
declare module '@exajs/core/system/express' {
13+
const express: any;
14+
export default express;
15+
export * from 'express';
16+
}
17+
1218
declare module '@exajs/core/system/sequelize' {
1319
const sequelize: any;
1420
export default sequelize;

lib/system/express.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import express from 'express';
2+
3+
export default express;
4+
export * from 'express';

lib/util/validator.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ export default new class {
137137
return errors;
138138
}
139139

140-
format(errors) {
141-
return { errors };
142-
}
143-
144140
to_string(errors) {
145141
return errors.join('\n');
146142
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@exajs/core",
33
"type": "module",
44
"author": "Brian Seymour <@realtux>",
5-
"version": "0.0.29",
5+
"version": "0.0.30",
66
"description": "modern opinionated node.js framework",
77
"license": "MIT",
88
"homepage": "https://github.com/realtux/exa",
@@ -22,6 +22,7 @@
2222
".": "./lib/index.js",
2323
"./database": "./lib/database/index.js",
2424
"./util": "./lib/util/index.js",
25+
"./system/express": "./lib/system/express.js",
2526
"./system/sequelize": "./lib/system/sequelize.js"
2627
},
2728
"dependencies": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## IMPORTANT!!! THIS PROJECT IS AN EARLY ACCESS PREVIEW THAT IS BEING ACTIVELY DEVELOPED. IT MAY OR MAY NOT BE SUITABLE FOR PRODUCTION. EXPECTED 1.0 DATE IS APRIL 2025. THE PROJECT STATE IS: VERY USEFUL AND BEING REFINED
1+
## IMPORTANT!!! THIS PROJECT IS AN EARLY ACCESS PREVIEW THAT IS BEING ACTIVELY DEVELOPED. IT MAY OR MAY NOT BE SUITABLE FOR PRODUCTION. EXPECTED 1.0 DATE IS APRIL 2026. THE PROJECT STATE IS: VERY USEFUL AND BEING REFINED
22

33
## exa.js by [tux](https://github.com/realtux)
44
exa.js is a minimal node.js backend framework that has a strong focus on simplicity, modularity, and convention over configuration. it makes available the most important stuff needed for a node.js web framework, and nothing more.

0 commit comments

Comments
 (0)