@modern-js/plugin-proxy 2.42.1 → 2.43.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.
|
@@ -37,8 +37,7 @@ var import_utils = require("@modern-js/utils");
|
|
|
37
37
|
var import_execSync = __toESM(require("./execSync"));
|
|
38
38
|
var import_macCAManager = require("./macCAManager");
|
|
39
39
|
const { disableGlobalProxy, enableGlobalProxy } = require("./macProxyManager");
|
|
40
|
-
|
|
41
|
-
WhistleProxy = class WhistleProxy2 {
|
|
40
|
+
class WhistleProxy {
|
|
42
41
|
async installRootCA() {
|
|
43
42
|
try {
|
|
44
43
|
if (!(0, import_macCAManager.isRootCAExists)()) {
|
|
@@ -74,4 +73,4 @@ WhistleProxy = class WhistleProxy2 {
|
|
|
74
73
|
this.bin = import_path.default.resolve(import_path.default.dirname(require.resolve("whistle")), "bin/whistle.js");
|
|
75
74
|
this.certDir = import_path.default.dirname(import_macCAManager.defaultRootCA);
|
|
76
75
|
}
|
|
77
|
-
}
|
|
76
|
+
}
|
|
@@ -4,8 +4,7 @@ import { logger } from "@modern-js/utils";
|
|
|
4
4
|
import execSync from "./execSync";
|
|
5
5
|
import { isRootCAExists, generateRootCA, defaultRootCA, trustRootCA } from "./macCAManager";
|
|
6
6
|
const { disableGlobalProxy, enableGlobalProxy } = require("./macProxyManager");
|
|
7
|
-
|
|
8
|
-
WhistleProxy = class WhistleProxy2 {
|
|
7
|
+
class WhistleProxy {
|
|
9
8
|
async installRootCA() {
|
|
10
9
|
try {
|
|
11
10
|
if (!isRootCAExists()) {
|
|
@@ -41,7 +40,7 @@ WhistleProxy = class WhistleProxy2 {
|
|
|
41
40
|
this.bin = path.resolve(path.dirname(require.resolve("whistle")), "bin/whistle.js");
|
|
42
41
|
this.certDir = path.dirname(defaultRootCA);
|
|
43
42
|
}
|
|
44
|
-
}
|
|
43
|
+
}
|
|
45
44
|
export {
|
|
46
45
|
WhistleProxy as default
|
|
47
46
|
};
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.43.0",
|
|
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.
|
|
39
|
+
"@modern-js/utils": "2.43.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
|
-
"@
|
|
47
|
-
"@scripts/build": "2.
|
|
48
|
-
"@
|
|
46
|
+
"@scripts/jest-config": "2.43.0",
|
|
47
|
+
"@scripts/build": "2.43.0",
|
|
48
|
+
"@modern-js/core": "2.43.0"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|