ddan-js 2.10.7 → 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.
- package/LICENSE +7 -7
- package/bin/ddan-js.browser.js +1 -1
- package/bin/ddan-js.js +1 -1
- package/bin/ddan-js.mjs +1 -1
- package/bin/modules/common/diff.d.ts +6 -0
- package/bin/modules/common/index.d.ts +3 -0
- package/bin/modules/html.d.ts +2 -1
- package/bin/modules/node/index.d.ts +9 -1
- package/bin/modules/node/proxy.d.ts +9 -1
- package/bin/tiny/hook.d.ts +3 -0
- package/bin/tiny/mini.d.ts +2 -1
- package/bin/tiny/node.d.ts +9 -1
- package/bin/tiny/web.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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?: {
|
package/bin/modules/html.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const _default: {
|
|
|
22
22
|
legacyCopy: (text: string) => boolean;
|
|
23
23
|
takeHtmlLinks: (htmlContent: string) => never[];
|
|
24
24
|
takeHtml: (htmlContent: string, regex: RegExp) => string[];
|
|
25
|
-
toBlobUrl: (part: BlobPart, mime
|
|
25
|
+
toBlobUrl: (part: BlobPart, mime?: string) => string;
|
|
26
|
+
workerURL: (fn: Function) => string;
|
|
26
27
|
};
|
|
27
28
|
export default _default;
|
|
@@ -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;
|
package/bin/tiny/hook.d.ts
CHANGED
|
@@ -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?: {
|
package/bin/tiny/mini.d.ts
CHANGED
|
@@ -100,7 +100,8 @@ declare const dMini: {
|
|
|
100
100
|
legacyCopy: (text: string) => boolean;
|
|
101
101
|
takeHtmlLinks: (htmlContent: string) => never[];
|
|
102
102
|
takeHtml: (htmlContent: string, regex: RegExp) => string[];
|
|
103
|
-
toBlobUrl: (part: BlobPart, mime
|
|
103
|
+
toBlobUrl: (part: BlobPart, mime?: string) => string;
|
|
104
|
+
workerURL: (fn: Function) => string;
|
|
104
105
|
};
|
|
105
106
|
};
|
|
106
107
|
export default dMini;
|
package/bin/tiny/node.d.ts
CHANGED
|
@@ -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/bin/tiny/web.d.ts
CHANGED
|
@@ -109,7 +109,8 @@ declare const dWeb: {
|
|
|
109
109
|
legacyCopy: (text: string) => boolean;
|
|
110
110
|
takeHtmlLinks: (htmlContent: string) => never[];
|
|
111
111
|
takeHtml: (htmlContent: string, regex: RegExp) => string[];
|
|
112
|
-
toBlobUrl: (part: BlobPart, mime
|
|
112
|
+
toBlobUrl: (part: BlobPart, mime?: string) => string;
|
|
113
|
+
workerURL: (fn: Function) => string;
|
|
113
114
|
};
|
|
114
115
|
rsa: {
|
|
115
116
|
generateKeys: () => Promise<{
|