@modern-js/plugin-koa 2.21.1 → 2.22.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 +11 -0
- package/dist/cjs/cli/index.js +3 -1
- package/dist/cjs/context.js +6 -2
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/plugin.js +3 -1
- package/dist/cjs/registerRoutes.js +3 -1
- package/dist/cjs/runtime.js +6 -2
- package/dist/cjs/utils.js +6 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @modern-js/plugin-koa
|
|
2
2
|
|
|
3
|
+
## 2.22.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [3d48836]
|
|
8
|
+
- Updated dependencies [5050e8e]
|
|
9
|
+
- @modern-js/utils@2.22.0
|
|
10
|
+
- @modern-js/bff-core@2.22.0
|
|
11
|
+
- @modern-js/bff-runtime@2.22.0
|
|
12
|
+
- @modern-js/types@2.22.0
|
|
13
|
+
|
|
3
14
|
## 2.21.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/cjs/cli/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
10
12
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
package/dist/cjs/context.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
run: ()
|
|
14
|
-
|
|
13
|
+
run: function() {
|
|
14
|
+
return run;
|
|
15
|
+
},
|
|
16
|
+
useContext: function() {
|
|
17
|
+
return useContext;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _bffcore = require("@modern-js/bff-core");
|
|
17
21
|
const { run, useContext } = (0, _bffcore.createStorage)();
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _export_star = require("@swc/helpers/_/_export_star");
|
|
10
12
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _utils = require("./utils");
|
|
10
12
|
const registerRoutes = (router, handlerInfos) => {
|
package/dist/cjs/runtime.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
hook: ()
|
|
14
|
-
|
|
13
|
+
hook: function() {
|
|
14
|
+
return hook;
|
|
15
|
+
},
|
|
16
|
+
useContext: function() {
|
|
17
|
+
return _context.useContext;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _export_star = require("@swc/helpers/_/_export_star");
|
|
17
21
|
const _context = require("./context");
|
package/dist/cjs/utils.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
createRouteHandler: ()
|
|
14
|
-
|
|
13
|
+
createRouteHandler: function() {
|
|
14
|
+
return createRouteHandler;
|
|
15
|
+
},
|
|
16
|
+
isNormalMethod: function() {
|
|
17
|
+
return isNormalMethod;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
const _bffcore = require("@modern-js/bff-core");
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/cli/index.js",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"koa-router": "^10.0.0",
|
|
68
68
|
"type-is": "^1.6.18",
|
|
69
69
|
"@swc/helpers": "0.5.1",
|
|
70
|
-
"@modern-js/bff-core": "2.
|
|
71
|
-
"@modern-js/bff-runtime": "2.
|
|
72
|
-
"@modern-js/utils": "2.
|
|
73
|
-
"@modern-js/types": "2.
|
|
70
|
+
"@modern-js/bff-core": "2.22.0",
|
|
71
|
+
"@modern-js/bff-runtime": "2.22.0",
|
|
72
|
+
"@modern-js/utils": "2.22.0",
|
|
73
|
+
"@modern-js/types": "2.22.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/jest": "^29",
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"supertest": "^6.1.6",
|
|
85
85
|
"typescript": "^5",
|
|
86
86
|
"zod": "^3.17.3",
|
|
87
|
-
"@modern-js/core": "2.
|
|
88
|
-
"@modern-js/server-core": "2.
|
|
89
|
-
"@modern-js/app-tools": "2.
|
|
90
|
-
"@scripts/build": "2.
|
|
91
|
-
"@scripts/jest-config": "2.
|
|
87
|
+
"@modern-js/core": "2.22.0",
|
|
88
|
+
"@modern-js/server-core": "2.22.0",
|
|
89
|
+
"@modern-js/app-tools": "2.22.0",
|
|
90
|
+
"@scripts/build": "2.22.0",
|
|
91
|
+
"@scripts/jest-config": "2.22.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"koa": "^2.13.3"
|