@modern-js/plugin-express 2.5.0 → 2.6.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 +14 -0
- package/dist/cjs/cli/index.js +4 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/plugin.js +4 -0
- package/dist/cjs/runtime/operators.js +1 -0
- package/dist/cjs/utils.js +4 -0
- package/dist/esm/runtime/operators.js +2 -1
- package/dist/esm-node/runtime/operators.js +1 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @modern-js/plugin-express
|
|
2
2
|
|
|
3
|
+
## 2.6.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e1f799e]
|
|
8
|
+
- Updated dependencies [7915ab3]
|
|
9
|
+
- Updated dependencies [49fa0b1]
|
|
10
|
+
- Updated dependencies [0fe658a]
|
|
11
|
+
- Updated dependencies [62930b9]
|
|
12
|
+
- @modern-js/utils@2.6.0
|
|
13
|
+
- @modern-js/types@2.6.0
|
|
14
|
+
- @modern-js/bff-core@2.6.0
|
|
15
|
+
- @modern-js/bff-runtime@2.6.0
|
|
16
|
+
|
|
3
17
|
## 2.5.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/cli/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
package/dist/cjs/index.js
CHANGED
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
26
|
mod
|
|
23
27
|
));
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
@@ -25,6 +25,7 @@ var import_context = require("../context");
|
|
|
25
25
|
const Pipe = (func) => {
|
|
26
26
|
return {
|
|
27
27
|
name: "pipe",
|
|
28
|
+
// eslint-disable-next-line consistent-return
|
|
28
29
|
async execute(executeHelper, next) {
|
|
29
30
|
const { inputs } = executeHelper;
|
|
30
31
|
const ctx = (0, import_context.useContext)();
|
package/dist/cjs/utils.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
@@ -126,7 +126,8 @@ import { useContext } from "../context";
|
|
|
126
126
|
var Pipe = function(func) {
|
|
127
127
|
return {
|
|
128
128
|
name: "pipe",
|
|
129
|
-
execute:
|
|
129
|
+
execute: // eslint-disable-next-line consistent-return
|
|
130
|
+
function execute(executeHelper, next) {
|
|
130
131
|
return _asyncToGenerator(function() {
|
|
131
132
|
var inputs, ctx, res, isPiped, end, output;
|
|
132
133
|
return __generator(this, function(_state) {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.6.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/cli/index.d.ts",
|
|
17
17
|
"main": "./dist/cjs/cli/index.js",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"formidable": "^1.2.2",
|
|
43
43
|
"reflect-metadata": "^0.1.13",
|
|
44
44
|
"type-is": "^1.6.18",
|
|
45
|
-
"@modern-js/bff-core": "2.
|
|
46
|
-
"@modern-js/bff-runtime": "2.
|
|
47
|
-
"@modern-js/types": "2.
|
|
48
|
-
"@modern-js/utils": "2.
|
|
45
|
+
"@modern-js/bff-core": "2.6.0",
|
|
46
|
+
"@modern-js/bff-runtime": "2.6.0",
|
|
47
|
+
"@modern-js/types": "2.6.0",
|
|
48
|
+
"@modern-js/utils": "2.6.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/cookie-parser": "^1.4.2",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"supertest": "^6.1.6",
|
|
62
62
|
"typescript": "^4",
|
|
63
63
|
"zod": "^3.17.3",
|
|
64
|
-
"@modern-js/core": "2.
|
|
65
|
-
"@modern-js/app-tools": "2.
|
|
66
|
-
"@modern-js/server-core": "2.
|
|
67
|
-
"@scripts/
|
|
68
|
-
"@scripts/
|
|
64
|
+
"@modern-js/core": "2.6.0",
|
|
65
|
+
"@modern-js/app-tools": "2.6.0",
|
|
66
|
+
"@modern-js/server-core": "2.6.0",
|
|
67
|
+
"@scripts/jest-config": "2.6.0",
|
|
68
|
+
"@scripts/build": "2.6.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"express": "^4.17.1"
|