@modern-js/server 2.65.4 → 2.65.5

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.
@@ -123,7 +123,7 @@ async function getMockMiddleware(pwd) {
123
123
  if (matchedMockAPI) {
124
124
  const { handler } = matchedMockAPI;
125
125
  if (typeof handler === "function") {
126
- return await (0, import_node.connectMid2HonoMid)(handler)(c, next);
126
+ return await (0, import_node.connectMockMid2HonoMid)(handler)(c, next);
127
127
  } else {
128
128
  return c.json(handler);
129
129
  }
@@ -3,7 +3,7 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
3
3
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
4
4
  import path from "node:path";
5
5
  import { AGGRED_DIR } from "@modern-js/server-core";
6
- import { connectMid2HonoMid } from "@modern-js/server-core/node";
6
+ import { connectMockMid2HonoMid } from "@modern-js/server-core/node";
7
7
  import { fs } from "@modern-js/utils";
8
8
  import { match } from "path-to-regexp";
9
9
  var mockAPIs = [];
@@ -226,7 +226,7 @@ function _getMockMiddleware() {
226
226
  ];
227
227
  return [
228
228
  4,
229
- connectMid2HonoMid(handler)(c, next)
229
+ connectMockMid2HonoMid(handler)(c, next)
230
230
  ];
231
231
  case 1:
232
232
  return [
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { AGGRED_DIR } from "@modern-js/server-core";
3
- import { connectMid2HonoMid } from "@modern-js/server-core/node";
3
+ import { connectMockMid2HonoMid } from "@modern-js/server-core/node";
4
4
  import { fs } from "@modern-js/utils";
5
5
  import { match } from "path-to-regexp";
6
6
  let mockAPIs = [];
@@ -88,7 +88,7 @@ async function getMockMiddleware(pwd) {
88
88
  if (matchedMockAPI) {
89
89
  const { handler } = matchedMockAPI;
90
90
  if (typeof handler === "function") {
91
- return await connectMid2HonoMid(handler)(c, next);
91
+ return await connectMockMid2HonoMid(handler)(c, next);
92
92
  } else {
93
93
  return c.json(handler);
94
94
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.65.4",
18
+ "version": "2.65.5",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -48,11 +48,11 @@
48
48
  "minimatch": "^3.0.4",
49
49
  "path-to-regexp": "^6.2.0",
50
50
  "ws": "^8.13.0",
51
- "@modern-js/runtime-utils": "2.65.4",
52
- "@modern-js/server-core": "2.65.4",
53
- "@modern-js/server-utils": "2.65.4",
54
- "@modern-js/utils": "2.65.4",
55
- "@modern-js/types": "2.65.4"
51
+ "@modern-js/server-core": "2.65.5",
52
+ "@modern-js/server-utils": "2.65.5",
53
+ "@modern-js/types": "2.65.5",
54
+ "@modern-js/runtime-utils": "2.65.5",
55
+ "@modern-js/utils": "2.65.5"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/connect-history-api-fallback": "^1.3.5",
@@ -67,9 +67,9 @@
67
67
  "typescript": "^5",
68
68
  "webpack": "^5.98.0",
69
69
  "websocket": "^1",
70
- "@modern-js/uni-builder": "2.65.4",
71
- "@scripts/jest-config": "2.65.4",
72
- "@scripts/build": "2.65.4"
70
+ "@scripts/jest-config": "2.65.5",
71
+ "@scripts/build": "2.65.5",
72
+ "@modern-js/uni-builder": "2.65.5"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "devcert": "^1.2.2",
@@ -90,8 +90,7 @@
90
90
  "sideEffects": false,
91
91
  "publishConfig": {
92
92
  "registry": "https://registry.npmjs.org/",
93
- "access": "public",
94
- "provenance": true
93
+ "access": "public"
95
94
  },
96
95
  "scripts": {
97
96
  "new": "modern-lib new",