@adaptivestone/framework 5.0.0-alpha.1 → 5.0.0-alpha.3
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/CHANGELOG.md
CHANGED
|
@@ -36,7 +36,7 @@ class Migrate extends AbstractCommand {
|
|
|
36
36
|
for (const migration of migrations) {
|
|
37
37
|
this.logger.info(`=== Start migration ${migration.file} ===`);
|
|
38
38
|
// eslint-disable-next-line no-await-in-loop
|
|
39
|
-
const MigrationCommand = await import(migration.path);
|
|
39
|
+
const { default: MigrationCommand } = await import(migration.path);
|
|
40
40
|
const migrationCommand = new MigrationCommand(this.app);
|
|
41
41
|
// eslint-disable-next-line no-await-in-loop
|
|
42
42
|
await migrationCommand.up();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptivestone/framework",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.3",
|
|
4
4
|
"description": "Adaptive stone node js framework",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lint": "eslint '**/*.js'",
|
|
21
21
|
"lint:fix": "eslint '**/*.js' --fix",
|
|
22
22
|
"codestyle": "npm run prettier && npm run lint",
|
|
23
|
-
"prepare": "husky
|
|
23
|
+
"prepare": "husky",
|
|
24
24
|
"cli": "node cliCommand",
|
|
25
25
|
"benchmark": "h2load -n 10000 -c 50 -p 'http/1.1' http://localhost:3300/",
|
|
26
26
|
"benchmark2": "h2load -n 10000 -c 50 https://localhost:3300/",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"i18next": "^23.2.8",
|
|
38
38
|
"i18next-chained-backend": "^4.0.0",
|
|
39
39
|
"i18next-fs-backend": "^2.0.0",
|
|
40
|
-
"juice": "^
|
|
40
|
+
"juice": "^10.0.0",
|
|
41
41
|
"mime": "^4.0.0",
|
|
42
42
|
"minimist": "^1.2.5",
|
|
43
43
|
"mongoose": "^8.0.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"nodemailer-sendmail-transport": "^1.0.2",
|
|
46
46
|
"nodemailer-stub-transport": "^1.1.0",
|
|
47
47
|
"pug": "^3.0.2",
|
|
48
|
-
"rate-limiter-flexible": "^
|
|
48
|
+
"rate-limiter-flexible": "^4.0.0",
|
|
49
49
|
"redis": "^4.3.1",
|
|
50
50
|
"winston": "^3.3.3",
|
|
51
51
|
"winston-transport-sentry-node": "^2.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"eslint-config-prettier": "^9.0.0",
|
|
59
59
|
"eslint-plugin-prettier": "^5.0.0",
|
|
60
60
|
"eslint-plugin-vitest": "^0.3.1",
|
|
61
|
-
"husky": "^
|
|
61
|
+
"husky": "^9.0.0",
|
|
62
62
|
"lint-staged": "^15.0.0",
|
|
63
63
|
"mongodb-memory-server": "^9.0.0",
|
|
64
64
|
"nodemon": "^3.0.1",
|
|
@@ -12,7 +12,6 @@ describe('reqest parser limiter methods', () => {
|
|
|
12
12
|
});
|
|
13
13
|
it('middleware that works', async () => {
|
|
14
14
|
expect.assertions(4);
|
|
15
|
-
console.log();
|
|
16
15
|
|
|
17
16
|
await new Promise((done) => {
|
|
18
17
|
// from https://github.com/node-formidable/formidable/blob/master/test-node/standalone/promise.test.js
|