@modern-js/plugin-proxy 2.41.0 → 2.42.1

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.
@@ -1,3 +1,3 @@
1
1
  import type { CliPlugin } from '@modern-js/core';
2
2
  export declare const proxyPlugin: () => CliPlugin;
3
- export default proxyPlugin;
3
+ export default proxyPlugin;
@@ -1 +1 @@
1
- export declare const createProxyRule: (appDirectory: string, proxyOptions: any) => string;
1
+ export declare const createProxyRule: (appDirectory: string, proxyOptions: any) => string;
@@ -1,5 +1,5 @@
1
1
  declare function execSync(cmd: string): {
2
- stdout: any;
3
- status: number;
2
+ stdout: any;
3
+ status: number;
4
4
  };
5
- export default execSync;
5
+ export default execSync;
@@ -1,4 +1,4 @@
1
1
  export declare const defaultRootCA: string;
2
2
  export declare const trustRootCA: () => void;
3
3
  export declare const isRootCAExists: () => boolean;
4
- export declare const generateRootCA: (port: number) => Promise<unknown>;
4
+ export declare const generateRootCA: (port: number) => Promise<unknown>;
@@ -1,2 +1,2 @@
1
1
  export declare const enableGlobalProxy: (ip: string, port: string) => void;
2
- export declare const disableGlobalProxy: () => void;
2
+ export declare const disableGlobalProxy: () => void;
@@ -1,15 +1,15 @@
1
1
  interface ProxyConfig {
2
- rule: string;
3
- port: number;
2
+ rule: string;
3
+ port: number;
4
4
  }
5
5
  export default class WhistleProxy {
6
- private readonly rule;
7
- private readonly port;
8
- private readonly bin;
9
- private readonly certDir;
10
- constructor(config: ProxyConfig);
11
- installRootCA(): Promise<void>;
12
- start(): Promise<void>;
13
- close(): void;
6
+ private readonly rule;
7
+ private readonly port;
8
+ private readonly bin;
9
+ private readonly certDir;
10
+ constructor(config: ProxyConfig);
11
+ installRootCA(): Promise<void>;
12
+ start(): Promise<void>;
13
+ close(): void;
14
14
  }
15
- export {};
15
+ export {};
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.41.0",
18
+ "version": "2.42.1",
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.41.0"
39
+ "@modern-js/utils": "2.42.1"
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.41.0",
47
- "@scripts/jest-config": "2.41.0",
48
- "@scripts/build": "2.41.0"
46
+ "@modern-js/core": "2.42.1",
47
+ "@scripts/build": "2.42.1",
48
+ "@scripts/jest-config": "2.42.1"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "publishConfig": {