@modern-js/plugin-proxy 2.58.2 → 2.58.3
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.
|
@@ -34,8 +34,8 @@ __export(macCAManager_exports, {
|
|
|
34
34
|
trustRootCA: () => trustRootCA
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(macCAManager_exports);
|
|
37
|
-
var import_os = __toESM(require("os"));
|
|
38
37
|
var import_http = __toESM(require("http"));
|
|
38
|
+
var import_os = __toESM(require("os"));
|
|
39
39
|
var import_path = __toESM(require("path"));
|
|
40
40
|
var import_utils = require("@modern-js/utils");
|
|
41
41
|
var import_execSync = __toESM(require("./execSync"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
-
import {
|
|
2
|
+
import { fs, logger } from "@modern-js/utils";
|
|
3
3
|
const createWhistleProxyRule = (ruleDirectory, rules) => {
|
|
4
4
|
const dest = path.resolve(ruleDirectory, "proxy.rule.js");
|
|
5
5
|
let code = `/.*/ enable://intercept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import { logger } from "@modern-js/utils";
|
|
3
3
|
import execSync from "./execSync";
|
|
4
|
-
import {
|
|
4
|
+
import { defaultRootCA, generateRootCA, isRootCAExists, trustRootCA } from "./macCAManager";
|
|
5
5
|
const { disableGlobalProxy, enableGlobalProxy } = require("./macProxyManager");
|
|
6
6
|
class WhistleProxy {
|
|
7
7
|
async installRootCA() {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.58.
|
|
18
|
+
"version": "2.58.3",
|
|
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
|
"@swc/helpers": "0.5.3",
|
|
38
38
|
"whistle": "^2.7.18",
|
|
39
|
-
"@modern-js/utils": "2.58.
|
|
39
|
+
"@modern-js/utils": "2.58.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/jest": "^29",
|
|
43
43
|
"@types/node": "^14",
|
|
44
44
|
"jest": "^29",
|
|
45
45
|
"typescript": "^5",
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@scripts/jest-config": "2.58.
|
|
46
|
+
"@modern-js/core": "2.58.3",
|
|
47
|
+
"@scripts/build": "2.58.3",
|
|
48
|
+
"@scripts/jest-config": "2.58.3"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|