@modern-js/plugin-proxy 2.48.3 → 2.48.4
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/index.js +2 -0
- package/dist/esm/index.js +2 -0
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __export(src_exports, {
|
|
|
32
32
|
proxyPlugin: () => proxyPlugin
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(src_exports);
|
|
35
|
+
var import_utils = require("@modern-js/utils");
|
|
35
36
|
var import_createProxyRule = require("./utils/createProxyRule");
|
|
36
37
|
var import_whistleProxy = __toESM(require("./utils/whistleProxy"));
|
|
37
38
|
const proxyPlugin = () => {
|
|
@@ -51,6 +52,7 @@ const proxyPlugin = () => {
|
|
|
51
52
|
port: 8899,
|
|
52
53
|
rule
|
|
53
54
|
});
|
|
55
|
+
import_utils.logger.warn("[Deprecated] @modern-js/plugin-proxy is no longer maintained. Please consider migrating to other proxy tools, such as whistle.");
|
|
54
56
|
await proxyServer.start();
|
|
55
57
|
}
|
|
56
58
|
},
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { logger } from "@modern-js/utils";
|
|
1
2
|
import { createProxyRule } from "./utils/createProxyRule";
|
|
2
3
|
import WhistleProxy from "./utils/whistleProxy";
|
|
3
4
|
const proxyPlugin = () => {
|
|
@@ -17,6 +18,7 @@ const proxyPlugin = () => {
|
|
|
17
18
|
port: 8899,
|
|
18
19
|
rule
|
|
19
20
|
});
|
|
21
|
+
logger.warn("[Deprecated] @modern-js/plugin-proxy is no longer maintained. Please consider migrating to other proxy tools, such as whistle.");
|
|
20
22
|
await proxyServer.start();
|
|
21
23
|
}
|
|
22
24
|
},
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.48.
|
|
18
|
+
"version": "2.48.4",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"whistle": "^2.7.18",
|
|
38
38
|
"@swc/helpers": "0.5.3",
|
|
39
|
-
"@modern-js/utils": "2.48.
|
|
39
|
+
"@modern-js/utils": "2.48.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/jest": "^29",
|
|
43
43
|
"@types/node": "^14",
|
|
44
44
|
"typescript": "^5",
|
|
45
45
|
"jest": "^29",
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@scripts/
|
|
46
|
+
"@scripts/build": "2.48.4",
|
|
47
|
+
"@modern-js/core": "2.48.4",
|
|
48
|
+
"@scripts/jest-config": "2.48.4"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|