@modern-js/plugin-express 2.22.0 → 2.23.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 +33 -0
- package/dist/cjs/plugin.js +1 -1
- package/dist/esm/plugin.js +1 -1
- package/dist/esm-node/plugin.js +1 -1
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @modern-js/plugin-express
|
|
2
2
|
|
|
3
|
+
## 2.23.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7e6fb5f: chore: publishConfig add provenance config
|
|
8
|
+
|
|
9
|
+
chore: publishConfig 增加 provenance 配置
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [7e6fb5f]
|
|
12
|
+
- Updated dependencies [a7a7ad7]
|
|
13
|
+
- Updated dependencies [6dec7c2]
|
|
14
|
+
- Updated dependencies [c3216b5]
|
|
15
|
+
- @modern-js/bff-runtime@2.23.0
|
|
16
|
+
- @modern-js/bff-core@2.23.0
|
|
17
|
+
- @modern-js/types@2.23.0
|
|
18
|
+
- @modern-js/utils@2.23.0
|
|
19
|
+
|
|
20
|
+
## 2.22.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 1f02cd2: chore: fix some eslint issues
|
|
25
|
+
|
|
26
|
+
chore: 修复一些 eslint issues
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [25b490a]
|
|
29
|
+
- Updated dependencies [e2848a2]
|
|
30
|
+
- Updated dependencies [d4045ed]
|
|
31
|
+
- @modern-js/types@2.22.1
|
|
32
|
+
- @modern-js/utils@2.22.1
|
|
33
|
+
- @modern-js/bff-core@2.22.1
|
|
34
|
+
- @modern-js/bff-runtime@2.22.1
|
|
35
|
+
|
|
3
36
|
## 2.22.0
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -82,7 +82,7 @@ const _default = () => {
|
|
|
82
82
|
const appModule = await findAppModule(apiDir);
|
|
83
83
|
app = appModule[0];
|
|
84
84
|
const hooks = appModule[1];
|
|
85
|
-
if (!app ||
|
|
85
|
+
if (!(app === null || app === void 0 ? void 0 : app.use)) {
|
|
86
86
|
app = (0, _express.default)();
|
|
87
87
|
}
|
|
88
88
|
initApp(app);
|
package/dist/esm/plugin.js
CHANGED
package/dist/esm-node/plugin.js
CHANGED
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.23.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.23.0",
|
|
53
|
+
"@modern-js/bff-runtime": "2.23.0",
|
|
54
|
+
"@modern-js/types": "2.23.0",
|
|
55
|
+
"@modern-js/utils": "2.23.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/cookie-parser": "^1.4.2",
|
|
@@ -68,18 +68,19 @@
|
|
|
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.23.0",
|
|
72
|
+
"@modern-js/app-tools": "2.23.0",
|
|
73
|
+
"@modern-js/server-core": "2.23.0",
|
|
74
|
+
"@scripts/jest-config": "2.23.0",
|
|
75
|
+
"@scripts/build": "2.23.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"express": "^4.17.1"
|
|
79
79
|
},
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"registry": "https://registry.npmjs.org/",
|
|
82
|
-
"access": "public"
|
|
82
|
+
"access": "public",
|
|
83
|
+
"provenance": true
|
|
83
84
|
},
|
|
84
85
|
"scripts": {
|
|
85
86
|
"new": "modern-lib new",
|