@modern-js/plugin-express 2.21.1 → 2.22.0
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 +11 -0
- package/dist/cjs/cli/index.js +3 -1
- package/dist/cjs/context.js +6 -2
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/plugin.js +3 -1
- package/dist/cjs/registerRoutes.js +3 -1
- package/dist/cjs/runtime/hook.js +3 -1
- package/dist/cjs/runtime/index.js +6 -2
- package/dist/cjs/runtime/operators.js +6 -2
- package/dist/cjs/utils.js +6 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @modern-js/plugin-express
|
|
2
2
|
|
|
3
|
+
## 2.22.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [3d48836]
|
|
8
|
+
- Updated dependencies [5050e8e]
|
|
9
|
+
- @modern-js/utils@2.22.0
|
|
10
|
+
- @modern-js/bff-core@2.22.0
|
|
11
|
+
- @modern-js/bff-runtime@2.22.0
|
|
12
|
+
- @modern-js/types@2.22.0
|
|
13
|
+
|
|
3
14
|
## 2.21.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/cjs/cli/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
10
12
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
package/dist/cjs/context.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
run: ()
|
|
14
|
-
|
|
13
|
+
run: function() {
|
|
14
|
+
return run;
|
|
15
|
+
},
|
|
16
|
+
useContext: function() {
|
|
17
|
+
return useContext;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _bffcore = require("@modern-js/bff-core");
|
|
17
21
|
const { run, useContext } = (0, _bffcore.createStorage)();
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _export_star = require("@swc/helpers/_/_export_star");
|
|
10
12
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
package/dist/cjs/runtime/hook.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
useContext: ()
|
|
14
|
-
|
|
13
|
+
useContext: function() {
|
|
14
|
+
return _context.useContext;
|
|
15
|
+
},
|
|
16
|
+
hook: function() {
|
|
17
|
+
return _hook.hook;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _export_star = require("@swc/helpers/_/_export_star");
|
|
17
21
|
_export_star._(require("@modern-js/bff-core"), exports);
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
Pipe: ()
|
|
14
|
-
|
|
13
|
+
Pipe: function() {
|
|
14
|
+
return Pipe;
|
|
15
|
+
},
|
|
16
|
+
Middleware: function() {
|
|
17
|
+
return Middleware;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _context = require("../context");
|
|
17
21
|
const Pipe = (func) => {
|
package/dist/cjs/utils.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
createRouteHandler: ()
|
|
14
|
-
|
|
13
|
+
createRouteHandler: function() {
|
|
14
|
+
return createRouteHandler;
|
|
15
|
+
},
|
|
16
|
+
isNormalMethod: function() {
|
|
17
|
+
return isNormalMethod;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
require("reflect-metadata");
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/cli/index.js",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"reflect-metadata": "^0.1.13",
|
|
50
50
|
"type-is": "^1.6.18",
|
|
51
51
|
"@swc/helpers": "0.5.1",
|
|
52
|
-
"@modern-js/bff-core": "2.
|
|
53
|
-
"@modern-js/bff-runtime": "2.
|
|
54
|
-
"@modern-js/types": "2.
|
|
55
|
-
"@modern-js/utils": "2.
|
|
52
|
+
"@modern-js/bff-core": "2.22.0",
|
|
53
|
+
"@modern-js/bff-runtime": "2.22.0",
|
|
54
|
+
"@modern-js/types": "2.22.0",
|
|
55
|
+
"@modern-js/utils": "2.22.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/cookie-parser": "^1.4.2",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"supertest": "^6.1.6",
|
|
69
69
|
"typescript": "^5",
|
|
70
70
|
"zod": "^3.17.3",
|
|
71
|
-
"@modern-js/core": "2.
|
|
72
|
-
"@modern-js/app-tools": "2.
|
|
73
|
-
"@modern-js/server-core": "2.
|
|
74
|
-
"@scripts/jest-config": "2.
|
|
75
|
-
"@scripts/build": "2.
|
|
71
|
+
"@modern-js/core": "2.22.0",
|
|
72
|
+
"@modern-js/app-tools": "2.22.0",
|
|
73
|
+
"@modern-js/server-core": "2.22.0",
|
|
74
|
+
"@scripts/jest-config": "2.22.0",
|
|
75
|
+
"@scripts/build": "2.22.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"express": "^4.17.1"
|