@modern-js/plugin-proxy 2.22.0 → 2.23.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 +30 -0
- package/dist/cjs/index.js +11 -2
- package/dist/esm/index.js +11 -2
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @modern-js/plugin-proxy
|
|
2
2
|
|
|
3
|
+
## 2.23.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7e6fb5f: chore: publishConfig add provenance config
|
|
8
|
+
|
|
9
|
+
chore: publishConfig 增加 provenance 配置
|
|
10
|
+
|
|
11
|
+
- 6dec7c2: test(utils): reuse the snapshot serializer of vitest config
|
|
12
|
+
|
|
13
|
+
test(utils): 复用 vitest 的 snapshot serializer
|
|
14
|
+
|
|
15
|
+
- c3216b5: chore: split the scheme into the plugin
|
|
16
|
+
|
|
17
|
+
chore: 拆分 scheme 到插件内部
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [7e6fb5f]
|
|
20
|
+
- Updated dependencies [a7a7ad7]
|
|
21
|
+
- Updated dependencies [6dec7c2]
|
|
22
|
+
- Updated dependencies [c3216b5]
|
|
23
|
+
- @modern-js/utils@2.23.0
|
|
24
|
+
|
|
25
|
+
## 2.22.1
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [e2848a2]
|
|
30
|
+
- Updated dependencies [d4045ed]
|
|
31
|
+
- @modern-js/utils@2.22.1
|
|
32
|
+
|
|
3
33
|
## 2.22.0
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "default", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
|
-
const _utils = require("@modern-js/utils");
|
|
13
12
|
const _createProxyRule = require("./utils/createProxyRule");
|
|
14
13
|
const _whistleProxy = /* @__PURE__ */ _interop_require_default._(require("./utils/whistleProxy"));
|
|
15
14
|
const _default = () => {
|
|
@@ -19,7 +18,17 @@ const _default = () => {
|
|
|
19
18
|
setup: (api) => {
|
|
20
19
|
return {
|
|
21
20
|
validateSchema() {
|
|
22
|
-
return
|
|
21
|
+
return [
|
|
22
|
+
{
|
|
23
|
+
target: "dev.proxy",
|
|
24
|
+
schema: {
|
|
25
|
+
typeof: [
|
|
26
|
+
"string",
|
|
27
|
+
"object"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
];
|
|
23
32
|
},
|
|
24
33
|
async afterDev() {
|
|
25
34
|
const { dev } = api.useResolvedConfigContext();
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PLUGIN_SCHEMAS } from "@modern-js/utils";
|
|
2
1
|
import { createProxyRule } from "./utils/createProxyRule";
|
|
3
2
|
import WhistleProxy from "./utils/whistleProxy";
|
|
4
3
|
export default () => {
|
|
@@ -8,7 +7,17 @@ export default () => {
|
|
|
8
7
|
setup: (api) => {
|
|
9
8
|
return {
|
|
10
9
|
validateSchema() {
|
|
11
|
-
return
|
|
10
|
+
return [
|
|
11
|
+
{
|
|
12
|
+
target: "dev.proxy",
|
|
13
|
+
schema: {
|
|
14
|
+
typeof: [
|
|
15
|
+
"string",
|
|
16
|
+
"object"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
];
|
|
12
21
|
},
|
|
13
22
|
async afterDev() {
|
|
14
23
|
const { dev } = api.useResolvedConfigContext();
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.23.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -36,21 +36,22 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"whistle": "^2.7.18",
|
|
38
38
|
"@swc/helpers": "0.5.1",
|
|
39
|
-
"@modern-js/utils": "2.
|
|
39
|
+
"@modern-js/utils": "2.23.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/jest": "^29",
|
|
43
43
|
"@types/node": "^14",
|
|
44
44
|
"typescript": "^5",
|
|
45
45
|
"jest": "^29",
|
|
46
|
-
"@modern-js/core": "2.
|
|
47
|
-
"@scripts/build": "2.
|
|
48
|
-
"@scripts/jest-config": "2.
|
|
46
|
+
"@modern-js/core": "2.23.0",
|
|
47
|
+
"@scripts/build": "2.23.0",
|
|
48
|
+
"@scripts/jest-config": "2.23.0"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"registry": "https://registry.npmjs.org/",
|
|
53
|
-
"access": "public"
|
|
53
|
+
"access": "public",
|
|
54
|
+
"provenance": true
|
|
54
55
|
},
|
|
55
56
|
"scripts": {
|
|
56
57
|
"new": "modern-lib new",
|