@modern-js/plugin-koa 2.4.0 → 2.4.1-beta.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
CHANGED
|
@@ -308,9 +308,9 @@ var plugin_default = function() {
|
|
|
308
308
|
},
|
|
309
309
|
prepareWebServer: function prepareWebServer(param, next) {
|
|
310
310
|
var config = param.config;
|
|
311
|
-
var
|
|
311
|
+
var _userConfig_server;
|
|
312
312
|
var userConfig = api.useConfigContext();
|
|
313
|
-
if (!(userConfig === null || userConfig === void 0 ? void 0 : (
|
|
313
|
+
if (!(userConfig === null || userConfig === void 0 ? void 0 : (_userConfig_server = userConfig.server) === null || _userConfig_server === void 0 ? void 0 : _userConfig_server.enableFrameworkExt)) {
|
|
314
314
|
return next();
|
|
315
315
|
}
|
|
316
316
|
var app = new Koa();
|
|
@@ -347,7 +347,7 @@ var plugin_default = function() {
|
|
|
347
347
|
initMiddlewares(middleware, app);
|
|
348
348
|
}
|
|
349
349
|
return function(ctx) {
|
|
350
|
-
var
|
|
350
|
+
var _ctx_source = ctx.source, req = _ctx_source.req, res = _ctx_source.res;
|
|
351
351
|
app.on("error", function(err) {
|
|
352
352
|
if (err) {
|
|
353
353
|
throw err;
|
|
@@ -204,7 +204,7 @@ var handleResponseMeta = function(ctx, handler) {
|
|
|
204
204
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
205
205
|
try {
|
|
206
206
|
for(var _iterator1 = Object.entries(metaValue)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
207
|
-
var
|
|
207
|
+
var _step_value = _slicedToArray(_step1.value, 2), key = _step_value[0], value = _step_value[1];
|
|
208
208
|
if (typeof value === "string") {
|
|
209
209
|
ctx.append(key, value);
|
|
210
210
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.4.0",
|
|
14
|
+
"version": "2.4.1-beta.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/cli/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/cli/index.js",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"koa-body": "^4.2.0",
|
|
55
55
|
"koa-router": "^10.0.0",
|
|
56
56
|
"type-is": "^1.6.18",
|
|
57
|
+
"@modern-js/bff-core": "2.4.1-beta.0",
|
|
58
|
+
"@modern-js/utils": "2.4.1-beta.0",
|
|
57
59
|
"@modern-js/bff-runtime": "2.4.0",
|
|
58
|
-
"@modern-js/
|
|
59
|
-
"@modern-js/types": "2.4.0",
|
|
60
|
-
"@modern-js/bff-core": "2.4.0"
|
|
60
|
+
"@modern-js/types": "2.4.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/jest": "^27",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"supertest": "^6.1.6",
|
|
72
72
|
"typescript": "^4",
|
|
73
73
|
"zod": "^3.17.3",
|
|
74
|
-
"@modern-js/core": "2.4.0",
|
|
75
|
-
"@modern-js/server-core": "2.4.0",
|
|
76
|
-
"@modern-js/app-tools": "
|
|
74
|
+
"@modern-js/core": "2.4.1-beta.0",
|
|
75
|
+
"@modern-js/server-core": "2.4.1-beta.0",
|
|
76
|
+
"@modern-js/app-tools": "3.0.0-beta.0",
|
|
77
77
|
"@scripts/jest-config": "2.4.0",
|
|
78
78
|
"@scripts/build": "2.4.0"
|
|
79
79
|
},
|