@modern-js/server 3.9.1 → 3.9.2

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.
@@ -130,7 +130,7 @@ async function getMockMiddleware(pwd, mockDir) {
130
130
  if (matchedMockAPI) {
131
131
  const { handler } = matchedMockAPI;
132
132
  if ('function' == typeof handler) return await (0, node_namespaceObject.connectMockMid2HonoMid)(handler)(c, next);
133
- return c.json(handler);
133
+ else return c.json(handler);
134
134
  }
135
135
  return next();
136
136
  };
@@ -84,7 +84,7 @@ async function getMockMiddleware(pwd, mockDir) {
84
84
  if (matchedMockAPI) {
85
85
  const { handler } = matchedMockAPI;
86
86
  if ('function' == typeof handler) return await connectMockMid2HonoMid(handler)(c, next);
87
- return c.json(handler);
87
+ else return c.json(handler);
88
88
  }
89
89
  return next();
90
90
  };
@@ -85,7 +85,7 @@ async function getMockMiddleware(pwd, mockDir) {
85
85
  if (matchedMockAPI) {
86
86
  const { handler } = matchedMockAPI;
87
87
  if ('function' == typeof handler) return await connectMockMid2HonoMid(handler)(c, next);
88
- return c.json(handler);
88
+ else return c.json(handler);
89
89
  }
90
90
  return next();
91
91
  };
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.9.1",
18
+ "version": "3.9.2",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "exports": {
@@ -44,11 +44,11 @@
44
44
  "minimatch": "^3.1.2",
45
45
  "path-to-regexp": "^6.3.0",
46
46
  "ws": "^8.21.3",
47
- "@modern-js/runtime-utils": "3.9.1",
48
- "@modern-js/server-core": "3.9.1",
49
- "@modern-js/server-utils": "3.9.1",
50
- "@modern-js/types": "3.9.1",
51
- "@modern-js/utils": "3.9.1"
47
+ "@modern-js/runtime-utils": "3.9.2",
48
+ "@modern-js/server-core": "3.9.2",
49
+ "@modern-js/server-utils": "3.9.2",
50
+ "@modern-js/types": "3.9.2",
51
+ "@modern-js/utils": "3.9.2"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@rslib/core": "1.0.0",
@@ -61,7 +61,7 @@
61
61
  "tsconfig-paths": "4.2.0",
62
62
  "typescript": "^5",
63
63
  "websocket": "^1.0.35",
64
- "@modern-js/builder": "3.9.1",
64
+ "@modern-js/builder": "3.9.2",
65
65
  "@modern-js/rslib": "2.68.10",
66
66
  "@scripts/rstest-config": "2.66.0"
67
67
  },