surgio 2.10.2 → 2.13.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/CHANGELOG.md +83 -50
- package/build/command/clean-cache.js +2 -2
- package/build/{utils → constant}/constant.d.ts +0 -8
- package/build/constant/constant.js +70 -0
- package/build/constant/env.d.ts +8 -0
- package/build/constant/env.js +12 -0
- package/build/constant/error.d.ts +1 -0
- package/build/constant/error.js +5 -0
- package/build/constant/index.d.ts +3 -0
- package/build/constant/index.js +16 -0
- package/build/generator/artifact.js +3 -3
- package/build/generator/template.js +2 -2
- package/build/index.js +7 -3
- package/build/misc/flag_cn.d.ts +1 -0
- package/build/misc/flag_cn.js +3 -2
- package/build/provider/BlackSSLProvider.js +2 -2
- package/build/provider/ClashProvider.js +21 -48
- package/build/provider/CustomProvider.js +2 -2
- package/build/provider/Provider.d.ts +4 -0
- package/build/provider/Provider.js +33 -2
- package/build/provider/ShadowsocksJsonSubscribeProvider.js +2 -2
- package/build/provider/ShadowsocksSubscribeProvider.js +3 -19
- package/build/provider/ShadowsocksrSubscribeProvider.js +3 -18
- package/build/provider/SsdProvider.js +3 -19
- package/build/provider/TrojanProvider.d.ts +18 -0
- package/build/provider/TrojanProvider.js +78 -0
- package/build/provider/V2rayNSubscribeProvider.d.ts +3 -2
- package/build/provider/V2rayNSubscribeProvider.js +35 -18
- package/build/provider/index.js +4 -1
- package/build/types.d.ts +7 -1
- package/build/types.js +2 -1
- package/build/utils/cache.js +4 -4
- package/build/utils/config.js +3 -3
- package/build/utils/dns.js +5 -15
- package/build/utils/env-flag.d.ts +8 -0
- package/build/utils/env-flag.js +40 -0
- package/build/utils/http-client.js +5 -4
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +19 -6
- package/build/utils/loon.js +2 -2
- package/build/utils/relayable-url.js +2 -2
- package/build/utils/remote-snippet.js +5 -5
- package/build/utils/tmp-helper.js +2 -2
- package/build/utils/trojan.d.ts +2 -0
- package/build/utils/trojan.js +33 -0
- package/hygen-template/provider/new/index.js +3 -0
- package/package.json +6 -8
- package/build/utils/constant.js +0 -98
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
# [2.13.0](https://github.com/geekdada/surgio/compare/v2.12.0...v2.13.0) (2022-01-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* support surge vmess aead config ([628b999](https://github.com/geekdada/surgio/commit/628b99919b695c95d2d3e455ec955166155d3d33))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# [2.12.0](https://github.com/geekdada/surgio/compare/v2.11.0...v2.12.0) (2022-01-09)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* support new clash config format for vmess ([a3502bb](https://github.com/geekdada/surgio/commit/a3502bb6be259a54684536b1d3ea9e1cde27a622))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [2.11.0](https://github.com/geekdada/surgio/compare/v2.10.3...v2.11.0) (2022-01-01)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* parse shadowsocks in V2rayN subscription ([e26fe15](https://github.com/geekdada/surgio/commit/e26fe154f4f9276c767270e28932210eb643222c)), closes [#167](https://github.com/geekdada/surgio/issues/167)
|
|
25
|
+
* support trojan subscription ([e241f4b](https://github.com/geekdada/surgio/commit/e241f4b1679006f90c20ec17b755de27bd6a4cf3))
|
|
26
|
+
* support trojan subscription ([75a90c4](https://github.com/geekdada/surgio/commit/75a90c4fb8867a870d3dc22d8ca9832e7ab1c2df))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [2.10.3](https://github.com/geekdada/surgio/compare/v2.10.2...v2.10.3) (2021-11-24)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
1
34
|
## [2.10.2](https://github.com/geekdada/surgio/compare/v2.10.1...v2.10.2) (2021-10-24)
|
|
2
35
|
|
|
3
36
|
|
|
@@ -82,8 +115,8 @@
|
|
|
82
115
|
|
|
83
116
|
### Features
|
|
84
117
|
|
|
85
|
-
* 调整了 dns 解析的参数 ([b7aa7eb](https://github.com/geekdada/surgio/commit/b7aa7ebf7b0bd71c85395fea0fc4c1295bbd84bc))
|
|
86
118
|
* 在生成 surge 的 ssr 订阅时强制校验 startPort ([879080b](https://github.com/geekdada/surgio/commit/879080b333d89aa7d37ebe6e646d78f71aa69af7))
|
|
119
|
+
* 调整了 dns 解析的参数 ([b7aa7eb](https://github.com/geekdada/surgio/commit/b7aa7ebf7b0bd71c85395fea0fc4c1295bbd84bc))
|
|
87
120
|
|
|
88
121
|
|
|
89
122
|
|
|
@@ -197,9 +230,9 @@
|
|
|
197
230
|
|
|
198
231
|
### Features
|
|
199
232
|
|
|
200
|
-
* 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
|
|
201
233
|
* 允许通过命令行开启远程片段缓存 ([128c9c5](https://github.com/geekdada/surgio/commit/128c9c5998dcc8db9d4c9472ce451ff40f4732ee))
|
|
202
234
|
* 支持自定义订阅请求转发的地址 ([3f4fb3b](https://github.com/geekdada/surgio/commit/3f4fb3b7450e3e63d89d26b4dfcba7dffd1e683e))
|
|
235
|
+
* 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
|
|
203
236
|
|
|
204
237
|
|
|
205
238
|
|
|
@@ -324,13 +357,13 @@
|
|
|
324
357
|
|
|
325
358
|
### Features
|
|
326
359
|
|
|
327
|
-
* 内置协议过滤器更名 ([6aa6531](https://github.com/geekdada/surgio/commit/6aa653174fd856c1ccc69ba10f5b995391ef9c82))
|
|
328
|
-
* 修改默认网络请求超时时间和重试次数 ([7753d20](https://github.com/geekdada/surgio/commit/7753d20611be1a4066747b3281d1ceb99a687ec1))
|
|
329
360
|
* add support for ssd subscription ([46e5d2d](https://github.com/geekdada/surgio/commit/46e5d2d129b9b5470471594c432e8b5e2fc012ca))
|
|
330
361
|
* filter 行为修改 ([9e0ddf7](https://github.com/geekdada/surgio/commit/9e0ddf7118931009951dc1f21943d3340256885d))
|
|
331
362
|
* surgeconfig 默认值修改 ([7b004bd](https://github.com/geekdada/surgio/commit/7b004bd1cac6c490bd0dbb0c086f33ff85ac194e))
|
|
332
363
|
* udp-relay 改为强制布尔值 ([86a5dfc](https://github.com/geekdada/surgio/commit/86a5dfcb2343bff5dbfafd6cefe2057b2141c66e))
|
|
333
364
|
* Vmess 配置的 udp 改为 udp-relay ([9460bc8](https://github.com/geekdada/surgio/commit/9460bc8c1713a96fc61e4db271e599046d467830))
|
|
365
|
+
* 修改默认网络请求超时时间和重试次数 ([7753d20](https://github.com/geekdada/surgio/commit/7753d20611be1a4066747b3281d1ceb99a687ec1))
|
|
366
|
+
* 内置协议过滤器更名 ([6aa6531](https://github.com/geekdada/surgio/commit/6aa653174fd856c1ccc69ba10f5b995391ef9c82))
|
|
334
367
|
|
|
335
368
|
|
|
336
369
|
### BREAKING CHANGES
|
|
@@ -349,8 +382,8 @@
|
|
|
349
382
|
|
|
350
383
|
### Bug Fixes
|
|
351
384
|
|
|
352
|
-
* 配置 boolean 进行严格类型检查 ([1a42306](https://github.com/geekdada/surgio/commit/1a42306e5387b52b4a7f976b53b352c556607512))
|
|
353
385
|
* **utils:v2ray:** lack of transport settings ([4491e60](https://github.com/geekdada/surgio/commit/4491e60cb5e0709056d93c82d314d23ec482745a)), closes [#91](https://github.com/geekdada/surgio/issues/91)
|
|
386
|
+
* 配置 boolean 进行严格类型检查 ([1a42306](https://github.com/geekdada/surgio/commit/1a42306e5387b52b4a7f976b53b352c556607512))
|
|
354
387
|
|
|
355
388
|
|
|
356
389
|
### Features
|
|
@@ -441,16 +474,16 @@
|
|
|
441
474
|
|
|
442
475
|
### Bug Fixes
|
|
443
476
|
|
|
444
|
-
* 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
|
|
445
477
|
* **command:new:** 生成 custom 类型 provider 报错 ([be83268](https://github.com/geekdada/surgio/commit/be832687b0cb1a5ceb96e6742eb451e9ed5e5903))
|
|
446
478
|
* SSR URI 中包含 ipv6 地址解析错误 ([1cd8436](https://github.com/geekdada/surgio/commit/1cd8436a6335a4f018fc96532f297502cec8ce3b))
|
|
479
|
+
* 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
|
|
447
480
|
|
|
448
481
|
|
|
449
482
|
### Features
|
|
450
483
|
|
|
451
|
-
* 生成规则前进行 eslint 检查 ([a769458](https://github.com/geekdada/surgio/commit/a769458225905b228ef8903da593ded2c42ab49d))
|
|
452
484
|
* 支持解析 ipv6 地址 ([b96489b](https://github.com/geekdada/surgio/commit/b96489b6f92daa9e87f3863fb80e97b4af225fa6))
|
|
453
485
|
* 支持转换 surge ip-cidr6 至 quantumult x ip6-cidr ([c823677](https://github.com/geekdada/surgio/commit/c82367707e21ecd6856801a0e0d1758e58338a03))
|
|
486
|
+
* 生成规则前进行 eslint 检查 ([a769458](https://github.com/geekdada/surgio/commit/a769458225905b228ef8903da593ded2c42ab49d))
|
|
454
487
|
|
|
455
488
|
|
|
456
489
|
|
|
@@ -464,11 +497,11 @@
|
|
|
464
497
|
|
|
465
498
|
### Features
|
|
466
499
|
|
|
467
|
-
*
|
|
468
|
-
* 更新内置默认 UA ([640ee2c](https://github.com/geekdada/surgio/commit/640ee2cddd392a97b61b9c5511335075bdb1b0ca))
|
|
500
|
+
* useProviders 和 discardProviders 增加严格模式 ([bcd9fe9](https://github.com/geekdada/surgio/commit/bcd9fe942b9814ae453f4f13103245f8bf32384c))
|
|
469
501
|
* 优化未设置 binPath 的错误文案 ([f6d3e89](https://github.com/geekdada/surgio/commit/f6d3e895e783788c5f8b8bcf1622220f411b3e9a))
|
|
470
502
|
* 支持从 Clash 订阅中读取 v2ray-plugin mux 信息 ([f06f279](https://github.com/geekdada/surgio/commit/f06f2793af92f2a68aca51e461cad2c6b9165f5d))
|
|
471
|
-
*
|
|
503
|
+
* 更新内置默认 UA ([640ee2c](https://github.com/geekdada/surgio/commit/640ee2cddd392a97b61b9c5511335075bdb1b0ca))
|
|
504
|
+
* 错误信息补充 ([ef4946c](https://github.com/geekdada/surgio/commit/ef4946cac0eb9897586875118399624dbe44d8d9))
|
|
472
505
|
|
|
473
506
|
|
|
474
507
|
|
|
@@ -495,8 +528,8 @@
|
|
|
495
528
|
|
|
496
529
|
### Bug Fixes
|
|
497
530
|
|
|
498
|
-
* 无法识别外部资源的 EOL ([bee0c12](https://github.com/geekdada/surgio/commit/bee0c1224781330c35a27cbfee4549d338de65d2))
|
|
499
531
|
* should not enable proxy on now.sh and heroku ([3713850](https://github.com/geekdada/surgio/commit/37138507c126d7b2da900c833fea2af0bf153f4d))
|
|
532
|
+
* 无法识别外部资源的 EOL ([bee0c12](https://github.com/geekdada/surgio/commit/bee0c1224781330c35a27cbfee4549d338de65d2))
|
|
500
533
|
|
|
501
534
|
|
|
502
535
|
### Features
|
|
@@ -528,8 +561,8 @@
|
|
|
528
561
|
|
|
529
562
|
### Features
|
|
530
563
|
|
|
531
|
-
* 支持定义全局 customParams ([a8a092f](https://github.com/geekdada/surgio/commit/a8a092fc74c5fbb7fedaa3a00dbffe2f3e9e9432))
|
|
532
564
|
* add template method getUrl ([d02df8f](https://github.com/geekdada/surgio/commit/d02df8f2dbac0722381832944e06a11a3b0f3b40))
|
|
565
|
+
* 支持定义全局 customParams ([a8a092f](https://github.com/geekdada/surgio/commit/a8a092fc74c5fbb7fedaa3a00dbffe2f3e9e9432))
|
|
533
566
|
|
|
534
567
|
|
|
535
568
|
|
|
@@ -548,8 +581,8 @@
|
|
|
548
581
|
### Features
|
|
549
582
|
|
|
550
583
|
* `v2rayn_subscribe` 支持强制覆盖 `skipCertVerify` 和 `udpRelay` ([3a326d4](https://github.com/geekdada/surgio/commit/3a326d463f47bba6a000d299eb1dee19d790e29c))
|
|
551
|
-
* 支持从 Surge 配置中解析转换 Quantumult X 的以下几种脚本 ([066060d](https://github.com/geekdada/surgio/commit/066060d3d26b6f0172c568897fc492a77ccfcfb9))
|
|
552
584
|
* add support for quantumultx tls1.3 ([007db56](https://github.com/geekdada/surgio/commit/007db568c2a9ac7685bd0a344fa5093c22429e81))
|
|
585
|
+
* 支持从 Surge 配置中解析转换 Quantumult X 的以下几种脚本 ([066060d](https://github.com/geekdada/surgio/commit/066060d3d26b6f0172c568897fc492a77ccfcfb9))
|
|
553
586
|
|
|
554
587
|
|
|
555
588
|
|
|
@@ -581,8 +614,8 @@
|
|
|
581
614
|
|
|
582
615
|
### Features
|
|
583
616
|
|
|
584
|
-
* 更新模板生成工具 ([fd8eed0](https://github.com/geekdada/surgio/commit/fd8eed0b0f527698ec203f347d7bbdae397ee897))
|
|
585
617
|
* add a relay service for subscriptions ([4b789a8](https://github.com/geekdada/surgio/commit/4b789a89f1cf68ce978d0fecd58daaf82f4a039a))
|
|
618
|
+
* 更新模板生成工具 ([fd8eed0](https://github.com/geekdada/surgio/commit/fd8eed0b0f527698ec203f347d7bbdae397ee897))
|
|
586
619
|
|
|
587
620
|
|
|
588
621
|
|
|
@@ -641,9 +674,9 @@
|
|
|
641
674
|
|
|
642
675
|
### Features
|
|
643
676
|
|
|
677
|
+
* 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
|
|
644
678
|
* 支持加入自定义 trojan 节点 ([40b6714](https://github.com/geekdada/surgio/commit/40b67143fbf1f5e59cf5c4b08ef4eb62238f4678))
|
|
645
679
|
* 支持检查模板方法中无效的 filter ([9c2690b](https://github.com/geekdada/surgio/commit/9c2690b31d9266833e45c892fdad4daca6ce947e))
|
|
646
|
-
* 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
|
|
647
680
|
|
|
648
681
|
|
|
649
682
|
|
|
@@ -707,12 +740,12 @@
|
|
|
707
740
|
|
|
708
741
|
### Features
|
|
709
742
|
|
|
743
|
+
* Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
|
|
710
744
|
* 为常用 Provider 类型增加订阅流量信息接口 ([ed68cab](https://github.com/geekdada/surgio/commit/ed68cab12a5417850229acbfa564a4436577e5cb))
|
|
711
745
|
* 修改 Artifact 初始化接口 ([4c3ac84](https://github.com/geekdada/surgio/commit/4c3ac847adae2bb492fa851e53b12213a6e379c7))
|
|
712
746
|
* 增加查询流量命令 ([a94eeab](https://github.com/geekdada/surgio/commit/a94eeab89b0a0c3432af2f9796d44e700084b93c))
|
|
713
747
|
* 支持从 SSR 订阅中读取剩余流量 ([fb2e886](https://github.com/geekdada/surgio/commit/fb2e886cac5428cdfac49bd6696a68e2494c2ea1))
|
|
714
748
|
* 支持在 Artifact 初始化时传入 Environment ([75ae51f](https://github.com/geekdada/surgio/commit/75ae51f3e9fafddade282d4348cbbcb9db774d36))
|
|
715
|
-
* Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
|
|
716
749
|
|
|
717
750
|
|
|
718
751
|
|
|
@@ -721,8 +754,8 @@
|
|
|
721
754
|
|
|
722
755
|
### Bug Fixes
|
|
723
756
|
|
|
724
|
-
* 某些情况下 v2ray 配置 port 为字符串 ([b8af4d7](https://github.com/geekdada/surgio/commit/b8af4d799d70d02c5b4361954f38625afd891973)), closes [#59](https://github.com/geekdada/surgio/issues/59)
|
|
725
757
|
* external provider 的 addresses 参数只应该写 IP ([f7006d6](https://github.com/geekdada/surgio/commit/f7006d676317db5eb0b6aac66440f9a76f7d8db4))
|
|
758
|
+
* 某些情况下 v2ray 配置 port 为字符串 ([b8af4d7](https://github.com/geekdada/surgio/commit/b8af4d799d70d02c5b4361954f38625afd891973)), closes [#59](https://github.com/geekdada/surgio/issues/59)
|
|
726
759
|
|
|
727
760
|
|
|
728
761
|
### Features
|
|
@@ -797,9 +830,9 @@
|
|
|
797
830
|
|
|
798
831
|
### Features
|
|
799
832
|
|
|
833
|
+
* useProviders, discardProviders ([e11cb75](https://github.com/geekdada/surgio/commit/e11cb75d3d58189e9dacc2c4f699e514ab1a33c1)), closes [#51](https://github.com/geekdada/surgio/issues/51)
|
|
800
834
|
* 支持 Clash 的 Provider 片段 ([5c42328](https://github.com/geekdada/surgio/commit/5c4232809e60514121c1579deaa8ce9dbd151323))
|
|
801
835
|
* 支持新的 Clash 规则配置方法 ([48b90e1](https://github.com/geekdada/surgio/commit/48b90e142dcd5c200ddd1b1e4cae8b6e97d918bb))
|
|
802
|
-
* useProviders, discardProviders ([e11cb75](https://github.com/geekdada/surgio/commit/e11cb75d3d58189e9dacc2c4f699e514ab1a33c1)), closes [#51](https://github.com/geekdada/surgio/issues/51)
|
|
803
836
|
|
|
804
837
|
|
|
805
838
|
|
|
@@ -817,18 +850,18 @@
|
|
|
817
850
|
|
|
818
851
|
### Bug Fixes
|
|
819
852
|
|
|
820
|
-
* 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
|
|
821
853
|
* broken test ([25fcde6](https://github.com/geekdada/surgio/commit/25fcde69365ca66dfcce3fe260a1c6e2d0bd57b3))
|
|
822
854
|
* LRU 缓存可能会被污染 ([929f7bd](https://github.com/geekdada/surgio/commit/929f7bd3a32adc40eb23ec782eba1ce2978569d8))
|
|
823
855
|
* Provider 组合后生成结果排序错乱 ([d051b28](https://github.com/geekdada/surgio/commit/d051b2851ff401038587baa88f0e5ddc134471bc))
|
|
856
|
+
* 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
|
|
824
857
|
|
|
825
858
|
|
|
826
859
|
### Features
|
|
827
860
|
|
|
861
|
+
* v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
|
|
828
862
|
* 域名解析失败后跳过 ([66f5af8](https://github.com/geekdada/surgio/commit/66f5af8d31416591a29e28ac8ae03d978fa50862))
|
|
829
863
|
* 支持从 Clash 订阅中读取 skipCertVerify ([c856731](https://github.com/geekdada/surgio/commit/c856731cec14246b1ced594627daa5c50a2959cd))
|
|
830
864
|
* 支持配置 Provider 缓存 ([16dc8fc](https://github.com/geekdada/surgio/commit/16dc8fce9911fee2cae2e8c12e8649d3ede44dfa))
|
|
831
|
-
* v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
|
|
832
865
|
|
|
833
866
|
|
|
834
867
|
|
|
@@ -851,9 +884,9 @@
|
|
|
851
884
|
|
|
852
885
|
### Features
|
|
853
886
|
|
|
887
|
+
* 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
|
|
854
888
|
* 更新 netflixFilter ([515cbe5](https://github.com/geekdada/surgio/commit/515cbe5a179f6a7a364dc4e0eba72f264fb82b57))
|
|
855
889
|
* 更新国旗数据库 ([18f22d2](https://github.com/geekdada/surgio/commit/18f22d213e90fc9f680323439cbe4082ea2b171b))
|
|
856
|
-
* 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
|
|
857
890
|
|
|
858
891
|
|
|
859
892
|
|
|
@@ -871,8 +904,8 @@
|
|
|
871
904
|
|
|
872
905
|
### Bug Fixes
|
|
873
906
|
|
|
874
|
-
* 在某些情况下 Clash 的策略组中没输出 url 和 interval ([3884014](https://github.com/geekdada/surgio/commit/3884014c2296a59de90ae5f5e4803a3609f7893d))
|
|
875
907
|
* broken test ([794be85](https://github.com/geekdada/surgio/commit/794be85268811ab665351ab255f368bc4a6d0754))
|
|
908
|
+
* 在某些情况下 Clash 的策略组中没输出 url 和 interval ([3884014](https://github.com/geekdada/surgio/commit/3884014c2296a59de90ae5f5e4803a3609f7893d))
|
|
876
909
|
|
|
877
910
|
|
|
878
911
|
|
|
@@ -989,9 +1022,9 @@
|
|
|
989
1022
|
|
|
990
1023
|
### Features
|
|
991
1024
|
|
|
992
|
-
* 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
|
|
993
1025
|
* 优化 dns 解析 ([345790e](https://github.com/geekdada/surgio/commit/345790eecd6b2f4745b91999004d921f41b259bc))
|
|
994
1026
|
* 在模板中输出 proxyTestUrl ([b95cd8b](https://github.com/geekdada/surgio/commit/b95cd8b157e902a920699618cf1e61d1f615fd31))
|
|
1027
|
+
* 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
|
|
995
1028
|
|
|
996
1029
|
|
|
997
1030
|
|
|
@@ -1000,16 +1033,16 @@
|
|
|
1000
1033
|
|
|
1001
1034
|
### Bug Fixes
|
|
1002
1035
|
|
|
1003
|
-
* 空文件不会返回 404 ([271c398](https://github.com/geekdada/surgio/commit/271c398df29e8e3da2f4f22d6aa2d78aa49f122c))
|
|
1004
1036
|
* 某些情况下 clash 配置没有输出 interval 和 url ([1978429](https://github.com/geekdada/surgio/commit/197842956a96fd35b91afd77cf358c1697ac7097))
|
|
1037
|
+
* 空文件不会返回 404 ([271c398](https://github.com/geekdada/surgio/commit/271c398df29e8e3da2f4f22d6aa2d78aa49f122c))
|
|
1005
1038
|
|
|
1006
1039
|
|
|
1007
1040
|
### Features
|
|
1008
1041
|
|
|
1042
|
+
* nodeFilter 也支持过滤排序 ([6dd7f66](https://github.com/geekdada/surgio/commit/6dd7f665d26ad427f026786d5add8c578084f816))
|
|
1009
1043
|
* 增加规则过滤关键词 ([128f648](https://github.com/geekdada/surgio/commit/128f64835ccde09b4b0dda54e4075dc0218fbc10))
|
|
1010
|
-
* 支持排序类型的过滤器 ([db69447](https://github.com/geekdada/surgio/commit/db694473b1b88e44811971fbc0cd8761d0fcf4e3))
|
|
1011
1044
|
* 支持在输出 external 时解析域名 ([1f78f44](https://github.com/geekdada/surgio/commit/1f78f44dde2949e384184d8fa59f566a45ed2d64))
|
|
1012
|
-
*
|
|
1045
|
+
* 支持排序类型的过滤器 ([db69447](https://github.com/geekdada/surgio/commit/db694473b1b88e44811971fbc0cd8761d0fcf4e3))
|
|
1013
1046
|
|
|
1014
1047
|
|
|
1015
1048
|
|
|
@@ -1027,8 +1060,8 @@
|
|
|
1027
1060
|
|
|
1028
1061
|
### Features
|
|
1029
1062
|
|
|
1030
|
-
* 优化远程片段获取的并发请求 ([7552fa0](https://github.com/geekdada/surgio/commit/7552fa05b073871aa6a50472f2386bfa4fa9421d))
|
|
1031
1063
|
* Provider 处理改为并发 ([8bf2738](https://github.com/geekdada/surgio/commit/8bf2738f14f9d30b9bfbf6999fbbdf91a5993469))
|
|
1064
|
+
* 优化远程片段获取的并发请求 ([7552fa0](https://github.com/geekdada/surgio/commit/7552fa05b073871aa6a50472f2386bfa4fa9421d))
|
|
1032
1065
|
|
|
1033
1066
|
|
|
1034
1067
|
|
|
@@ -1046,8 +1079,8 @@
|
|
|
1046
1079
|
|
|
1047
1080
|
### Bug Fixes
|
|
1048
1081
|
|
|
1049
|
-
* 由于 mellow 对 shadowsocks 支持有限,忽略该类型节点 ([8ae0561](https://github.com/geekdada/surgio/commit/8ae056194b938014eee4c0bebfb38ecf3de7cb10))
|
|
1050
1082
|
* Close [#35](https://github.com/geekdada/surgio/issues/35) ([491b655](https://github.com/geekdada/surgio/commit/491b655bc8061ed120ab119bd5e4ac57859ea095))
|
|
1083
|
+
* 由于 mellow 对 shadowsocks 支持有限,忽略该类型节点 ([8ae0561](https://github.com/geekdada/surgio/commit/8ae056194b938014eee4c0bebfb38ecf3de7cb10))
|
|
1051
1084
|
|
|
1052
1085
|
|
|
1053
1086
|
### Features
|
|
@@ -1056,8 +1089,8 @@
|
|
|
1056
1089
|
* 增加 mellow 规则处理方法 ([b646199](https://github.com/geekdada/surgio/commit/b646199507d7558bd00daa89f4877501391e2605))
|
|
1057
1090
|
* 支持 Clash 的 'fallback-auto', 'load-balance' 策略 ([18f106f](https://github.com/geekdada/surgio/commit/18f106fee8c94c01bbf8a4a34fadfcd9557fdd2b)), closes [#34](https://github.com/geekdada/surgio/issues/34)
|
|
1058
1091
|
* 支持单独定义某个 artifact 的输出目录 ([bef00c7](https://github.com/geekdada/surgio/commit/bef00c7d9894476c695229a6e96f1d3f47fd91b1))
|
|
1059
|
-
* 支持导出 Mellow 节点 ([9a72ca2](https://github.com/geekdada/surgio/commit/9a72ca2ac7b9b59ee3c1b61180fd8fe915330ad8))
|
|
1060
1092
|
* 支持在 surgio.conf.js 中定义全局 customFilters ([1701b85](https://github.com/geekdada/surgio/commit/1701b85d68e487b52fb529243d8826ee4b5a99a8))
|
|
1093
|
+
* 支持导出 Mellow 节点 ([9a72ca2](https://github.com/geekdada/surgio/commit/9a72ca2ac7b9b59ee3c1b61180fd8fe915330ad8))
|
|
1061
1094
|
|
|
1062
1095
|
|
|
1063
1096
|
|
|
@@ -1094,8 +1127,8 @@
|
|
|
1094
1127
|
|
|
1095
1128
|
### Features
|
|
1096
1129
|
|
|
1097
|
-
* 面板增加添加 Clash 的按钮 ([b66e5f3](https://github.com/geekdada/surgio/commit/b66e5f31dae975ccac83742666ea7385a6e023e0))
|
|
1098
1130
|
* check command ([2db635f](https://github.com/geekdada/surgio/commit/2db635ff91cd786daa6852abdd82896ab213f3ab))
|
|
1131
|
+
* 面板增加添加 Clash 的按钮 ([b66e5f3](https://github.com/geekdada/surgio/commit/b66e5f31dae975ccac83742666ea7385a6e023e0))
|
|
1099
1132
|
|
|
1100
1133
|
|
|
1101
1134
|
|
|
@@ -1104,8 +1137,8 @@
|
|
|
1104
1137
|
|
|
1105
1138
|
### Features
|
|
1106
1139
|
|
|
1107
|
-
* youtubePremiumFilter 增加香港 ([821bf3c](https://github.com/geekdada/surgio/commit/821bf3c653767490bf093e0980be091b28f3501d))
|
|
1108
1140
|
* youtubePremiumFilter 增加新加坡 ([7b32873](https://github.com/geekdada/surgio/commit/7b32873ff906156208ae7a03ea8002534a794c57))
|
|
1141
|
+
* youtubePremiumFilter 增加香港 ([821bf3c](https://github.com/geekdada/surgio/commit/821bf3c653767490bf093e0980be091b28f3501d))
|
|
1109
1142
|
|
|
1110
1143
|
|
|
1111
1144
|
|
|
@@ -1141,10 +1174,10 @@
|
|
|
1141
1174
|
|
|
1142
1175
|
### Features
|
|
1143
1176
|
|
|
1144
|
-
*
|
|
1177
|
+
* udp-relay 的值改为布尔类型,兼容字符串类型 ([f3eaaed](https://github.com/geekdada/surgio/commit/f3eaaed03727de525e12a454a8a966fd923f8d89))
|
|
1145
1178
|
* 仅支持读取 ws 和 tcp 类型的 vmess 节点 ([de5bb35](https://github.com/geekdada/surgio/commit/de5bb35fcc3b4b4e6bb1bb12a6cc6f53bd6de2c8))
|
|
1146
1179
|
* 新增 getQuantumultXNodes ([d284d04](https://github.com/geekdada/surgio/commit/d284d0415e9524dffebd73d6085d1e11ceef3621))
|
|
1147
|
-
*
|
|
1180
|
+
* 节点增加 tfo 参数 ([a820b89](https://github.com/geekdada/surgio/commit/a820b89590ac3379ccf109539000783b0d7b803a))
|
|
1148
1181
|
|
|
1149
1182
|
|
|
1150
1183
|
|
|
@@ -1162,18 +1195,18 @@
|
|
|
1162
1195
|
|
|
1163
1196
|
### Bug Fixes
|
|
1164
1197
|
|
|
1165
|
-
* 加国旗正确识别中转节点了 ([3751dbf](https://github.com/geekdada/surgio/commit/3751dbf0f7f0d8619cfa28b2ec2cc8c24c4494a7))
|
|
1166
1198
|
* protoparam 和 obfsparam 中不能有空格 ([6cdb978](https://github.com/geekdada/surgio/commit/6cdb97880913a594115a59d49bfebcf90c555f7f))
|
|
1199
|
+
* 加国旗正确识别中转节点了 ([3751dbf](https://github.com/geekdada/surgio/commit/3751dbf0f7f0d8619cfa28b2ec2cc8c24c4494a7))
|
|
1167
1200
|
|
|
1168
1201
|
|
|
1169
1202
|
### Features
|
|
1170
1203
|
|
|
1204
|
+
* proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
|
|
1171
1205
|
* 不合法 yaml 文件识别 ([1654534](https://github.com/geekdada/surgio/commit/16545347613026a57bac46eb286e52f894384c11))
|
|
1172
|
-
* 兼容v2rayn 订阅格式 ([8ba4625](https://github.com/geekdada/surgio/commit/8ba4625955bfb068028303a56148ac20e109e6e3))
|
|
1173
1206
|
* 允许用户覆盖 clash 订阅的 udp 转发支持 ([bb58c50](https://github.com/geekdada/surgio/commit/bb58c50aa5334ea9ce1ee4c323aa531dcbb32e79))
|
|
1207
|
+
* 兼容v2rayn 订阅格式 ([8ba4625](https://github.com/geekdada/surgio/commit/8ba4625955bfb068028303a56148ac20e109e6e3))
|
|
1174
1208
|
* 增加 netflixFilter 规则 ([5cc52f1](https://github.com/geekdada/surgio/commit/5cc52f1c237b9c4fcf2dee56ea3c0caaf82695ad))
|
|
1175
1209
|
* 支持读取 Clash 订阅 ([45ef59f](https://github.com/geekdada/surgio/commit/45ef59f359e21e37f5dac242a33888c74ec1afbc))
|
|
1176
|
-
* proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
|
|
1177
1210
|
|
|
1178
1211
|
|
|
1179
1212
|
|
|
@@ -1182,10 +1215,10 @@
|
|
|
1182
1215
|
|
|
1183
1216
|
### Features
|
|
1184
1217
|
|
|
1185
|
-
* 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
|
|
1186
1218
|
* better error message ([26fcaa3](https://github.com/geekdada/surgio/commit/26fcaa3310046fbd886cff2370a8bf31be96dcca))
|
|
1187
1219
|
* gateway request log ([891168b](https://github.com/geekdada/surgio/commit/891168b6a702a0440b5d0475a25d11345d594f52))
|
|
1188
1220
|
* quick editing from list-artifact ([2d1d605](https://github.com/geekdada/surgio/commit/2d1d605fe5dd36332a8f04476d397cb7a14b6684))
|
|
1221
|
+
* 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
|
|
1189
1222
|
|
|
1190
1223
|
|
|
1191
1224
|
|
|
@@ -1249,10 +1282,10 @@
|
|
|
1249
1282
|
|
|
1250
1283
|
### Features
|
|
1251
1284
|
|
|
1252
|
-
* 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
|
|
1253
1285
|
* getNodeNames 和 getClashNodeNames 不再过滤 nodeType ([6571511](https://github.com/geekdada/surgio/commit/6571511f3d30aa3a283a69b81afb9aa548031b18))
|
|
1254
1286
|
* schema validation for config ([9f11254](https://github.com/geekdada/surgio/commit/9f11254d2bc7107e2299e1146553b03da1e9849f))
|
|
1255
1287
|
* schema validation for provider ([d738e0f](https://github.com/geekdada/surgio/commit/d738e0f999c91f577deb14793889210620757f36))
|
|
1288
|
+
* 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
|
|
1256
1289
|
|
|
1257
1290
|
|
|
1258
1291
|
|
|
@@ -1369,8 +1402,8 @@
|
|
|
1369
1402
|
|
|
1370
1403
|
### Features
|
|
1371
1404
|
|
|
1372
|
-
* 增加错误文案方便调试 ([ff28793](https://github.com/geekdada/surgio/commit/ff287933e17cb0f7d8f9b7d4a454124420e7610c))
|
|
1373
1405
|
* 增加了 Flag 识别字段 ([86c1489](https://github.com/geekdada/surgio/commit/86c14898001ab54b6a5387bf533c34d5917b4cbb))
|
|
1406
|
+
* 增加错误文案方便调试 ([ff28793](https://github.com/geekdada/surgio/commit/ff287933e17cb0f7d8f9b7d4a454124420e7610c))
|
|
1374
1407
|
|
|
1375
1408
|
|
|
1376
1409
|
|
|
@@ -1379,8 +1412,8 @@
|
|
|
1379
1412
|
|
|
1380
1413
|
### Bug Fixes
|
|
1381
1414
|
|
|
1382
|
-
* 不需要 sort ([51f560f](https://github.com/geekdada/surgio/commit/51f560fc86b24c1b4319a83637c90e5449023520))
|
|
1383
1415
|
* SSR URI 识别问题 ([46184fb](https://github.com/geekdada/surgio/commit/46184fbfdcd1583658db157123902862881413f5))
|
|
1416
|
+
* 不需要 sort ([51f560f](https://github.com/geekdada/surgio/commit/51f560fc86b24c1b4319a83637c90e5449023520))
|
|
1384
1417
|
|
|
1385
1418
|
|
|
1386
1419
|
|
|
@@ -1389,9 +1422,9 @@
|
|
|
1389
1422
|
|
|
1390
1423
|
### Bug Fixes
|
|
1391
1424
|
|
|
1425
|
+
* clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
|
|
1392
1426
|
* 不手动指定不使用代理 ([d89198a](https://github.com/geekdada/surgio/commit/d89198a23cff4fe345f5597ab507b8680ac34b54))
|
|
1393
1427
|
* 文件名在 win 上取值错误 ([310518b](https://github.com/geekdada/surgio/commit/310518bd7cc37c2110dbcb50bdb1d5571bdb68cc))
|
|
1394
|
-
* clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
|
|
1395
1428
|
|
|
1396
1429
|
|
|
1397
1430
|
|
|
@@ -1409,8 +1442,8 @@
|
|
|
1409
1442
|
|
|
1410
1443
|
### Features
|
|
1411
1444
|
|
|
1412
|
-
* 远程片段支持读取原始内容 ([a1f9e0f](https://github.com/geekdada/surgio/commit/a1f9e0ff7f55b33f98934619a2e90c33ba0c8d20))
|
|
1413
1445
|
* add support for clashr ([43c4862](https://github.com/geekdada/surgio/commit/43c486277bdff42999f18a71a4627585461e4762))
|
|
1446
|
+
* 远程片段支持读取原始内容 ([a1f9e0f](https://github.com/geekdada/surgio/commit/a1f9e0ff7f55b33f98934619a2e90c33ba0c8d20))
|
|
1414
1447
|
|
|
1415
1448
|
|
|
1416
1449
|
|
|
@@ -1424,10 +1457,10 @@
|
|
|
1424
1457
|
|
|
1425
1458
|
### Features
|
|
1426
1459
|
|
|
1427
|
-
* 节点名补充国旗 Emoji ([dc1f34e](https://github.com/geekdada/surgio/commit/dc1f34e3616e924acc2773dc7024a5e968981d53))
|
|
1428
|
-
* 增加国别判断字段 ([ce6828c](https://github.com/geekdada/surgio/commit/ce6828cdf80bd433d55ad788fac1529ef9b32fc6))
|
|
1429
1460
|
* add error message ([69b6bff](https://github.com/geekdada/surgio/commit/69b6bfffdca29c1d01cc77cf63730a12f7390822))
|
|
1430
1461
|
* custom filters ([d5ee8bc](https://github.com/geekdada/surgio/commit/d5ee8bc6b0066eb0d30699191fdcae6262bd4f1a))
|
|
1462
|
+
* 增加国别判断字段 ([ce6828c](https://github.com/geekdada/surgio/commit/ce6828cdf80bd433d55ad788fac1529ef9b32fc6))
|
|
1463
|
+
* 节点名补充国旗 Emoji ([dc1f34e](https://github.com/geekdada/surgio/commit/dc1f34e3616e924acc2773dc7024a5e968981d53))
|
|
1431
1464
|
|
|
1432
1465
|
|
|
1433
1466
|
|
|
@@ -1530,12 +1563,12 @@
|
|
|
1530
1563
|
|
|
1531
1564
|
### Features
|
|
1532
1565
|
|
|
1533
|
-
* 生成 quan 订阅 scheme ([afe0a21](https://github.com/geekdada/surgio/commit/afe0a2120b0eeb048deab09c24964d7bd3e14a60))
|
|
1534
|
-
* 生成 v2rayn scheme ([981e6d7](https://github.com/geekdada/surgio/commit/981e6d77517771da9510cc79c7e0cd8c7276d119))
|
|
1535
|
-
* 支持导出 Quantumult 的 HTTPS, Shadowsocksr 节点 ([dd728e0](https://github.com/geekdada/surgio/commit/dd728e02345669751b31227327abb20034dc5554))
|
|
1536
1566
|
* add shadowsocks subscribe support ([e993d1b](https://github.com/geekdada/surgio/commit/e993d1bfa1ab4a50464ca37f647e22cd7c0bee68))
|
|
1537
1567
|
* add v2rayn subscribe support ([067ad43](https://github.com/geekdada/surgio/commit/067ad4318b456f5ceaf47ad78b79d206544da72e))
|
|
1538
1568
|
* clash 输出 vmess ([05cc557](https://github.com/geekdada/surgio/commit/05cc5570762d34a3465e71d14fbf78e8a30a1f34))
|
|
1569
|
+
* 支持导出 Quantumult 的 HTTPS, Shadowsocksr 节点 ([dd728e0](https://github.com/geekdada/surgio/commit/dd728e02345669751b31227327abb20034dc5554))
|
|
1570
|
+
* 生成 quan 订阅 scheme ([afe0a21](https://github.com/geekdada/surgio/commit/afe0a2120b0eeb048deab09c24964d7bd3e14a60))
|
|
1571
|
+
* 生成 v2rayn scheme ([981e6d7](https://github.com/geekdada/surgio/commit/981e6d77517771da9510cc79c7e0cd8c7276d119))
|
|
1539
1572
|
|
|
1540
1573
|
|
|
1541
1574
|
|
|
@@ -1544,8 +1577,8 @@
|
|
|
1544
1577
|
|
|
1545
1578
|
### Features
|
|
1546
1579
|
|
|
1547
|
-
* 初始化配置时使用 defaultsDeep ([ab8f695](https://github.com/geekdada/surgio/commit/ab8f695a79bbf92248a193805032c81fc2e31434))
|
|
1548
1580
|
* remote rule set ([a820cdb](https://github.com/geekdada/surgio/commit/a820cdb192daeb1f0a321e75ed447290b4e4207a)), closes [#5](https://github.com/geekdada/surgio/issues/5)
|
|
1581
|
+
* 初始化配置时使用 defaultsDeep ([ab8f695](https://github.com/geekdada/surgio/commit/ab8f695a79bbf92248a193805032c81fc2e31434))
|
|
1549
1582
|
|
|
1550
1583
|
|
|
1551
1584
|
|
|
@@ -1560,8 +1593,8 @@
|
|
|
1560
1593
|
|
|
1561
1594
|
### Features
|
|
1562
1595
|
|
|
1563
|
-
* 模板 base64 filter ([3d45a23](https://github.com/geekdada/surgio/commit/3d45a23102cf642495e0920c91f2ed94de27a4e2))
|
|
1564
1596
|
* add cli update support ([2f2d340](https://github.com/geekdada/surgio/commit/2f2d340b0c4f65a1a601f62c2986c5384af6fd76))
|
|
1597
|
+
* 模板 base64 filter ([3d45a23](https://github.com/geekdada/surgio/commit/3d45a23102cf642495e0920c91f2ed94de27a4e2))
|
|
1565
1598
|
|
|
1566
1599
|
|
|
1567
1600
|
|
|
@@ -1575,8 +1608,8 @@
|
|
|
1575
1608
|
|
|
1576
1609
|
### Features
|
|
1577
1610
|
|
|
1578
|
-
* 属性判空 ([13eb455](https://github.com/geekdada/surgio/commit/13eb455d3258f0067a244117a50688817bdb1433))
|
|
1579
1611
|
* 在模板中暴露 nodeList 变量 ([c2eeb29](https://github.com/geekdada/surgio/commit/c2eeb295ff2ca7dc0407a2b67f8d1332aa26be60))
|
|
1612
|
+
* 属性判空 ([13eb455](https://github.com/geekdada/surgio/commit/13eb455d3258f0067a244117a50688817bdb1433))
|
|
1580
1613
|
* 支持从 gui-config.json 中解析混淆配置 ([bc135a7](https://github.com/geekdada/surgio/commit/bc135a78c8eb0572ebc67b17ab9d7c6a9b4acf22))
|
|
1581
1614
|
|
|
1582
1615
|
|
|
@@ -8,7 +8,7 @@ const os_1 = __importDefault(require("os"));
|
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
10
10
|
const logger_1 = require("@surgio/logger");
|
|
11
|
-
const constant_1 = require("../
|
|
11
|
+
const constant_1 = require("../constant");
|
|
12
12
|
const error_helper_1 = require("../utils/error-helper");
|
|
13
13
|
class CleanCacheCommand extends common_bin_1.default {
|
|
14
14
|
constructor(rawArgv) {
|
|
@@ -32,4 +32,4 @@ class CleanCacheCommand extends common_bin_1.default {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
module.exports = CleanCacheCommand;
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xlYW4tY2FjaGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvY29tbWFuZC9jbGVhbi1jYWNoZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsdUJBQXVCO0FBQ3ZCLDREQUFpQztBQUNqQyw0Q0FBb0I7QUFDcEIsZ0RBQXdCO0FBQ3hCLHdEQUEwQjtBQUMxQiwyQ0FBd0M7QUFFeEMsMENBQThDO0FBQzlDLHdEQUFxRDtBQUVyRCxNQUFNLGlCQUFrQixTQUFRLG9CQUFPO0lBQ3JDLFlBQVksT0FBa0I7UUFDNUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ2YsSUFBSSxDQUFDLEtBQUssR0FBRywwQkFBMEIsQ0FBQztJQUMxQyxDQUFDO0lBRUQsdUJBQXVCO0lBQ3ZCLElBQVcsV0FBVztRQUNwQixPQUFPLE1BQU0sQ0FBQztJQUNoQixDQUFDO0lBRU0sS0FBSyxDQUFDLEdBQUc7UUFDZCxNQUFNLE1BQU0sR0FBRyxjQUFJLENBQUMsSUFBSSxDQUFDLFlBQUUsQ0FBQyxNQUFNLEVBQUUsRUFBRSwwQkFBZSxDQUFDLENBQUM7UUFFdkQsSUFBSSxrQkFBRSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsRUFBRTtZQUN6QixNQUFNLGtCQUFFLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1NBQ3pCO1FBRUQsZUFBTSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN0QixDQUFDO0lBRUQsdUJBQXVCO0lBQ2hCLFlBQVksQ0FBQyxHQUFHO1FBQ3JCLDJCQUFZLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxHQUFHLENBQUMsQ0FBQztJQUMvQixDQUFDO0NBQ0Y7QUFFRCxpQkFBUyxpQkFBaUIsQ0FBQyJ9
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export declare const NETWORK_TIMEOUT: number;
|
|
2
|
-
export declare const NETWORK_RESOLVE_TIMEOUT: number;
|
|
3
|
-
export declare const NETWORK_CONCURRENCY: number;
|
|
4
|
-
export declare const NETWORK_RETRY: number;
|
|
5
|
-
export declare const NETWORK_CLASH_UA: string;
|
|
6
1
|
export declare const NETWORK_SURGIO_UA = "surgio";
|
|
7
2
|
export declare const OBFS_UA = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1";
|
|
8
3
|
export declare const PROXY_TEST_URL = "http://cp.cloudflare.com/generate_204";
|
|
@@ -11,8 +6,6 @@ export declare const CLASH_SUPPORTED_RULE: ReadonlyArray<string>;
|
|
|
11
6
|
export declare const QUANTUMULT_X_SUPPORTED_RULE: ReadonlyArray<string>;
|
|
12
7
|
export declare const LOON_SUPPORTED_RULE: ReadonlyArray<string>;
|
|
13
8
|
export declare const MELLOW_UNSUPPORTED_RULE: ReadonlyArray<string>;
|
|
14
|
-
export declare const REMOTE_SNIPPET_CACHE_MAXAGE: number;
|
|
15
|
-
export declare const PROVIDER_CACHE_MAXAGE: number;
|
|
16
9
|
export declare const CATEGORIES: {
|
|
17
10
|
SNIPPET: string;
|
|
18
11
|
SURGE: string;
|
|
@@ -24,5 +17,4 @@ export declare const CATEGORIES: {
|
|
|
24
17
|
LOON: string;
|
|
25
18
|
};
|
|
26
19
|
export declare const RELAY_SERVICE = "https://surgio-cors.herokuapp.com/";
|
|
27
|
-
export declare const ERR_INVALID_FILTER = "\u4F20\u5165\u7684\u8FC7\u6EE4\u5668\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u8BED\u6CD5\u548C\u53D8\u91CF\u540D\u662F\u5426\u6B63\u786E";
|
|
28
20
|
export declare const TMP_FOLDER_NAME = "surgio-config";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// istanbul ignore file
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TMP_FOLDER_NAME = exports.RELAY_SERVICE = exports.CATEGORIES = exports.MELLOW_UNSUPPORTED_RULE = exports.LOON_SUPPORTED_RULE = exports.QUANTUMULT_X_SUPPORTED_RULE = exports.CLASH_SUPPORTED_RULE = exports.PROXY_TEST_INTERVAL = exports.PROXY_TEST_URL = exports.OBFS_UA = exports.NETWORK_SURGIO_UA = void 0;
|
|
5
|
+
exports.NETWORK_SURGIO_UA = 'surgio';
|
|
6
|
+
exports.OBFS_UA = 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1';
|
|
7
|
+
exports.PROXY_TEST_URL = 'http://cp.cloudflare.com/generate_204';
|
|
8
|
+
exports.PROXY_TEST_INTERVAL = 1200; // 1200s
|
|
9
|
+
exports.CLASH_SUPPORTED_RULE = [
|
|
10
|
+
'DOMAIN-SUFFIX',
|
|
11
|
+
'DOMAIN-KEYWORD',
|
|
12
|
+
'DOMAIN',
|
|
13
|
+
'SRC-IP-CIDR',
|
|
14
|
+
'IP-CIDR',
|
|
15
|
+
'IP-CIDR6',
|
|
16
|
+
'GEOIP',
|
|
17
|
+
'DST-PORT',
|
|
18
|
+
'SRC-PORT',
|
|
19
|
+
'MATCH',
|
|
20
|
+
'FINAL',
|
|
21
|
+
'PROCESS-NAME',
|
|
22
|
+
];
|
|
23
|
+
exports.QUANTUMULT_X_SUPPORTED_RULE = [
|
|
24
|
+
'USER-AGENT',
|
|
25
|
+
'HOST',
|
|
26
|
+
'HOST-KEYWORD',
|
|
27
|
+
'HOST-SUFFIX',
|
|
28
|
+
'DOMAIN',
|
|
29
|
+
'DOMAIN-SUFFIX',
|
|
30
|
+
'DOMAIN-KEYWORD',
|
|
31
|
+
'IP-CIDR',
|
|
32
|
+
'IP-CIDR6',
|
|
33
|
+
'GEOIP',
|
|
34
|
+
'FINAL',
|
|
35
|
+
];
|
|
36
|
+
// @see https://www.notion.so/2-967c1a07462c43ab88906162bec475a4
|
|
37
|
+
exports.LOON_SUPPORTED_RULE = [
|
|
38
|
+
'DOMAIN-SUFFIX',
|
|
39
|
+
'DOMAIN',
|
|
40
|
+
'DOMAIN-KEYWORD',
|
|
41
|
+
'USER-AGENT',
|
|
42
|
+
'URL-REGEX',
|
|
43
|
+
'IP-CIDR',
|
|
44
|
+
'GEOIP',
|
|
45
|
+
'FINAL',
|
|
46
|
+
];
|
|
47
|
+
exports.MELLOW_UNSUPPORTED_RULE = [
|
|
48
|
+
'URL-REGEX',
|
|
49
|
+
'USER-AGENT',
|
|
50
|
+
'AND',
|
|
51
|
+
'OR',
|
|
52
|
+
'NOT',
|
|
53
|
+
'DEST-PORT',
|
|
54
|
+
'IN-PORT',
|
|
55
|
+
'SRC-IP',
|
|
56
|
+
'RULE-SET',
|
|
57
|
+
];
|
|
58
|
+
exports.CATEGORIES = {
|
|
59
|
+
SNIPPET: 'Snippet',
|
|
60
|
+
SURGE: 'Surge',
|
|
61
|
+
QUANTUMULT_X: 'Quantumult X',
|
|
62
|
+
QUANTUMULT_X_SERVER: 'Quantumult X Server',
|
|
63
|
+
QUANTUMULT_X_FILTER: 'Quantumult X Filter',
|
|
64
|
+
QUANTUMULT_X_REWRITE: 'Quantumult X Rewrite',
|
|
65
|
+
CLASH: 'Clash',
|
|
66
|
+
LOON: 'Loon',
|
|
67
|
+
};
|
|
68
|
+
exports.RELAY_SERVICE = 'https://surgio-cors.herokuapp.com/';
|
|
69
|
+
exports.TMP_FOLDER_NAME = 'surgio-config';
|
|
70
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvY29uc3RhbnQvY29uc3RhbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHVCQUF1Qjs7O0FBRVYsUUFBQSxpQkFBaUIsR0FBRyxRQUFRLENBQUM7QUFFN0IsUUFBQSxPQUFPLEdBQ2xCLDJJQUEySSxDQUFDO0FBRWpJLFFBQUEsY0FBYyxHQUFHLHVDQUF1QyxDQUFDO0FBRXpELFFBQUEsbUJBQW1CLEdBQUcsSUFBSSxDQUFDLENBQUMsUUFBUTtBQUVwQyxRQUFBLG9CQUFvQixHQUEwQjtJQUN6RCxlQUFlO0lBQ2YsZ0JBQWdCO0lBQ2hCLFFBQVE7SUFDUixhQUFhO0lBQ2IsU0FBUztJQUNULFVBQVU7SUFDVixPQUFPO0lBQ1AsVUFBVTtJQUNWLFVBQVU7SUFDVixPQUFPO0lBQ1AsT0FBTztJQUNQLGNBQWM7Q0FDZixDQUFDO0FBRVcsUUFBQSwyQkFBMkIsR0FBMEI7SUFDaEUsWUFBWTtJQUNaLE1BQU07SUFDTixjQUFjO0lBQ2QsYUFBYTtJQUNiLFFBQVE7SUFDUixlQUFlO0lBQ2YsZ0JBQWdCO0lBQ2hCLFNBQVM7SUFDVCxVQUFVO0lBQ1YsT0FBTztJQUNQLE9BQU87Q0FDUixDQUFDO0FBRUYsZ0VBQWdFO0FBQ25ELFFBQUEsbUJBQW1CLEdBQTBCO0lBQ3hELGVBQWU7SUFDZixRQUFRO0lBQ1IsZ0JBQWdCO0lBQ2hCLFlBQVk7SUFDWixXQUFXO0lBQ1gsU0FBUztJQUNULE9BQU87SUFDUCxPQUFPO0NBQ1IsQ0FBQztBQUVXLFFBQUEsdUJBQXVCLEdBQTBCO0lBQzVELFdBQVc7SUFDWCxZQUFZO0lBQ1osS0FBSztJQUNMLElBQUk7SUFDSixLQUFLO0lBQ0wsV0FBVztJQUNYLFNBQVM7SUFDVCxRQUFRO0lBQ1IsVUFBVTtDQUNYLENBQUM7QUFFVyxRQUFBLFVBQVUsR0FBRztJQUN4QixPQUFPLEVBQUUsU0FBUztJQUNsQixLQUFLLEVBQUUsT0FBTztJQUNkLFlBQVksRUFBRSxjQUFjO0lBQzVCLG1CQUFtQixFQUFFLHFCQUFxQjtJQUMxQyxtQkFBbUIsRUFBRSxxQkFBcUI7SUFDMUMsb0JBQW9CLEVBQUUsc0JBQXNCO0lBQzVDLEtBQUssRUFBRSxPQUFPO0lBQ2QsSUFBSSxFQUFFLE1BQU07Q0FDYixDQUFDO0FBRVcsUUFBQSxhQUFhLEdBQUcsb0NBQW9DLENBQUM7QUFFckQsUUFBQSxlQUFlLEdBQUcsZUFBZSxDQUFDIn0=
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ENV_NETWORK_TIMEOUT_KEY = "SURGIO_NETWORK_TIMEOUT";
|
|
2
|
+
export declare const ENV_NETWORK_RESOLVE_TIMEOUT = "SURGIO_NETWORK_RESOLVE_TIMEOUT";
|
|
3
|
+
export declare const ENV_SURGIO_NETWORK_CONCURRENCY = "SURGIO_NETWORK_CONCURRENCY";
|
|
4
|
+
export declare const ENV_SURGIO_NETWORK_RETRY = "SURGIO_NETWORK_RETRY";
|
|
5
|
+
export declare const ENV_SURGIO_NETWORK_CLASH_UA = "SURGIO_NETWORK_CLASH_UA";
|
|
6
|
+
export declare const ENV_SURGIO_REMOTE_SNIPPET_CACHE_MAXAGE = "SURGIO_REMOTE_SNIPPET_CACHE_MAXAGE";
|
|
7
|
+
export declare const ENV_SURGIO_PROVIDER_CACHE_MAXAGE = "SURGIO_PROVIDER_CACHE_MAXAGE";
|
|
8
|
+
export declare const ENV_SURGIO_DISABLE_SURGE_VMESS_AEAD = "SURGIO_DISABLE_SURGE_VMESS_AEAD";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ENV_SURGIO_DISABLE_SURGE_VMESS_AEAD = exports.ENV_SURGIO_PROVIDER_CACHE_MAXAGE = exports.ENV_SURGIO_REMOTE_SNIPPET_CACHE_MAXAGE = exports.ENV_SURGIO_NETWORK_CLASH_UA = exports.ENV_SURGIO_NETWORK_RETRY = exports.ENV_SURGIO_NETWORK_CONCURRENCY = exports.ENV_NETWORK_RESOLVE_TIMEOUT = exports.ENV_NETWORK_TIMEOUT_KEY = void 0;
|
|
4
|
+
exports.ENV_NETWORK_TIMEOUT_KEY = 'SURGIO_NETWORK_TIMEOUT';
|
|
5
|
+
exports.ENV_NETWORK_RESOLVE_TIMEOUT = 'SURGIO_NETWORK_RESOLVE_TIMEOUT';
|
|
6
|
+
exports.ENV_SURGIO_NETWORK_CONCURRENCY = 'SURGIO_NETWORK_CONCURRENCY';
|
|
7
|
+
exports.ENV_SURGIO_NETWORK_RETRY = 'SURGIO_NETWORK_RETRY';
|
|
8
|
+
exports.ENV_SURGIO_NETWORK_CLASH_UA = 'SURGIO_NETWORK_CLASH_UA';
|
|
9
|
+
exports.ENV_SURGIO_REMOTE_SNIPPET_CACHE_MAXAGE = 'SURGIO_REMOTE_SNIPPET_CACHE_MAXAGE';
|
|
10
|
+
exports.ENV_SURGIO_PROVIDER_CACHE_MAXAGE = 'SURGIO_PROVIDER_CACHE_MAXAGE';
|
|
11
|
+
exports.ENV_SURGIO_DISABLE_SURGE_VMESS_AEAD = 'SURGIO_DISABLE_SURGE_VMESS_AEAD';
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbGliL2NvbnN0YW50L2Vudi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLHVCQUF1QixHQUFHLHdCQUF3QixDQUFDO0FBRW5ELFFBQUEsMkJBQTJCLEdBQUcsZ0NBQWdDLENBQUM7QUFFL0QsUUFBQSw4QkFBOEIsR0FBRyw0QkFBNEIsQ0FBQztBQUU5RCxRQUFBLHdCQUF3QixHQUFHLHNCQUFzQixDQUFDO0FBRWxELFFBQUEsMkJBQTJCLEdBQUcseUJBQXlCLENBQUM7QUFFeEQsUUFBQSxzQ0FBc0MsR0FDakQsb0NBQW9DLENBQUM7QUFFMUIsUUFBQSxnQ0FBZ0MsR0FBRyw4QkFBOEIsQ0FBQztBQUVsRSxRQUFBLG1DQUFtQyxHQUM5QyxpQ0FBaUMsQ0FBQyJ9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ERR_INVALID_FILTER = "\u4F20\u5165\u7684\u8FC7\u6EE4\u5668\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u8BED\u6CD5\u548C\u53D8\u91CF\u540D\u662F\u5426\u6B63\u786E";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ERR_INVALID_FILTER = void 0;
|
|
4
|
+
exports.ERR_INVALID_FILTER = '传入的过滤器无效,请检查语法和变量名是否正确';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvY29uc3RhbnQvZXJyb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxrQkFBa0IsR0FDN0Isd0JBQXdCLENBQUMifQ==
|