ddan-js 2.10.8 → 2.10.9

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,4 +1,7 @@
1
1
  declare const _default: {
2
+ flattenPath: (data: Record<string, any>) => Record<string, any>;
3
+ normalizeStructure: (data: any, prevData: any) => void;
4
+ diffPath: (data: Record<string, any>, prevData: Record<string, any>) => Record<string, any>;
2
5
  shExpMatch: (text: string, pattern: string) => boolean;
3
6
  shExpMatchs: (text: string, pattern: string | string[]) => boolean;
4
7
  copy: (source: any, options?: {
@@ -21,7 +21,7 @@ declare const _default: {
21
21
  ipaddress: string;
22
22
  port: number;
23
23
  } | undefined> | undefined;
24
- toPacScript: (proxy: string, rules?: string[], defaultProxy?: string) => string;
24
+ toPacScript: (proxy: string, rules?: string[], defaultProxy?: string, directs?: string[]) => string;
25
25
  toPacProxy: (ipaddress: string, port: number, options?: {
26
26
  type?: "PROXY" | "SOCKS5" | "ALL" | undefined;
27
27
  direct?: boolean | undefined;
@@ -31,6 +31,14 @@ declare const _default: {
31
31
  type?: "PROXY" | "SOCKS5" | "ALL" | undefined;
32
32
  useSystem?: boolean | undefined;
33
33
  } | undefined) => Promise<string>;
34
+ getPacScript: (options?: {
35
+ address?: string | undefined;
36
+ port?: number | undefined;
37
+ rules?: string[] | undefined;
38
+ type?: "PROXY" | "SOCKS5" | "ALL" | undefined;
39
+ directs?: string[] | undefined;
40
+ useSystem?: boolean | undefined;
41
+ } | undefined) => Promise<string>;
34
42
  child_exec: (cmd: string) => Promise<[any, string]>;
35
43
  brotliCompress: typeof import("./brotli").brotliCompress;
36
44
  brotliDecompress: typeof import("./brotli").brotliDecompress;
@@ -3,7 +3,7 @@ declare const _default_1: {
3
3
  ipaddress: string;
4
4
  port: number;
5
5
  } | undefined> | undefined;
6
- toPacScript: (proxy: string, rules?: string[], defaultProxy?: string) => string;
6
+ toPacScript: (proxy: string, rules?: string[], defaultProxy?: string, directs?: string[]) => string;
7
7
  toPacProxy: (ipaddress: string, port: number, options?: {
8
8
  type?: "PROXY" | "SOCKS5" | "ALL" | undefined;
9
9
  direct?: boolean | undefined;
@@ -13,5 +13,13 @@ declare const _default_1: {
13
13
  type?: "PROXY" | "SOCKS5" | "ALL" | undefined;
14
14
  useSystem?: boolean | undefined;
15
15
  } | undefined) => Promise<string>;
16
+ getPacScript: (options?: {
17
+ address?: string | undefined;
18
+ port?: number | undefined;
19
+ rules?: string[] | undefined;
20
+ type?: "PROXY" | "SOCKS5" | "ALL" | undefined;
21
+ directs?: string[] | undefined;
22
+ useSystem?: boolean | undefined;
23
+ } | undefined) => Promise<string>;
16
24
  };
17
25
  export default _default_1;
@@ -181,6 +181,9 @@ declare const dHook: {
181
181
  toUint32: (str: string) => Uint32Array;
182
182
  fromUint32: (uint32: Uint32Array) => string;
183
183
  flatten: <T_7>(data: T_7[], recursive?: boolean, list?: T_7[]) => T_7[];
184
+ flattenPath: (data: Record<string, any>) => Record<string, any>;
185
+ normalizeStructure: (data: any, prevData: any) => void;
186
+ diffPath: (data: Record<string, any>, prevData: Record<string, any>) => Record<string, any>;
184
187
  shExpMatch: (text: string, pattern: string) => boolean;
185
188
  shExpMatchs: (text: string, pattern: string | string[]) => boolean;
186
189
  copy: (source: any, options?: {
@@ -18,7 +18,7 @@ declare const dNode: {
18
18
  ipaddress: string;
19
19
  port: number;
20
20
  } | undefined> | undefined;
21
- toPacScript: (proxy: string, rules?: string[], defaultProxy?: string) => string;
21
+ toPacScript: (proxy: string, rules?: string[], defaultProxy?: string, directs?: string[]) => string;
22
22
  toPacProxy: (ipaddress: string, port: number, options?: {
23
23
  type?: "PROXY" | "SOCKS5" | "ALL" | undefined;
24
24
  direct?: boolean | undefined;
@@ -28,6 +28,14 @@ declare const dNode: {
28
28
  type?: "PROXY" | "SOCKS5" | "ALL" | undefined;
29
29
  useSystem?: boolean | undefined;
30
30
  } | undefined) => Promise<string>;
31
+ getPacScript: (options?: {
32
+ address?: string | undefined;
33
+ port?: number | undefined;
34
+ rules?: string[] | undefined;
35
+ type?: "PROXY" | "SOCKS5" | "ALL" | undefined;
36
+ directs?: string[] | undefined;
37
+ useSystem?: boolean | undefined;
38
+ } | undefined) => Promise<string>;
31
39
  child_exec: (cmd: string) => Promise<[any, string]>;
32
40
  brotliCompress: typeof import("../modules/node/brotli").brotliCompress;
33
41
  brotliDecompress: typeof import("../modules/node/brotli").brotliDecompress;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddan-js",
3
- "version": "2.10.8",
3
+ "version": "2.10.9",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "ddan-js",