very-express 0.6.17 → 0.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +385 -387
- package/dist/templates/_middlewares/Authentication.ts +1 -2
- package/dist/templates/_services/TypeOrmRepositoryAdapter.ts +1 -1
- package/dist/templates/_services/VexDbConnector.ts +4 -3
- package/dist/templates/_services/oauth/OAuthProfileMap.ts +1 -1
- package/dist/templates/jsonSchema/Session.json +3 -2
- package/package.json +2 -2
- package/tsconfig.json +1 -1
|
@@ -3,8 +3,7 @@ import { Request, Response, NextFunction } from "express";
|
|
|
3
3
|
import { JsonWebTokenError } from "jsonwebtoken";
|
|
4
4
|
import JWTService from "../_services/auth/JWTService.gen";
|
|
5
5
|
import log from "../_utils/logger.gen";
|
|
6
|
-
import
|
|
7
|
-
import { VexResErr, VexResOk } from "../_types/vex";
|
|
6
|
+
import { VexResErr } from "../_types/vex";
|
|
8
7
|
|
|
9
8
|
class Authentication {
|
|
10
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// {{headerComment}}
|
|
2
|
-
import { Repository, ObjectLiteral, FindOptionsWhere, DeepPartial, In, Not, Like, MoreThan, LessThan, MoreThanOrEqual, LessThanOrEqual,
|
|
2
|
+
import { Repository, ObjectLiteral, FindOptionsWhere, DeepPartial, In, Not, Like, MoreThan, LessThan, MoreThanOrEqual, LessThanOrEqual, FindManyOptions } from "typeorm";
|
|
3
3
|
import { VexRepository, Select, Filter, Join, FieldOperators } from "../_types/vex";
|
|
4
4
|
import utils from "../_utils";
|
|
5
5
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// {{headerComment}}
|
|
2
2
|
import { Request, Response, NextFunction } from "express";
|
|
3
3
|
import { DataSource, EntityTarget, ObjectLiteral } from "typeorm";
|
|
4
|
-
import mongoose
|
|
4
|
+
import mongoose from "mongoose";
|
|
5
|
+
// import { Document } from "mongoose";
|
|
5
6
|
import { sqlMigrations } from "../_models/sqlMigration.gen";
|
|
6
|
-
import { VexRepository
|
|
7
|
+
import { VexRepository } from "../_types/vex";
|
|
7
8
|
import { TypeOrmRepositoryAdapter } from "./TypeOrmRepositoryAdapter.gen";
|
|
8
|
-
import { MongooseRepositoryAdapter } from "./MongooseRepositoryAdapter.gen";
|
|
9
|
+
// import { MongooseRepositoryAdapter } from "./MongooseRepositoryAdapter.gen";
|
|
9
10
|
import utils from "./../_utils";
|
|
10
11
|
|
|
11
12
|
export class VexDbConnector {
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"index": true
|
|
25
25
|
},
|
|
26
26
|
"provider": {
|
|
27
|
-
"type": "string"
|
|
27
|
+
"type": "string",
|
|
28
|
+
"maxLength": 30
|
|
28
29
|
},
|
|
29
30
|
"userId":{
|
|
30
31
|
"type": "string",
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
"expired": {
|
|
39
|
-
"type": "
|
|
40
|
+
"type": "integer",
|
|
40
41
|
"x-format": "UnixTimestamp",
|
|
41
42
|
"description": "expired time in unix timestamp format (ms)"
|
|
42
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "very-express",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.19",
|
|
4
4
|
"description": "based on json schema and openapi, generate Express RestApi server with mongoDb ",
|
|
5
5
|
"author": "Justin26l",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"lint": "eslint ./src --ext .ts --fix",
|
|
16
16
|
"compile": "node ./scripts/build.js && node ./scripts/copyTsTemplates.js",
|
|
17
17
|
"preversion": "npm run lint && npm run compile",
|
|
18
|
-
"postversion": "git push --tags && git push"
|
|
18
|
+
"postversion": "npm run compile && git push --tags && git push"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"jsonSchema",
|
package/tsconfig.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
12
|
|
|
13
13
|
/* Language and Environment */
|
|
14
|
-
"target": "
|
|
14
|
+
"target": "es2017", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
15
15
|
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
16
|
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
17
|
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|