@modern-js/plugin-express 2.22.0 → 2.22.1

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
@@ -1,5 +1,21 @@
1
1
  # @modern-js/plugin-express
2
2
 
3
+ ## 2.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f02cd2: chore: fix some eslint issues
8
+
9
+ chore: 修复一些 eslint issues
10
+
11
+ - Updated dependencies [25b490a]
12
+ - Updated dependencies [e2848a2]
13
+ - Updated dependencies [d4045ed]
14
+ - @modern-js/types@2.22.1
15
+ - @modern-js/utils@2.22.1
16
+ - @modern-js/bff-core@2.22.1
17
+ - @modern-js/bff-runtime@2.22.1
18
+
3
19
  ## 2.22.0
4
20
 
5
21
  ### Patch Changes
@@ -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 || !app.use) {
85
+ if (!(app === null || app === void 0 ? void 0 : app.use)) {
86
86
  app = (0, _express.default)();
87
87
  }
88
88
  initApp(app);
@@ -159,7 +159,7 @@ export default function() {
159
159
  appModule = _state.sent();
160
160
  app = appModule[0];
161
161
  hooks = appModule[1];
162
- if (!app || !app.use) {
162
+ if (!(app === null || app === void 0 ? void 0 : app.use)) {
163
163
  app = express();
164
164
  }
165
165
  initApp(app);
@@ -70,7 +70,7 @@ export default () => {
70
70
  const appModule = await findAppModule(apiDir);
71
71
  app = appModule[0];
72
72
  const hooks = appModule[1];
73
- if (!app || !app.use) {
73
+ if (!(app === null || app === void 0 ? void 0 : app.use)) {
74
74
  app = express();
75
75
  }
76
76
  initApp(app);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.22.0",
18
+ "version": "2.22.1",
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.22.0",
53
- "@modern-js/bff-runtime": "2.22.0",
54
- "@modern-js/types": "2.22.0",
55
- "@modern-js/utils": "2.22.0"
52
+ "@modern-js/bff-core": "2.22.1",
53
+ "@modern-js/bff-runtime": "2.22.1",
54
+ "@modern-js/types": "2.22.1",
55
+ "@modern-js/utils": "2.22.1"
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.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"
71
+ "@modern-js/core": "2.22.1",
72
+ "@modern-js/app-tools": "2.22.1",
73
+ "@modern-js/server-core": "2.22.1",
74
+ "@scripts/build": "2.22.1",
75
+ "@scripts/jest-config": "2.22.1"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "express": "^4.17.1"