@modern-js/plugin-bff 3.11.3 → 3.12.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/dist/cjs/utils/createHonoRoutes.js +1 -1
- package/dist/cjs/utils/runtimeGenerator.js +1 -1
- package/dist/esm/utils/createHonoRoutes.mjs +1 -1
- package/dist/esm/utils/runtimeGenerator.mjs +1 -1
- package/dist/esm-node/utils/createHonoRoutes.mjs +1 -1
- package/dist/esm-node/utils/runtimeGenerator.mjs +1 -1
- package/package.json +14 -14
|
@@ -137,7 +137,7 @@ const getHonoInput = async (c)=>{
|
|
|
137
137
|
else if ('GET' === method || 'HEAD' === method) draft.body = null;
|
|
138
138
|
else if ('application/json' === type) draft.data = await c.req.json();
|
|
139
139
|
else draft.body = await c.req.json();
|
|
140
|
-
} catch
|
|
140
|
+
} catch {
|
|
141
141
|
draft.body = null;
|
|
142
142
|
}
|
|
143
143
|
return draft;
|
|
@@ -47,7 +47,7 @@ const getPackageName = (appDirectory)=>{
|
|
|
47
47
|
const packageJsonPath = external_path_default().resolve(appDirectory, './package.json');
|
|
48
48
|
const packageJson = require(packageJsonPath);
|
|
49
49
|
return packageJson.name;
|
|
50
|
-
} catch
|
|
50
|
+
} catch {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
};
|
|
@@ -94,7 +94,7 @@ const getHonoInput = async (c)=>{
|
|
|
94
94
|
else if ('GET' === method || 'HEAD' === method) draft.body = null;
|
|
95
95
|
else if ('application/json' === type) draft.data = await c.req.json();
|
|
96
96
|
else draft.body = await c.req.json();
|
|
97
|
-
} catch
|
|
97
|
+
} catch {
|
|
98
98
|
draft.body = null;
|
|
99
99
|
}
|
|
100
100
|
return draft;
|
|
@@ -95,7 +95,7 @@ const getHonoInput = async (c)=>{
|
|
|
95
95
|
else if ('GET' === method || 'HEAD' === method) draft.body = null;
|
|
96
96
|
else if ('application/json' === type) draft.data = await c.req.json();
|
|
97
97
|
else draft.body = await c.req.json();
|
|
98
|
-
} catch
|
|
98
|
+
} catch {
|
|
99
99
|
draft.body = null;
|
|
100
100
|
}
|
|
101
101
|
return draft;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.
|
|
18
|
+
"version": "3.12.0",
|
|
19
19
|
"types": "./dist/types/cli.d.ts",
|
|
20
20
|
"main": "./dist/cjs/cli.js",
|
|
21
21
|
"exports": {
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"@swc/helpers": "^0.5.17",
|
|
80
80
|
"qs": "^6.16.1",
|
|
81
81
|
"type-is": "^1.6.18",
|
|
82
|
-
"@modern-js/
|
|
83
|
-
"@modern-js/
|
|
84
|
-
"@modern-js/
|
|
85
|
-
"@modern-js/server-core": "3.
|
|
86
|
-
"@modern-js/
|
|
87
|
-
"@modern-js/utils": "3.
|
|
82
|
+
"@modern-js/builder": "3.12.0",
|
|
83
|
+
"@modern-js/bff-core": "3.12.0",
|
|
84
|
+
"@modern-js/create-request": "3.12.0",
|
|
85
|
+
"@modern-js/server-core": "3.12.0",
|
|
86
|
+
"@modern-js/utils": "3.12.0",
|
|
87
|
+
"@modern-js/server-utils": "3.12.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@rsbuild/core": "2.3.2",
|
|
@@ -94,13 +94,13 @@
|
|
|
94
94
|
"memfs": "^3.5.3",
|
|
95
95
|
"typescript": "^5",
|
|
96
96
|
"zod": "^4.0.0",
|
|
97
|
-
"@modern-js/app-tools": "3.
|
|
98
|
-
"@modern-js/
|
|
99
|
-
"@modern-js/
|
|
100
|
-
"@modern-js/
|
|
101
|
-
"@modern-js/
|
|
102
|
-
"@modern-js/
|
|
103
|
-
"@scripts/rstest-config": "2.66.
|
|
97
|
+
"@modern-js/app-tools": "3.12.0",
|
|
98
|
+
"@modern-js/bff-runtime": "3.12.0",
|
|
99
|
+
"@modern-js/plugin": "3.12.0",
|
|
100
|
+
"@modern-js/rslib": "3.12.0",
|
|
101
|
+
"@modern-js/types": "3.12.0",
|
|
102
|
+
"@modern-js/runtime": "3.12.0",
|
|
103
|
+
"@scripts/rstest-config": "2.66.8"
|
|
104
104
|
},
|
|
105
105
|
"sideEffects": false,
|
|
106
106
|
"publishConfig": {
|