surgio 3.7.0 → 3.8.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.
- package/bin/dev +0 -0
- package/build/base-command.js +1 -1
- package/build/base-command.js.map +1 -1
- package/build/commands/check.js +1 -1
- package/build/commands/check.js.map +1 -1
- package/build/commands/clean-cache.js +1 -1
- package/build/commands/clean-cache.js.map +1 -1
- package/build/commands/generate.js +1 -1
- package/build/commands/generate.js.map +1 -1
- package/build/commands/new.js +1 -1
- package/build/commands/new.js.map +1 -1
- package/build/commands/upload.js +1 -1
- package/build/commands/upload.js.map +1 -1
- package/build/config.d.ts +1 -1
- package/build/config.js +3 -2
- package/build/config.js.map +1 -1
- package/build/configurables.d.ts +1 -0
- package/build/filters/filters.js.map +1 -1
- package/build/filters/utils.js.map +1 -1
- package/build/generator/artifact.js +20 -10
- package/build/generator/artifact.js.map +1 -1
- package/build/generator/json-template.js +1 -1
- package/build/generator/json-template.js.map +1 -1
- package/build/generator/template.js +1 -1
- package/build/generator/template.js.map +1 -1
- package/build/provider/BlackSSLProvider.js +1 -1
- package/build/provider/BlackSSLProvider.js.map +1 -1
- package/build/provider/ClashProvider.js.map +1 -1
- package/build/provider/CustomProvider.js +1 -1
- package/build/provider/CustomProvider.js.map +1 -1
- package/build/provider/Provider.js.map +1 -1
- package/build/provider/ShadowsocksJsonSubscribeProvider.js.map +1 -1
- package/build/provider/ShadowsocksSubscribeProvider.js.map +1 -1
- package/build/provider/ShadowsocksrSubscribeProvider.js +1 -1
- package/build/provider/ShadowsocksrSubscribeProvider.js.map +1 -1
- package/build/provider/SsdProvider.js +1 -1
- package/build/provider/SsdProvider.js.map +1 -1
- package/build/provider/TrojanProvider.js.map +1 -1
- package/build/provider/V2rayNSubscribeProvider.js +1 -1
- package/build/provider/V2rayNSubscribeProvider.js.map +1 -1
- package/build/provider/index.js.map +1 -1
- package/build/types.d.ts +1 -8
- package/build/types.js.map +1 -1
- package/build/utils/cache.js.map +1 -1
- package/build/utils/clash.js.map +1 -1
- package/build/utils/dns.js +1 -1
- package/build/utils/doctor.js +2 -2
- package/build/utils/doctor.js.map +1 -1
- package/build/utils/error-helper.js.map +1 -1
- package/build/utils/http-client.js.map +1 -1
- package/build/utils/index.js +5 -5
- package/build/utils/index.js.map +1 -1
- package/build/utils/loon.js +1 -1
- package/build/utils/loon.js.map +1 -1
- package/build/utils/quantumult.js.map +1 -1
- package/build/utils/remote-snippet.js +1 -1
- package/build/utils/remote-snippet.js.map +1 -1
- package/build/utils/singbox.js +1 -1
- package/build/utils/singbox.js.map +1 -1
- package/build/utils/ss.js +1 -1
- package/build/utils/ss.js.map +1 -1
- package/build/utils/ssr.js.map +1 -1
- package/build/utils/surfboard.js +1 -1
- package/build/utils/surfboard.js.map +1 -1
- package/build/utils/surge.js +5 -2
- package/build/utils/surge.js.map +1 -1
- package/build/utils/tmp-helper.js +1 -1
- package/build/utils/tmp-helper.js.map +1 -1
- package/build/utils/trojan.js +1 -1
- package/build/utils/trojan.js.map +1 -1
- package/build/validators/common.d.ts +69 -45
- package/build/validators/common.js +4 -0
- package/build/validators/common.js.map +1 -1
- package/build/validators/http.d.ts +125 -101
- package/build/validators/http.js.map +1 -1
- package/build/validators/hysteria2.d.ts +63 -51
- package/build/validators/hysteria2.js.map +1 -1
- package/build/validators/provider.js.map +1 -1
- package/build/validators/shadowsocks.d.ts +59 -47
- package/build/validators/shadowsocks.js.map +1 -1
- package/build/validators/shadowsocksr.d.ts +59 -47
- package/build/validators/shadowsocksr.js.map +1 -1
- package/build/validators/snell.d.ts +57 -45
- package/build/validators/snell.js.map +1 -1
- package/build/validators/socks5.d.ts +61 -49
- package/build/validators/socks5.js.map +1 -1
- package/build/validators/surgio-config.d.ts +3 -0
- package/build/validators/surgio-config.js +1 -0
- package/build/validators/surgio-config.js.map +1 -1
- package/build/validators/trojan.d.ts +63 -51
- package/build/validators/trojan.js.map +1 -1
- package/build/validators/tuic.d.ts +248 -200
- package/build/validators/tuic.js.map +1 -1
- package/build/validators/vless.d.ts +60 -48
- package/build/validators/vless.js.map +1 -1
- package/build/validators/vmess.d.ts +57 -45
- package/build/validators/vmess.js.map +1 -1
- package/build/validators/wireguard.d.ts +63 -51
- package/build/validators/wireguard.js.map +1 -1
- package/package.json +26 -25
|
@@ -14,6 +14,29 @@ export declare const VlessRealityOptsValidator: z.ZodObject<{
|
|
|
14
14
|
spiderX?: string | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export declare const VlessNodeConfigValidator: z.ZodObject<{
|
|
17
|
+
nodeName: z.ZodString;
|
|
18
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
sni: z.ZodOptional<z.ZodString>;
|
|
23
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
25
|
+
password: z.ZodString;
|
|
26
|
+
sni: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
password: string;
|
|
29
|
+
sni: string;
|
|
30
|
+
version?: string | number | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
password: string;
|
|
33
|
+
sni: string;
|
|
34
|
+
version?: string | number | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
37
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
38
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
39
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
17
40
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
18
41
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
19
42
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -57,29 +80,10 @@ export declare const VlessNodeConfigValidator: z.ZodObject<{
|
|
|
57
80
|
enableVless?: boolean | undefined;
|
|
58
81
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
59
82
|
}>>;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
64
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
83
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
84
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
85
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
65
86
|
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
-
nodeName: z.ZodString;
|
|
67
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
-
sni: z.ZodOptional<z.ZodString>;
|
|
69
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
70
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
71
|
-
password: z.ZodString;
|
|
72
|
-
sni: z.ZodString;
|
|
73
|
-
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
password: string;
|
|
75
|
-
sni: string;
|
|
76
|
-
version?: string | number | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
password: string;
|
|
79
|
-
sni: string;
|
|
80
|
-
version?: string | number | undefined;
|
|
81
|
-
}>>;
|
|
82
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
83
87
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
84
88
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
85
89
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -204,6 +208,20 @@ export declare const VlessNodeConfigValidator: z.ZodObject<{
|
|
|
204
208
|
method: "none";
|
|
205
209
|
uuid: string;
|
|
206
210
|
network: "tcp" | "http" | "ws" | "h2" | "grpc" | "quic" | "httpupgrade";
|
|
211
|
+
enable?: boolean | undefined;
|
|
212
|
+
tfo?: boolean | undefined;
|
|
213
|
+
mptcp?: boolean | undefined;
|
|
214
|
+
ecn?: boolean | undefined;
|
|
215
|
+
sni?: string | undefined;
|
|
216
|
+
shadowTls?: {
|
|
217
|
+
password: string;
|
|
218
|
+
sni: string;
|
|
219
|
+
version?: string | number | undefined;
|
|
220
|
+
} | undefined;
|
|
221
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
222
|
+
underlyingProxy?: string | undefined;
|
|
223
|
+
testUrl?: string | undefined;
|
|
224
|
+
testTimeout?: number | undefined;
|
|
207
225
|
surgeConfig?: {
|
|
208
226
|
resolveHostname?: boolean | undefined;
|
|
209
227
|
vmessAEAD?: boolean | undefined;
|
|
@@ -221,20 +239,10 @@ export declare const VlessNodeConfigValidator: z.ZodObject<{
|
|
|
221
239
|
enableVless?: boolean | undefined;
|
|
222
240
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
223
241
|
} | undefined;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
228
|
-
underlyingProxy?: string | undefined;
|
|
242
|
+
hostnameIp?: readonly string[] | undefined;
|
|
243
|
+
binPath?: string | undefined;
|
|
244
|
+
localPort?: number | undefined;
|
|
229
245
|
tls13?: boolean | undefined;
|
|
230
|
-
enable?: boolean | undefined;
|
|
231
|
-
sni?: string | undefined;
|
|
232
|
-
shadowTls?: {
|
|
233
|
-
password: string;
|
|
234
|
-
sni: string;
|
|
235
|
-
version?: string | number | undefined;
|
|
236
|
-
} | undefined;
|
|
237
|
-
testUrl?: string | undefined;
|
|
238
246
|
skipCertVerify?: boolean | undefined;
|
|
239
247
|
alpn?: [string, ...string[]] | undefined;
|
|
240
248
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -286,6 +294,20 @@ export declare const VlessNodeConfigValidator: z.ZodObject<{
|
|
|
286
294
|
hostname: string;
|
|
287
295
|
method: "none";
|
|
288
296
|
uuid: string;
|
|
297
|
+
enable?: boolean | undefined;
|
|
298
|
+
tfo?: boolean | undefined;
|
|
299
|
+
mptcp?: boolean | undefined;
|
|
300
|
+
ecn?: boolean | undefined;
|
|
301
|
+
sni?: string | undefined;
|
|
302
|
+
shadowTls?: {
|
|
303
|
+
password: string;
|
|
304
|
+
sni: string;
|
|
305
|
+
version?: string | number | undefined;
|
|
306
|
+
} | undefined;
|
|
307
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
308
|
+
underlyingProxy?: string | undefined;
|
|
309
|
+
testUrl?: string | undefined;
|
|
310
|
+
testTimeout?: number | undefined;
|
|
289
311
|
surgeConfig?: {
|
|
290
312
|
resolveHostname?: boolean | undefined;
|
|
291
313
|
vmessAEAD?: boolean | undefined;
|
|
@@ -303,20 +325,10 @@ export declare const VlessNodeConfigValidator: z.ZodObject<{
|
|
|
303
325
|
enableVless?: boolean | undefined;
|
|
304
326
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
305
327
|
} | undefined;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
310
|
-
underlyingProxy?: string | undefined;
|
|
328
|
+
hostnameIp?: string[] | undefined;
|
|
329
|
+
binPath?: string | undefined;
|
|
330
|
+
localPort?: number | undefined;
|
|
311
331
|
tls13?: boolean | undefined;
|
|
312
|
-
enable?: boolean | undefined;
|
|
313
|
-
sni?: string | undefined;
|
|
314
|
-
shadowTls?: {
|
|
315
|
-
password: string;
|
|
316
|
-
sni: string;
|
|
317
|
-
version?: string | number | undefined;
|
|
318
|
-
} | undefined;
|
|
319
|
-
testUrl?: string | undefined;
|
|
320
332
|
skipCertVerify?: boolean | undefined;
|
|
321
333
|
alpn?: [string, ...string[]] | undefined;
|
|
322
334
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vless.js","sourceRoot":"","sources":["../../src/validators/vless.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;
|
|
1
|
+
{"version":3,"file":"vless.js","sourceRoot":"","sources":["../../src/validators/vless.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;AAEvC,qCAIiB;AACjB,mCAQgB;AAEH,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAA;AAEW,QAAA,wBAAwB,GAAG,+BAAsB,CAAC,MAAM,CAAC;IACpE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,KAAK,CAAC;IACnC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,sBAAa;IACnB,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACzB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvB,OAAO,EAAE,6BAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;IAC7C,QAAQ,EAAE,OAAC,CAAC,QAAQ,EAAE;IACtB,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;IAEjB,MAAM,EAAE,4BAAoB,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,4BAAoB,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,8BAAsB,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,8BAAsB,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,8BAAsB,CAAC,QAAQ,EAAE;IAC3C,eAAe,EAAE,qCAA6B,CAAC,QAAQ,EAAE;IACzD,WAAW,EAAE,iCAAyB,CAAC,QAAQ,EAAE;IACjD,SAAS,EAAE,2BAAkB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA"}
|
|
@@ -61,6 +61,28 @@ export declare const VmessHttpUpgradeOptsValidator: z.ZodObject<{
|
|
|
61
61
|
* @see https://wiki.metacubex.one/config/proxies/vmess/
|
|
62
62
|
*/
|
|
63
63
|
export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
64
|
+
nodeName: z.ZodString;
|
|
65
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
71
|
+
password: z.ZodString;
|
|
72
|
+
sni: z.ZodString;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
password: string;
|
|
75
|
+
sni: string;
|
|
76
|
+
version?: string | number | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
password: string;
|
|
79
|
+
sni: string;
|
|
80
|
+
version?: string | number | undefined;
|
|
81
|
+
}>>;
|
|
82
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
83
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
84
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
85
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
64
86
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
65
87
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
66
88
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -104,27 +126,9 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
104
126
|
enableVless?: boolean | undefined;
|
|
105
127
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
106
128
|
}>>;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
111
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
112
|
-
nodeName: z.ZodString;
|
|
113
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
115
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
116
|
-
password: z.ZodString;
|
|
117
|
-
sni: z.ZodString;
|
|
118
|
-
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
password: string;
|
|
120
|
-
sni: string;
|
|
121
|
-
version?: string | number | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
password: string;
|
|
124
|
-
sni: string;
|
|
125
|
-
version?: string | number | undefined;
|
|
126
|
-
}>>;
|
|
127
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
129
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
130
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
131
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
128
132
|
type: z.ZodLiteral<NodeTypeEnum.Vmess>;
|
|
129
133
|
hostname: z.ZodString;
|
|
130
134
|
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
@@ -242,6 +246,19 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
242
246
|
method: "auto" | "none" | "aes-128-gcm" | "chacha20-poly1305";
|
|
243
247
|
uuid: string;
|
|
244
248
|
network: "tcp" | "http" | "ws" | "h2" | "grpc" | "quic" | "httpupgrade";
|
|
249
|
+
enable?: boolean | undefined;
|
|
250
|
+
tfo?: boolean | undefined;
|
|
251
|
+
mptcp?: boolean | undefined;
|
|
252
|
+
ecn?: boolean | undefined;
|
|
253
|
+
shadowTls?: {
|
|
254
|
+
password: string;
|
|
255
|
+
sni: string;
|
|
256
|
+
version?: string | number | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
259
|
+
underlyingProxy?: string | undefined;
|
|
260
|
+
testUrl?: string | undefined;
|
|
261
|
+
testTimeout?: number | undefined;
|
|
245
262
|
surgeConfig?: {
|
|
246
263
|
resolveHostname?: boolean | undefined;
|
|
247
264
|
vmessAEAD?: boolean | undefined;
|
|
@@ -259,18 +276,9 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
259
276
|
enableVless?: boolean | undefined;
|
|
260
277
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
261
278
|
} | undefined;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
266
|
-
underlyingProxy?: string | undefined;
|
|
267
|
-
enable?: boolean | undefined;
|
|
268
|
-
shadowTls?: {
|
|
269
|
-
password: string;
|
|
270
|
-
sni: string;
|
|
271
|
-
version?: string | number | undefined;
|
|
272
|
-
} | undefined;
|
|
273
|
-
testUrl?: string | undefined;
|
|
279
|
+
hostnameIp?: readonly string[] | undefined;
|
|
280
|
+
binPath?: string | undefined;
|
|
281
|
+
localPort?: number | undefined;
|
|
274
282
|
alterId?: string | number | undefined;
|
|
275
283
|
udpRelay?: boolean | undefined;
|
|
276
284
|
wsOpts?: {
|
|
@@ -323,6 +331,19 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
323
331
|
hostname: string;
|
|
324
332
|
method: "auto" | "none" | "aes-128-gcm" | "chacha20-poly1305";
|
|
325
333
|
uuid: string;
|
|
334
|
+
enable?: boolean | undefined;
|
|
335
|
+
tfo?: boolean | undefined;
|
|
336
|
+
mptcp?: boolean | undefined;
|
|
337
|
+
ecn?: boolean | undefined;
|
|
338
|
+
shadowTls?: {
|
|
339
|
+
password: string;
|
|
340
|
+
sni: string;
|
|
341
|
+
version?: string | number | undefined;
|
|
342
|
+
} | undefined;
|
|
343
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
344
|
+
underlyingProxy?: string | undefined;
|
|
345
|
+
testUrl?: string | undefined;
|
|
346
|
+
testTimeout?: number | undefined;
|
|
326
347
|
surgeConfig?: {
|
|
327
348
|
resolveHostname?: boolean | undefined;
|
|
328
349
|
vmessAEAD?: boolean | undefined;
|
|
@@ -340,18 +361,9 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
340
361
|
enableVless?: boolean | undefined;
|
|
341
362
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
342
363
|
} | undefined;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
347
|
-
underlyingProxy?: string | undefined;
|
|
348
|
-
enable?: boolean | undefined;
|
|
349
|
-
shadowTls?: {
|
|
350
|
-
password: string;
|
|
351
|
-
sni: string;
|
|
352
|
-
version?: string | number | undefined;
|
|
353
|
-
} | undefined;
|
|
354
|
-
testUrl?: string | undefined;
|
|
364
|
+
hostnameIp?: string[] | undefined;
|
|
365
|
+
binPath?: string | undefined;
|
|
366
|
+
localPort?: number | undefined;
|
|
355
367
|
alterId?: string | number | undefined;
|
|
356
368
|
network?: "tcp" | "http" | "ws" | "h2" | "grpc" | "quic" | "httpupgrade" | undefined;
|
|
357
369
|
udpRelay?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vmess.js","sourceRoot":"","sources":["../../src/validators/vmess.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;
|
|
1
|
+
{"version":3,"file":"vmess.js","sourceRoot":"","sources":["../../src/validators/vmess.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;AAEvC,qCAKiB;AAEJ,QAAA,qBAAqB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC3C,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAChB,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACf,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACf,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACjB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACjB,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;CACzB,CAAC,CAAA;AAEW,QAAA,oBAAoB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC1C,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACjB,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACxB,OAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IAC9B,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;CAClB,CAAC,CAAA;AAEW,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA;AAEW,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAA;AAEW,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACnC,CAAC,CAAA;AAEW,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA;AAEW,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;AAC7C,eAAe;CAChB,CAAC,CAAA;AAEW,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA;AAEF;;;GAGG;AACU,QAAA,wBAAwB,GAAG,kCAAyB,CAAC,MAAM,CAAC;IACvE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,KAAK,CAAC;IACnC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,sBAAa;IACnB,MAAM,EAAE,4BAAoB;IAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvB,OAAO,EAAE,wBAAe,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,6BAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;IAC7C,QAAQ,EAAE,OAAC,CAAC,QAAQ,EAAE;IAEtB,MAAM,EAAE,4BAAoB,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,4BAAoB,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,8BAAsB,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,8BAAsB,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,8BAAsB,CAAC,QAAQ,EAAE;IAC3C,eAAe,EAAE,qCAA6B,CAAC,QAAQ,EAAE;IAEzD,GAAG,EAAE,OAAC,CAAC,QAAQ,EAAE;IACjB,GAAG,EAAE,OAAC,CAAC,OAAO,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,QAAQ,EAAE;IACnB,cAAc,EAAE,OAAC,CAAC,QAAQ,EAAE;IAC5B,2BAA2B,EAAE,OAAC,CAAC,OAAO,EAAE;IACxC,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/C,iBAAiB,EAAE,OAAC,CAAC,OAAO,EAAE;IAC9B,SAAS,EAAE,2BAAkB,CAAC,QAAQ,EAAE;IAExC;;OAEG;IACH,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;IACjB;;OAEG;IACH,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;IACjB;;OAEG;IACH,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAA"}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
4
|
+
nodeName: z.ZodString;
|
|
5
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
11
|
+
password: z.ZodString;
|
|
12
|
+
sni: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
password: string;
|
|
15
|
+
sni: string;
|
|
16
|
+
version?: string | number | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
password: string;
|
|
19
|
+
sni: string;
|
|
20
|
+
version?: string | number | undefined;
|
|
21
|
+
}>>;
|
|
22
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
23
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
24
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
25
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
4
26
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
5
27
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
6
28
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -44,27 +66,9 @@ export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
|
44
66
|
enableVless?: boolean | undefined;
|
|
45
67
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
46
68
|
}>>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
51
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
52
|
-
nodeName: z.ZodString;
|
|
53
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
55
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
56
|
-
password: z.ZodString;
|
|
57
|
-
sni: z.ZodString;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
password: string;
|
|
60
|
-
sni: string;
|
|
61
|
-
version?: string | number | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
password: string;
|
|
64
|
-
sni: string;
|
|
65
|
-
version?: string | number | undefined;
|
|
66
|
-
}>>;
|
|
67
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
69
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
70
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
71
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
68
72
|
type: z.ZodLiteral<NodeTypeEnum.Wireguard>;
|
|
69
73
|
selfIp: z.ZodString;
|
|
70
74
|
selfIpV6: z.ZodOptional<z.ZodString>;
|
|
@@ -80,15 +84,15 @@ export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
|
80
84
|
presharedKey: z.ZodOptional<z.ZodString>;
|
|
81
85
|
reservedBits: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
82
86
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
endpoint: string;
|
|
84
87
|
publicKey: string;
|
|
88
|
+
endpoint: string;
|
|
85
89
|
allowedIps?: string | undefined;
|
|
86
90
|
keepalive?: number | undefined;
|
|
87
91
|
presharedKey?: string | undefined;
|
|
88
92
|
reservedBits?: number[] | undefined;
|
|
89
93
|
}, {
|
|
90
|
-
endpoint: string;
|
|
91
94
|
publicKey: string;
|
|
95
|
+
endpoint: string;
|
|
92
96
|
allowedIps?: string | undefined;
|
|
93
97
|
keepalive?: number | undefined;
|
|
94
98
|
presharedKey?: string | undefined;
|
|
@@ -101,20 +105,33 @@ export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
|
101
105
|
selfIp: string;
|
|
102
106
|
privateKey: string;
|
|
103
107
|
peers: [{
|
|
104
|
-
endpoint: string;
|
|
105
108
|
publicKey: string;
|
|
109
|
+
endpoint: string;
|
|
106
110
|
allowedIps?: string | undefined;
|
|
107
111
|
keepalive?: number | undefined;
|
|
108
112
|
presharedKey?: string | undefined;
|
|
109
113
|
reservedBits?: number[] | undefined;
|
|
110
114
|
}, ...{
|
|
111
|
-
endpoint: string;
|
|
112
115
|
publicKey: string;
|
|
116
|
+
endpoint: string;
|
|
113
117
|
allowedIps?: string | undefined;
|
|
114
118
|
keepalive?: number | undefined;
|
|
115
119
|
presharedKey?: string | undefined;
|
|
116
120
|
reservedBits?: number[] | undefined;
|
|
117
121
|
}[]];
|
|
122
|
+
enable?: boolean | undefined;
|
|
123
|
+
tfo?: boolean | undefined;
|
|
124
|
+
mptcp?: boolean | undefined;
|
|
125
|
+
ecn?: boolean | undefined;
|
|
126
|
+
shadowTls?: {
|
|
127
|
+
password: string;
|
|
128
|
+
sni: string;
|
|
129
|
+
version?: string | number | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
132
|
+
underlyingProxy?: string | undefined;
|
|
133
|
+
testUrl?: string | undefined;
|
|
134
|
+
testTimeout?: number | undefined;
|
|
118
135
|
surgeConfig?: {
|
|
119
136
|
resolveHostname?: boolean | undefined;
|
|
120
137
|
vmessAEAD?: boolean | undefined;
|
|
@@ -132,18 +149,9 @@ export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
|
132
149
|
enableVless?: boolean | undefined;
|
|
133
150
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
134
151
|
} | undefined;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
139
|
-
underlyingProxy?: string | undefined;
|
|
140
|
-
enable?: boolean | undefined;
|
|
141
|
-
shadowTls?: {
|
|
142
|
-
password: string;
|
|
143
|
-
sni: string;
|
|
144
|
-
version?: string | number | undefined;
|
|
145
|
-
} | undefined;
|
|
146
|
-
testUrl?: string | undefined;
|
|
152
|
+
hostnameIp?: readonly string[] | undefined;
|
|
153
|
+
binPath?: string | undefined;
|
|
154
|
+
localPort?: number | undefined;
|
|
147
155
|
selfIpV6?: string | undefined;
|
|
148
156
|
preferIpv6?: boolean | undefined;
|
|
149
157
|
mtu?: number | undefined;
|
|
@@ -155,20 +163,33 @@ export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
|
155
163
|
selfIp: string;
|
|
156
164
|
privateKey: string;
|
|
157
165
|
peers: [{
|
|
158
|
-
endpoint: string;
|
|
159
166
|
publicKey: string;
|
|
167
|
+
endpoint: string;
|
|
160
168
|
allowedIps?: string | undefined;
|
|
161
169
|
keepalive?: number | undefined;
|
|
162
170
|
presharedKey?: string | undefined;
|
|
163
171
|
reservedBits?: number[] | undefined;
|
|
164
172
|
}, ...{
|
|
165
|
-
endpoint: string;
|
|
166
173
|
publicKey: string;
|
|
174
|
+
endpoint: string;
|
|
167
175
|
allowedIps?: string | undefined;
|
|
168
176
|
keepalive?: number | undefined;
|
|
169
177
|
presharedKey?: string | undefined;
|
|
170
178
|
reservedBits?: number[] | undefined;
|
|
171
179
|
}[]];
|
|
180
|
+
enable?: boolean | undefined;
|
|
181
|
+
tfo?: boolean | undefined;
|
|
182
|
+
mptcp?: boolean | undefined;
|
|
183
|
+
ecn?: boolean | undefined;
|
|
184
|
+
shadowTls?: {
|
|
185
|
+
password: string;
|
|
186
|
+
sni: string;
|
|
187
|
+
version?: string | number | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
190
|
+
underlyingProxy?: string | undefined;
|
|
191
|
+
testUrl?: string | undefined;
|
|
192
|
+
testTimeout?: number | undefined;
|
|
172
193
|
surgeConfig?: {
|
|
173
194
|
resolveHostname?: boolean | undefined;
|
|
174
195
|
vmessAEAD?: boolean | undefined;
|
|
@@ -186,18 +207,9 @@ export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
|
186
207
|
enableVless?: boolean | undefined;
|
|
187
208
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
188
209
|
} | undefined;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
193
|
-
underlyingProxy?: string | undefined;
|
|
194
|
-
enable?: boolean | undefined;
|
|
195
|
-
shadowTls?: {
|
|
196
|
-
password: string;
|
|
197
|
-
sni: string;
|
|
198
|
-
version?: string | number | undefined;
|
|
199
|
-
} | undefined;
|
|
200
|
-
testUrl?: string | undefined;
|
|
210
|
+
hostnameIp?: string[] | undefined;
|
|
211
|
+
binPath?: string | undefined;
|
|
212
|
+
localPort?: number | undefined;
|
|
201
213
|
selfIpV6?: string | undefined;
|
|
202
214
|
preferIpv6?: boolean | undefined;
|
|
203
215
|
mtu?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wireguard.js","sourceRoot":"","sources":["../../src/validators/wireguard.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;
|
|
1
|
+
{"version":3,"file":"wireguard.js","sourceRoot":"","sources":["../../src/validators/wireguard.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;AAEvC,qCAAoD;AAEpD,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;IAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAA;AAEW,QAAA,4BAA4B,GAAG,kCAAyB,CAAC,MAAM,CAAC;IAC3E,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,SAAS,CAAC;IACvC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACxC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1D,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC,QAAQ,EAAE;IACvD,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "surgio",
|
|
3
3
|
"description": "Generating rules for Surge, Clash, Quantumult like a PRO",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.8.0",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
7
7
|
"bin": {
|
|
@@ -33,26 +33,6 @@
|
|
|
33
33
|
"url": "https://github.com/geekdada/surgio/issues"
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://surgio.js.org",
|
|
36
|
-
"scripts": {
|
|
37
|
-
"dev": "npm run build -- --watch",
|
|
38
|
-
"test": "run-s build test:lint test:unit test:cli",
|
|
39
|
-
"test:types": "tsc --noEmit",
|
|
40
|
-
"test:lint": "eslint -c .eslintrc.js --ext .js,.ts .",
|
|
41
|
-
"test:unit": "ava",
|
|
42
|
-
"test:cli": "mocha",
|
|
43
|
-
"test:cli:update": "CHAI_JEST_SNAPSHOT_UPDATE_ALL=true pnpm test:cli",
|
|
44
|
-
"run-example": "node ./scripts/run-example.js",
|
|
45
|
-
"coverage": "TS_NODE_FILES=true nyc ava",
|
|
46
|
-
"clean": "rimraf build",
|
|
47
|
-
"build": "tsc -p tsconfig.build.json",
|
|
48
|
-
"prepublishOnly": "npm run clean && npm run build",
|
|
49
|
-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
50
|
-
"prepare": "husky install",
|
|
51
|
-
"docs:dev": "NODE_ENV=development vuepress dev docs",
|
|
52
|
-
"docs:build": "NODE_ENV=production vuepress build docs",
|
|
53
|
-
"release": "bumpp && npm publish",
|
|
54
|
-
"release:beta": "bumpp --preid beta --no-push && npm publish --tag beta"
|
|
55
|
-
},
|
|
56
36
|
"oclif": {
|
|
57
37
|
"bin": "surgio",
|
|
58
38
|
"dirname": "surgio",
|
|
@@ -164,6 +144,8 @@
|
|
|
164
144
|
"chai-jest-snapshot": "^2.0.0",
|
|
165
145
|
"conventional-changelog-cli": "^2.2.2",
|
|
166
146
|
"eslint-config-prettier": "^8.10.0",
|
|
147
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
148
|
+
"eslint-plugin-import": "^2.29.1",
|
|
167
149
|
"eslint-plugin-prettier": "^4.2.1",
|
|
168
150
|
"husky": "^8.0.3",
|
|
169
151
|
"ini": "^3.0.1",
|
|
@@ -183,7 +165,7 @@
|
|
|
183
165
|
"typescript": "^5.3.3",
|
|
184
166
|
"vue": "^3.4.21",
|
|
185
167
|
"vuepress": "2.0.0-rc.9",
|
|
186
|
-
"vuepress-plugin-umami-analytics": "
|
|
168
|
+
"vuepress-plugin-umami-analytics": "1.8.1"
|
|
187
169
|
},
|
|
188
170
|
"resolutions": {
|
|
189
171
|
"@vuepress/client": "2.0.0-rc.9",
|
|
@@ -217,7 +199,8 @@
|
|
|
217
199
|
]
|
|
218
200
|
},
|
|
219
201
|
"engines": {
|
|
220
|
-
"node": ">=18.0.0"
|
|
202
|
+
"node": ">=18.0.0",
|
|
203
|
+
"pnpm": ">=9.0.0"
|
|
221
204
|
},
|
|
222
205
|
"lint-staged": {
|
|
223
206
|
"*.js": "eslint",
|
|
@@ -235,5 +218,23 @@
|
|
|
235
218
|
"quantumult",
|
|
236
219
|
"clash",
|
|
237
220
|
"shadowrocket"
|
|
238
|
-
]
|
|
239
|
-
|
|
221
|
+
],
|
|
222
|
+
"scripts": {
|
|
223
|
+
"dev": "npm run build -- --watch",
|
|
224
|
+
"test": "run-s build test:lint test:unit test:cli",
|
|
225
|
+
"test:types": "tsc --noEmit",
|
|
226
|
+
"test:lint": "eslint -c .eslintrc.js --ext .js,.ts .",
|
|
227
|
+
"test:unit": "ava",
|
|
228
|
+
"test:cli": "mocha",
|
|
229
|
+
"test:cli:update": "CHAI_JEST_SNAPSHOT_UPDATE_ALL=true pnpm test:cli",
|
|
230
|
+
"run-example": "node ./scripts/run-example.js",
|
|
231
|
+
"coverage": "TS_NODE_FILES=true nyc ava",
|
|
232
|
+
"clean": "rimraf build",
|
|
233
|
+
"build": "tsc -p tsconfig.build.json",
|
|
234
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
235
|
+
"docs:dev": "NODE_ENV=development vuepress dev docs",
|
|
236
|
+
"docs:build": "NODE_ENV=production vuepress build docs",
|
|
237
|
+
"release": "bumpp && npm publish",
|
|
238
|
+
"release:beta": "bumpp --preid beta --no-push && npm publish --tag beta"
|
|
239
|
+
}
|
|
240
|
+
}
|