@nextage/nx-frame-be 1.0.34 → 1.0.36
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/build/common/base/__test__/base.model.test.js +31 -23
- package/build/common/base/base.controller.d.ts +0 -25
- package/build/common/base/base.interfaces.d.ts +0 -25
- package/build/common/base/base.model.d.ts +9 -35
- package/build/common/base/base.model.js +14 -2
- package/build/common/base/mongo-utils.d.ts +0 -25
- package/build/common/base/mongo-utils.js +35 -13
- package/build/common/base/sql-utils.js +2 -2
- package/build/common/constants.d.ts +1 -3
- package/build/common/crypto/crypto.classes.d.ts +0 -2
- package/build/common/crypto/crypto.interfaces.d.ts +0 -1
- package/build/common/crypto/crypto.utils.d.ts +0 -1
- package/build/common/crypto/encryption.plugin.d.ts +10 -0
- package/build/common/crypto/encryption.plugin.js +93 -0
- package/build/common/crypto/index.d.ts +1 -0
- package/build/common/crypto/index.js +1 -0
- package/build/common/express/express.utils.js +3 -4
- package/build/common/graphql/__test__/generator.schema.test.js +39 -39
- package/build/common/graphql/directives.js +3 -3
- package/build/common/graphql/generator copy.js +5 -5
- package/build/common/graphql/generator.js +5 -5
- package/build/common/graphql/loader.js +4 -4
- package/build/common/graphql/utils.js +3 -3
- package/build/common/grid-fs/gridfs-base.model.d.ts +0 -26
- package/build/common/grid-fs/gridfs-base.model.js +1 -1
- package/build/common/grid-fs/gridfs.interfaces.d.ts +0 -25
- package/build/common/manager/bulk-manager.d.ts +0 -25
- package/build/common/manager/crypto-manager.d.ts +0 -1
- package/build/common/manager/socket-io-cli-manager.d.ts +0 -1
- package/build/common/manager/tunnel-manager.d.ts +0 -1
- package/build/common/models/coded-entity.model.js +2 -14
- package/build/common/types.d.ts +0 -25
- package/build/common/utils.d.ts +0 -3
- package/build/common/utils.js +83 -85
- package/build/test/setup.js +3 -2
- package/package.json +12 -12
package/build/test/setup.js
CHANGED
|
@@ -29,9 +29,10 @@ beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
29
29
|
yield mongoose_1.default.connect(mongoUri, {});
|
|
30
30
|
}));
|
|
31
31
|
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
32
|
+
var _a;
|
|
32
33
|
jest.clearAllMocks();
|
|
33
|
-
const collections = yield mongoose_1.default.connection.db.collections();
|
|
34
|
-
for (let collection of collections) {
|
|
34
|
+
const collections = yield ((_a = mongoose_1.default.connection.db) === null || _a === void 0 ? void 0 : _a.collections());
|
|
35
|
+
for (let collection of collections !== null && collections !== void 0 ? collections : []) {
|
|
35
36
|
yield collection.deleteMany({});
|
|
36
37
|
}
|
|
37
38
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextage/nx-frame-be",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"author": "",
|
|
25
25
|
"license": "ISC",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@apollo/server": "^
|
|
28
|
-
"@apollo/server-plugin-landing-page-graphql-playground": "^4.0.1",
|
|
27
|
+
"@apollo/server": "^5.5.0",
|
|
29
28
|
"@apollo/subgraph": "^2.11.2",
|
|
29
|
+
"@as-integrations/express5": "^1.1.2",
|
|
30
30
|
"@aws-sdk/client-ecs": "^3.592.0",
|
|
31
31
|
"@aws-sdk/client-s3": "^3.1017.0",
|
|
32
32
|
"@aws-sdk/client-ses": "^3.592.0",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"@types/async": "^3.2.24",
|
|
36
36
|
"@types/cookie-session": "^2.0.49",
|
|
37
37
|
"@types/crypto-js": "^4.2.2",
|
|
38
|
-
"@types/express": "^
|
|
38
|
+
"@types/express": "^5.0.6",
|
|
39
39
|
"@types/express-validator": "^3.0.0",
|
|
40
40
|
"@types/graphql": "^14.5.0",
|
|
41
41
|
"@types/jsonwebtoken": "^9.0.6",
|
|
42
42
|
"@types/jszip": "^3.4.1",
|
|
43
43
|
"@types/lodash": "^4.17.4",
|
|
44
44
|
"@types/moment": "^2.13.0",
|
|
45
|
-
"@types/mongoose": "^5.11.
|
|
45
|
+
"@types/mongoose": "^5.11.96",
|
|
46
46
|
"@types/node-schedule": "^2.1.7",
|
|
47
47
|
"@types/sequelize": "^4.28.20",
|
|
48
48
|
"@types/socket.io": "^3.0.2",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@types/ua-parser-js": "^0.7.39",
|
|
53
53
|
"@types/uuid": "^9.0.8",
|
|
54
54
|
"async": "^3.2.5",
|
|
55
|
-
"cookie": "^
|
|
55
|
+
"cookie": "^1.1.1",
|
|
56
56
|
"crypto-js": "^4.2.0",
|
|
57
|
-
"express": "^
|
|
57
|
+
"express": "^5.2.1",
|
|
58
58
|
"express-validator": "^7.1.0",
|
|
59
59
|
"graphql": "^16.11.0",
|
|
60
60
|
"graphql-constraint-directive": "^5.4.3",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"jszip": "^3.10.1",
|
|
68
68
|
"lodash": "^4.17.21",
|
|
69
69
|
"moment": "^2.30.1",
|
|
70
|
-
"mongoose": "^
|
|
70
|
+
"mongoose": "^9.3.3",
|
|
71
71
|
"mongoose-update-if-current": "^1.4.0",
|
|
72
72
|
"node-schedule": "^2.1.1",
|
|
73
73
|
"sequelize": "^6.37.3",
|
|
@@ -76,18 +76,18 @@
|
|
|
76
76
|
"sqs-consumer": "^10.3.0",
|
|
77
77
|
"ts-node-dev": "^2.0.0",
|
|
78
78
|
"tunnel-ssh": "^5.1.2",
|
|
79
|
-
"typescript": "^5.
|
|
79
|
+
"typescript": "^5.8.3",
|
|
80
80
|
"ua-parser-js": "^1.0.37",
|
|
81
81
|
"uuid": "^9.0.1"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@types/jest": "^
|
|
84
|
+
"@types/jest": "^30.0.0",
|
|
85
85
|
"@types/node": "^20.14.2",
|
|
86
86
|
"@types/supertest": "^6.0.2",
|
|
87
87
|
"del-cli": "^6.0.0",
|
|
88
|
-
"jest": "^
|
|
88
|
+
"jest": "^30.3.0",
|
|
89
89
|
"mongodb-memory-server": "^9.3.0",
|
|
90
90
|
"supertest": "^7.0.0",
|
|
91
|
-
"ts-jest": "^29.
|
|
91
|
+
"ts-jest": "^29.4.9"
|
|
92
92
|
}
|
|
93
93
|
}
|