@modern-js/plugin-proxy 2.0.0-beta.4 → 2.0.0-beta.7

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 CHANGED
@@ -1,5 +1,49 @@
1
1
  # @modern-js/plugin-proxy
2
2
 
3
+ ## 2.0.0-beta.7
4
+
5
+ ### Major Changes
6
+
7
+ - dda38c9c3e: chore: v2
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [edd1cfb1af]
12
+ - Updated dependencies [dda38c9c3e]
13
+ - Updated dependencies [bbe4c4ab64]
14
+ - @modern-js/utils@2.0.0-beta.7
15
+
16
+ ## 2.0.0-beta.6
17
+
18
+ ### Major Changes
19
+
20
+ - dda38c9c3e: chore: v2
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [7879e8f711]
25
+ - Updated dependencies [6aca875011]
26
+ - Updated dependencies [2e6031955e]
27
+ - Updated dependencies [7b7d12cf8f]
28
+ - Updated dependencies [7efeed4]
29
+ - Updated dependencies [92f0eade39]
30
+ - Updated dependencies [edd1cfb1af]
31
+ - Updated dependencies [cc971eabfc]
32
+ - Updated dependencies [5b9049f2e9]
33
+ - Updated dependencies [92004d1906]
34
+ - Updated dependencies [b8bbe036c7]
35
+ - Updated dependencies [d5a31df781]
36
+ - Updated dependencies [dda38c9c3e]
37
+ - Updated dependencies [3bbea92b2a]
38
+ - Updated dependencies [b710adb843]
39
+ - Updated dependencies [ea7cf06257]
40
+ - Updated dependencies [bbe4c4ab64]
41
+ - Updated dependencies [e4558a0bc4]
42
+ - Updated dependencies [abf3421a75]
43
+ - Updated dependencies [543be9558e]
44
+ - Updated dependencies [14b712da84]
45
+ - @modern-js/utils@2.0.0-beta.6
46
+
3
47
  ## 2.0.0-beta.4
4
48
 
5
49
  ### Major Changes
@@ -21,14 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  mod
22
22
  ));
23
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
- var stdin_exports = {};
25
- __export(stdin_exports, {
26
- default: () => src_default
27
- });
28
- module.exports = __toCommonJS(stdin_exports);
29
- var import_utils = require("@modern-js/utils");
30
- var import_createProxyRule = require("./utils/createProxyRule");
31
- var import_whistleProxy = __toESM(require("./utils/whistleProxy"));
32
24
  var __async = (__this, __arguments, generator) => {
33
25
  return new Promise((resolve, reject) => {
34
26
  var fulfilled = (value) => {
@@ -49,6 +41,14 @@ var __async = (__this, __arguments, generator) => {
49
41
  step((generator = generator.apply(__this, __arguments)).next());
50
42
  });
51
43
  };
44
+ var src_exports = {};
45
+ __export(src_exports, {
46
+ default: () => src_default
47
+ });
48
+ module.exports = __toCommonJS(src_exports);
49
+ var import_utils = require("@modern-js/utils");
50
+ var import_createProxyRule = require("./utils/createProxyRule");
51
+ var import_whistleProxy = __toESM(require("./utils/whistleProxy"));
52
52
  var src_default = () => {
53
53
  let proxyServer;
54
54
  return {
@@ -75,3 +75,5 @@ var src_default = () => {
75
75
  })
76
76
  };
77
77
  };
78
+ // Annotate the CommonJS export names for ESM import in node:
79
+ 0 && (module.exports = {});
@@ -21,11 +21,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  mod
22
22
  ));
23
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
- var stdin_exports = {};
25
- __export(stdin_exports, {
24
+ var createProxyRule_exports = {};
25
+ __export(createProxyRule_exports, {
26
26
  createProxyRule: () => createProxyRule
27
27
  });
28
- module.exports = __toCommonJS(stdin_exports);
28
+ module.exports = __toCommonJS(createProxyRule_exports);
29
29
  var import_path = __toESM(require("path"));
30
30
  var import_utils = require("@modern-js/utils");
31
31
  const createWhistleProxyRule = (ruleDirectory, rules) => {
@@ -61,3 +61,7 @@ const createProxyRule = (appDirectory, proxyOptions) => {
61
61
  }
62
62
  return createWhistleProxyRule(appDirectory, rules);
63
63
  };
64
+ // Annotate the CommonJS export names for ESM import in node:
65
+ 0 && (module.exports = {
66
+ createProxyRule
67
+ });
@@ -15,11 +15,11 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var stdin_exports = {};
19
- __export(stdin_exports, {
18
+ var execSync_exports = {};
19
+ __export(execSync_exports, {
20
20
  default: () => execSync_default
21
21
  });
22
- module.exports = __toCommonJS(stdin_exports);
22
+ module.exports = __toCommonJS(execSync_exports);
23
23
  var import_child_process = require("child_process");
24
24
  function execSync(cmd) {
25
25
  let stdout;
@@ -36,3 +36,5 @@ function execSync(cmd) {
36
36
  };
37
37
  }
38
38
  var execSync_default = execSync;
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {});
@@ -21,14 +21,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  mod
22
22
  ));
23
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
- var stdin_exports = {};
25
- __export(stdin_exports, {
24
+ var macCAManager_exports = {};
25
+ __export(macCAManager_exports, {
26
26
  defaultRootCA: () => defaultRootCA,
27
27
  generateRootCA: () => generateRootCA,
28
28
  isRootCAExists: () => isRootCAExists,
29
29
  trustRootCA: () => trustRootCA
30
30
  });
31
- module.exports = __toCommonJS(stdin_exports);
31
+ module.exports = __toCommonJS(macCAManager_exports);
32
32
  var import_os = __toESM(require("os"));
33
33
  var import_http = __toESM(require("http"));
34
34
  var import_path = __toESM(require("path"));
@@ -73,3 +73,10 @@ const generateRootCA = () => new Promise((resolve, reject) => {
73
73
  reject(err);
74
74
  });
75
75
  });
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ defaultRootCA,
79
+ generateRootCA,
80
+ isRootCAExists,
81
+ trustRootCA
82
+ });
@@ -21,12 +21,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  mod
22
22
  ));
23
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
- var stdin_exports = {};
25
- __export(stdin_exports, {
24
+ var macProxyManager_exports = {};
25
+ __export(macProxyManager_exports, {
26
26
  disableGlobalProxy: () => disableGlobalProxy,
27
27
  enableGlobalProxy: () => enableGlobalProxy
28
28
  });
29
- module.exports = __toCommonJS(stdin_exports);
29
+ module.exports = __toCommonJS(macProxyManager_exports);
30
30
  var import_execSync = __toESM(require("./execSync"));
31
31
  const networkTypes = ["Ethernet", "Thunderbolt Ethernet", "Wi-Fi"];
32
32
  const getNetworkType = () => {
@@ -49,3 +49,8 @@ const disableGlobalProxy = () => {
49
49
  (0, import_execSync.default)(`networksetup -setwebproxystate ${networkType} off`);
50
50
  (0, import_execSync.default)(`networksetup -setsecurewebproxystate ${networkType} off`);
51
51
  };
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ disableGlobalProxy,
55
+ enableGlobalProxy
56
+ });
@@ -21,15 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  mod
22
22
  ));
23
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
- var stdin_exports = {};
25
- __export(stdin_exports, {
26
- default: () => WhistleProxy
27
- });
28
- module.exports = __toCommonJS(stdin_exports);
29
- var import_path = __toESM(require("path"));
30
- var import_utils = require("@modern-js/utils");
31
- var import_execSync = __toESM(require("./execSync"));
32
- var import_macCAManager = require("./macCAManager");
33
24
  var __async = (__this, __arguments, generator) => {
34
25
  return new Promise((resolve, reject) => {
35
26
  var fulfilled = (value) => {
@@ -50,6 +41,15 @@ var __async = (__this, __arguments, generator) => {
50
41
  step((generator = generator.apply(__this, __arguments)).next());
51
42
  });
52
43
  };
44
+ var whistleProxy_exports = {};
45
+ __export(whistleProxy_exports, {
46
+ default: () => WhistleProxy
47
+ });
48
+ module.exports = __toCommonJS(whistleProxy_exports);
49
+ var import_path = __toESM(require("path"));
50
+ var import_utils = require("@modern-js/utils");
51
+ var import_execSync = __toESM(require("./execSync"));
52
+ var import_macCAManager = require("./macCAManager");
53
53
  const { disableGlobalProxy, enableGlobalProxy } = require("./macProxyManager");
54
54
  class WhistleProxy {
55
55
  constructor(config) {
@@ -91,3 +91,5 @@ class WhistleProxy {
91
91
  import_utils.logger.info(`Proxy Server has been closed`);
92
92
  }
93
93
  }
94
+ // Annotate the CommonJS export names for ESM import in node:
95
+ 0 && (module.exports = {});
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.0.0-beta.4",
14
+ "version": "2.0.0-beta.7",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -33,16 +33,16 @@
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.18.0",
35
35
  "whistle": "^2.7.18",
36
- "@modern-js/utils": "2.0.0-beta.4"
36
+ "@modern-js/utils": "2.0.0-beta.7"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/jest": "^27",
40
40
  "@types/node": "^14",
41
41
  "typescript": "^4",
42
42
  "jest": "^27",
43
- "@modern-js/core": "2.0.0-beta.4",
44
- "@scripts/build": "2.0.0-beta.4",
45
- "@scripts/jest-config": "2.0.0-beta.4"
43
+ "@modern-js/core": "2.0.0-beta.7",
44
+ "@scripts/build": "2.0.0-beta.7",
45
+ "@scripts/jest-config": "2.0.0-beta.7"
46
46
  },
47
47
  "sideEffects": false,
48
48
  "publishConfig": {