surgio 2.10.3 → 2.13.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +88 -50
  2. package/build/command/clean-cache.js +2 -2
  3. package/build/constant/constant.d.ts +20 -0
  4. package/build/constant/constant.js +70 -0
  5. package/build/constant/env.d.ts +8 -0
  6. package/build/constant/env.js +12 -0
  7. package/build/constant/error.d.ts +1 -0
  8. package/build/constant/error.js +5 -0
  9. package/build/constant/index.d.ts +3 -0
  10. package/build/constant/index.js +16 -0
  11. package/build/generator/artifact.js +3 -3
  12. package/build/generator/template.js +2 -2
  13. package/build/index.js +7 -3
  14. package/build/provider/BlackSSLProvider.js +2 -2
  15. package/build/provider/ClashProvider.js +21 -48
  16. package/build/provider/CustomProvider.js +2 -2
  17. package/build/provider/Provider.d.ts +4 -0
  18. package/build/provider/Provider.js +33 -2
  19. package/build/provider/ShadowsocksJsonSubscribeProvider.js +2 -2
  20. package/build/provider/ShadowsocksSubscribeProvider.js +3 -19
  21. package/build/provider/ShadowsocksrSubscribeProvider.js +3 -18
  22. package/build/provider/SsdProvider.js +3 -19
  23. package/build/provider/TrojanProvider.d.ts +18 -0
  24. package/build/provider/TrojanProvider.js +78 -0
  25. package/build/provider/V2rayNSubscribeProvider.d.ts +3 -2
  26. package/build/provider/V2rayNSubscribeProvider.js +35 -18
  27. package/build/provider/index.js +4 -1
  28. package/build/types.d.ts +7 -1
  29. package/build/types.js +2 -1
  30. package/build/utils/cache.js +4 -4
  31. package/build/utils/config.js +3 -3
  32. package/build/utils/constant.d.ts +1 -28
  33. package/build/utils/constant.js +12 -95
  34. package/build/utils/dns.js +5 -15
  35. package/build/utils/env-flag.d.ts +8 -0
  36. package/build/utils/env-flag.js +40 -0
  37. package/build/utils/http-client.js +5 -4
  38. package/build/utils/index.d.ts +1 -0
  39. package/build/utils/index.js +19 -6
  40. package/build/utils/loon.js +2 -2
  41. package/build/utils/relayable-url.js +2 -2
  42. package/build/utils/remote-snippet.js +5 -5
  43. package/build/utils/tmp-helper.js +2 -2
  44. package/build/utils/trojan.d.ts +2 -0
  45. package/build/utils/trojan.js +33 -0
  46. package/hygen-template/provider/new/index.js +3 -0
  47. package/package.json +6 -8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,41 @@
1
+ ## [2.13.1](https://github.com/geekdada/surgio/compare/v2.13.0...v2.13.1) (2022-01-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * back compatibility with Gateway ([39b266e](https://github.com/geekdada/surgio/commit/39b266e264926c71fa4fc37d30bda9ffcf4fd45d))
7
+
8
+
9
+
10
+ # [2.13.0](https://github.com/geekdada/surgio/compare/v2.12.0...v2.13.0) (2022-01-10)
11
+
12
+
13
+ ### Features
14
+
15
+ * support surge vmess aead config ([628b999](https://github.com/geekdada/surgio/commit/628b99919b695c95d2d3e455ec955166155d3d33))
16
+
17
+
18
+
19
+ # [2.12.0](https://github.com/geekdada/surgio/compare/v2.11.0...v2.12.0) (2022-01-09)
20
+
21
+
22
+ ### Features
23
+
24
+ * support new clash config format for vmess ([a3502bb](https://github.com/geekdada/surgio/commit/a3502bb6be259a54684536b1d3ea9e1cde27a622))
25
+
26
+
27
+
28
+ # [2.11.0](https://github.com/geekdada/surgio/compare/v2.10.3...v2.11.0) (2022-01-01)
29
+
30
+
31
+ ### Features
32
+
33
+ * parse shadowsocks in V2rayN subscription ([e26fe15](https://github.com/geekdada/surgio/commit/e26fe154f4f9276c767270e28932210eb643222c)), closes [#167](https://github.com/geekdada/surgio/issues/167)
34
+ * support trojan subscription ([e241f4b](https://github.com/geekdada/surgio/commit/e241f4b1679006f90c20ec17b755de27bd6a4cf3))
35
+ * support trojan subscription ([75a90c4](https://github.com/geekdada/surgio/commit/75a90c4fb8867a870d3dc22d8ca9832e7ab1c2df))
36
+
37
+
38
+
1
39
  ## [2.10.3](https://github.com/geekdada/surgio/compare/v2.10.2...v2.10.3) (2021-11-24)
2
40
 
3
41
 
@@ -86,8 +124,8 @@
86
124
 
87
125
  ### Features
88
126
 
89
- * 调整了 dns 解析的参数 ([b7aa7eb](https://github.com/geekdada/surgio/commit/b7aa7ebf7b0bd71c85395fea0fc4c1295bbd84bc))
90
127
  * 在生成 surge 的 ssr 订阅时强制校验 startPort ([879080b](https://github.com/geekdada/surgio/commit/879080b333d89aa7d37ebe6e646d78f71aa69af7))
128
+ * 调整了 dns 解析的参数 ([b7aa7eb](https://github.com/geekdada/surgio/commit/b7aa7ebf7b0bd71c85395fea0fc4c1295bbd84bc))
91
129
 
92
130
 
93
131
 
@@ -201,9 +239,9 @@
201
239
 
202
240
  ### Features
203
241
 
204
- * 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
205
242
  * 允许通过命令行开启远程片段缓存 ([128c9c5](https://github.com/geekdada/surgio/commit/128c9c5998dcc8db9d4c9472ce451ff40f4732ee))
206
243
  * 支持自定义订阅请求转发的地址 ([3f4fb3b](https://github.com/geekdada/surgio/commit/3f4fb3b7450e3e63d89d26b4dfcba7dffd1e683e))
244
+ * 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
207
245
 
208
246
 
209
247
 
@@ -328,13 +366,13 @@
328
366
 
329
367
  ### Features
330
368
 
331
- * 内置协议过滤器更名 ([6aa6531](https://github.com/geekdada/surgio/commit/6aa653174fd856c1ccc69ba10f5b995391ef9c82))
332
- * 修改默认网络请求超时时间和重试次数 ([7753d20](https://github.com/geekdada/surgio/commit/7753d20611be1a4066747b3281d1ceb99a687ec1))
333
369
  * add support for ssd subscription ([46e5d2d](https://github.com/geekdada/surgio/commit/46e5d2d129b9b5470471594c432e8b5e2fc012ca))
334
370
  * filter 行为修改 ([9e0ddf7](https://github.com/geekdada/surgio/commit/9e0ddf7118931009951dc1f21943d3340256885d))
335
371
  * surgeconfig 默认值修改 ([7b004bd](https://github.com/geekdada/surgio/commit/7b004bd1cac6c490bd0dbb0c086f33ff85ac194e))
336
372
  * udp-relay 改为强制布尔值 ([86a5dfc](https://github.com/geekdada/surgio/commit/86a5dfcb2343bff5dbfafd6cefe2057b2141c66e))
337
373
  * Vmess 配置的 udp 改为 udp-relay ([9460bc8](https://github.com/geekdada/surgio/commit/9460bc8c1713a96fc61e4db271e599046d467830))
374
+ * 修改默认网络请求超时时间和重试次数 ([7753d20](https://github.com/geekdada/surgio/commit/7753d20611be1a4066747b3281d1ceb99a687ec1))
375
+ * 内置协议过滤器更名 ([6aa6531](https://github.com/geekdada/surgio/commit/6aa653174fd856c1ccc69ba10f5b995391ef9c82))
338
376
 
339
377
 
340
378
  ### BREAKING CHANGES
@@ -353,8 +391,8 @@
353
391
 
354
392
  ### Bug Fixes
355
393
 
356
- * 配置 boolean 进行严格类型检查 ([1a42306](https://github.com/geekdada/surgio/commit/1a42306e5387b52b4a7f976b53b352c556607512))
357
394
  * **utils:v2ray:** lack of transport settings ([4491e60](https://github.com/geekdada/surgio/commit/4491e60cb5e0709056d93c82d314d23ec482745a)), closes [#91](https://github.com/geekdada/surgio/issues/91)
395
+ * 配置 boolean 进行严格类型检查 ([1a42306](https://github.com/geekdada/surgio/commit/1a42306e5387b52b4a7f976b53b352c556607512))
358
396
 
359
397
 
360
398
  ### Features
@@ -445,16 +483,16 @@
445
483
 
446
484
  ### Bug Fixes
447
485
 
448
- * 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
449
486
  * **command:new:** 生成 custom 类型 provider 报错 ([be83268](https://github.com/geekdada/surgio/commit/be832687b0cb1a5ceb96e6742eb451e9ed5e5903))
450
487
  * SSR URI 中包含 ipv6 地址解析错误 ([1cd8436](https://github.com/geekdada/surgio/commit/1cd8436a6335a4f018fc96532f297502cec8ce3b))
488
+ * 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
451
489
 
452
490
 
453
491
  ### Features
454
492
 
455
- * 生成规则前进行 eslint 检查 ([a769458](https://github.com/geekdada/surgio/commit/a769458225905b228ef8903da593ded2c42ab49d))
456
493
  * 支持解析 ipv6 地址 ([b96489b](https://github.com/geekdada/surgio/commit/b96489b6f92daa9e87f3863fb80e97b4af225fa6))
457
494
  * 支持转换 surge ip-cidr6 至 quantumult x ip6-cidr ([c823677](https://github.com/geekdada/surgio/commit/c82367707e21ecd6856801a0e0d1758e58338a03))
495
+ * 生成规则前进行 eslint 检查 ([a769458](https://github.com/geekdada/surgio/commit/a769458225905b228ef8903da593ded2c42ab49d))
458
496
 
459
497
 
460
498
 
@@ -468,11 +506,11 @@
468
506
 
469
507
  ### Features
470
508
 
471
- * 错误信息补充 ([ef4946c](https://github.com/geekdada/surgio/commit/ef4946cac0eb9897586875118399624dbe44d8d9))
472
- * 更新内置默认 UA ([640ee2c](https://github.com/geekdada/surgio/commit/640ee2cddd392a97b61b9c5511335075bdb1b0ca))
509
+ * useProviders 和 discardProviders 增加严格模式 ([bcd9fe9](https://github.com/geekdada/surgio/commit/bcd9fe942b9814ae453f4f13103245f8bf32384c))
473
510
  * 优化未设置 binPath 的错误文案 ([f6d3e89](https://github.com/geekdada/surgio/commit/f6d3e895e783788c5f8b8bcf1622220f411b3e9a))
474
511
  * 支持从 Clash 订阅中读取 v2ray-plugin mux 信息 ([f06f279](https://github.com/geekdada/surgio/commit/f06f2793af92f2a68aca51e461cad2c6b9165f5d))
475
- * useProviders discardProviders 增加严格模式 ([bcd9fe9](https://github.com/geekdada/surgio/commit/bcd9fe942b9814ae453f4f13103245f8bf32384c))
512
+ * 更新内置默认 UA ([640ee2c](https://github.com/geekdada/surgio/commit/640ee2cddd392a97b61b9c5511335075bdb1b0ca))
513
+ * 错误信息补充 ([ef4946c](https://github.com/geekdada/surgio/commit/ef4946cac0eb9897586875118399624dbe44d8d9))
476
514
 
477
515
 
478
516
 
@@ -499,8 +537,8 @@
499
537
 
500
538
  ### Bug Fixes
501
539
 
502
- * 无法识别外部资源的 EOL ([bee0c12](https://github.com/geekdada/surgio/commit/bee0c1224781330c35a27cbfee4549d338de65d2))
503
540
  * should not enable proxy on now.sh and heroku ([3713850](https://github.com/geekdada/surgio/commit/37138507c126d7b2da900c833fea2af0bf153f4d))
541
+ * 无法识别外部资源的 EOL ([bee0c12](https://github.com/geekdada/surgio/commit/bee0c1224781330c35a27cbfee4549d338de65d2))
504
542
 
505
543
 
506
544
  ### Features
@@ -532,8 +570,8 @@
532
570
 
533
571
  ### Features
534
572
 
535
- * 支持定义全局 customParams ([a8a092f](https://github.com/geekdada/surgio/commit/a8a092fc74c5fbb7fedaa3a00dbffe2f3e9e9432))
536
573
  * add template method getUrl ([d02df8f](https://github.com/geekdada/surgio/commit/d02df8f2dbac0722381832944e06a11a3b0f3b40))
574
+ * 支持定义全局 customParams ([a8a092f](https://github.com/geekdada/surgio/commit/a8a092fc74c5fbb7fedaa3a00dbffe2f3e9e9432))
537
575
 
538
576
 
539
577
 
@@ -552,8 +590,8 @@
552
590
  ### Features
553
591
 
554
592
  * `v2rayn_subscribe` 支持强制覆盖 `skipCertVerify` 和 `udpRelay` ([3a326d4](https://github.com/geekdada/surgio/commit/3a326d463f47bba6a000d299eb1dee19d790e29c))
555
- * 支持从 Surge 配置中解析转换 Quantumult X 的以下几种脚本 ([066060d](https://github.com/geekdada/surgio/commit/066060d3d26b6f0172c568897fc492a77ccfcfb9))
556
593
  * add support for quantumultx tls1.3 ([007db56](https://github.com/geekdada/surgio/commit/007db568c2a9ac7685bd0a344fa5093c22429e81))
594
+ * 支持从 Surge 配置中解析转换 Quantumult X 的以下几种脚本 ([066060d](https://github.com/geekdada/surgio/commit/066060d3d26b6f0172c568897fc492a77ccfcfb9))
557
595
 
558
596
 
559
597
 
@@ -585,8 +623,8 @@
585
623
 
586
624
  ### Features
587
625
 
588
- * 更新模板生成工具 ([fd8eed0](https://github.com/geekdada/surgio/commit/fd8eed0b0f527698ec203f347d7bbdae397ee897))
589
626
  * add a relay service for subscriptions ([4b789a8](https://github.com/geekdada/surgio/commit/4b789a89f1cf68ce978d0fecd58daaf82f4a039a))
627
+ * 更新模板生成工具 ([fd8eed0](https://github.com/geekdada/surgio/commit/fd8eed0b0f527698ec203f347d7bbdae397ee897))
590
628
 
591
629
 
592
630
 
@@ -645,9 +683,9 @@
645
683
 
646
684
  ### Features
647
685
 
686
+ * 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
648
687
  * 支持加入自定义 trojan 节点 ([40b6714](https://github.com/geekdada/surgio/commit/40b67143fbf1f5e59cf5c4b08ef4eb62238f4678))
649
688
  * 支持检查模板方法中无效的 filter ([9c2690b](https://github.com/geekdada/surgio/commit/9c2690b31d9266833e45c892fdad4daca6ce947e))
650
- * 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
651
689
 
652
690
 
653
691
 
@@ -711,12 +749,12 @@
711
749
 
712
750
  ### Features
713
751
 
752
+ * Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
714
753
  * 为常用 Provider 类型增加订阅流量信息接口 ([ed68cab](https://github.com/geekdada/surgio/commit/ed68cab12a5417850229acbfa564a4436577e5cb))
715
754
  * 修改 Artifact 初始化接口 ([4c3ac84](https://github.com/geekdada/surgio/commit/4c3ac847adae2bb492fa851e53b12213a6e379c7))
716
755
  * 增加查询流量命令 ([a94eeab](https://github.com/geekdada/surgio/commit/a94eeab89b0a0c3432af2f9796d44e700084b93c))
717
756
  * 支持从 SSR 订阅中读取剩余流量 ([fb2e886](https://github.com/geekdada/surgio/commit/fb2e886cac5428cdfac49bd6696a68e2494c2ea1))
718
757
  * 支持在 Artifact 初始化时传入 Environment ([75ae51f](https://github.com/geekdada/surgio/commit/75ae51f3e9fafddade282d4348cbbcb9db774d36))
719
- * Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
720
758
 
721
759
 
722
760
 
@@ -725,8 +763,8 @@
725
763
 
726
764
  ### Bug Fixes
727
765
 
728
- * 某些情况下 v2ray 配置 port 为字符串 ([b8af4d7](https://github.com/geekdada/surgio/commit/b8af4d799d70d02c5b4361954f38625afd891973)), closes [#59](https://github.com/geekdada/surgio/issues/59)
729
766
  * external provider 的 addresses 参数只应该写 IP ([f7006d6](https://github.com/geekdada/surgio/commit/f7006d676317db5eb0b6aac66440f9a76f7d8db4))
767
+ * 某些情况下 v2ray 配置 port 为字符串 ([b8af4d7](https://github.com/geekdada/surgio/commit/b8af4d799d70d02c5b4361954f38625afd891973)), closes [#59](https://github.com/geekdada/surgio/issues/59)
730
768
 
731
769
 
732
770
  ### Features
@@ -801,9 +839,9 @@
801
839
 
802
840
  ### Features
803
841
 
842
+ * useProviders, discardProviders ([e11cb75](https://github.com/geekdada/surgio/commit/e11cb75d3d58189e9dacc2c4f699e514ab1a33c1)), closes [#51](https://github.com/geekdada/surgio/issues/51)
804
843
  * 支持 Clash 的 Provider 片段 ([5c42328](https://github.com/geekdada/surgio/commit/5c4232809e60514121c1579deaa8ce9dbd151323))
805
844
  * 支持新的 Clash 规则配置方法 ([48b90e1](https://github.com/geekdada/surgio/commit/48b90e142dcd5c200ddd1b1e4cae8b6e97d918bb))
806
- * useProviders, discardProviders ([e11cb75](https://github.com/geekdada/surgio/commit/e11cb75d3d58189e9dacc2c4f699e514ab1a33c1)), closes [#51](https://github.com/geekdada/surgio/issues/51)
807
845
 
808
846
 
809
847
 
@@ -821,18 +859,18 @@
821
859
 
822
860
  ### Bug Fixes
823
861
 
824
- * 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
825
862
  * broken test ([25fcde6](https://github.com/geekdada/surgio/commit/25fcde69365ca66dfcce3fe260a1c6e2d0bd57b3))
826
863
  * LRU 缓存可能会被污染 ([929f7bd](https://github.com/geekdada/surgio/commit/929f7bd3a32adc40eb23ec782eba1ce2978569d8))
827
864
  * Provider 组合后生成结果排序错乱 ([d051b28](https://github.com/geekdada/surgio/commit/d051b2851ff401038587baa88f0e5ddc134471bc))
865
+ * 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
828
866
 
829
867
 
830
868
  ### Features
831
869
 
870
+ * v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
832
871
  * 域名解析失败后跳过 ([66f5af8](https://github.com/geekdada/surgio/commit/66f5af8d31416591a29e28ac8ae03d978fa50862))
833
872
  * 支持从 Clash 订阅中读取 skipCertVerify ([c856731](https://github.com/geekdada/surgio/commit/c856731cec14246b1ced594627daa5c50a2959cd))
834
873
  * 支持配置 Provider 缓存 ([16dc8fc](https://github.com/geekdada/surgio/commit/16dc8fce9911fee2cae2e8c12e8649d3ede44dfa))
835
- * v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
836
874
 
837
875
 
838
876
 
@@ -855,9 +893,9 @@
855
893
 
856
894
  ### Features
857
895
 
896
+ * 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
858
897
  * 更新 netflixFilter ([515cbe5](https://github.com/geekdada/surgio/commit/515cbe5a179f6a7a364dc4e0eba72f264fb82b57))
859
898
  * 更新国旗数据库 ([18f22d2](https://github.com/geekdada/surgio/commit/18f22d213e90fc9f680323439cbe4082ea2b171b))
860
- * 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
861
899
 
862
900
 
863
901
 
@@ -875,8 +913,8 @@
875
913
 
876
914
  ### Bug Fixes
877
915
 
878
- * 在某些情况下 Clash 的策略组中没输出 url 和 interval ([3884014](https://github.com/geekdada/surgio/commit/3884014c2296a59de90ae5f5e4803a3609f7893d))
879
916
  * broken test ([794be85](https://github.com/geekdada/surgio/commit/794be85268811ab665351ab255f368bc4a6d0754))
917
+ * 在某些情况下 Clash 的策略组中没输出 url 和 interval ([3884014](https://github.com/geekdada/surgio/commit/3884014c2296a59de90ae5f5e4803a3609f7893d))
880
918
 
881
919
 
882
920
 
@@ -993,9 +1031,9 @@
993
1031
 
994
1032
  ### Features
995
1033
 
996
- * 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
997
1034
  * 优化 dns 解析 ([345790e](https://github.com/geekdada/surgio/commit/345790eecd6b2f4745b91999004d921f41b259bc))
998
1035
  * 在模板中输出 proxyTestUrl ([b95cd8b](https://github.com/geekdada/surgio/commit/b95cd8b157e902a920699618cf1e61d1f615fd31))
1036
+ * 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
999
1037
 
1000
1038
 
1001
1039
 
@@ -1004,16 +1042,16 @@
1004
1042
 
1005
1043
  ### Bug Fixes
1006
1044
 
1007
- * 空文件不会返回 404 ([271c398](https://github.com/geekdada/surgio/commit/271c398df29e8e3da2f4f22d6aa2d78aa49f122c))
1008
1045
  * 某些情况下 clash 配置没有输出 interval 和 url ([1978429](https://github.com/geekdada/surgio/commit/197842956a96fd35b91afd77cf358c1697ac7097))
1046
+ * 空文件不会返回 404 ([271c398](https://github.com/geekdada/surgio/commit/271c398df29e8e3da2f4f22d6aa2d78aa49f122c))
1009
1047
 
1010
1048
 
1011
1049
  ### Features
1012
1050
 
1051
+ * nodeFilter 也支持过滤排序 ([6dd7f66](https://github.com/geekdada/surgio/commit/6dd7f665d26ad427f026786d5add8c578084f816))
1013
1052
  * 增加规则过滤关键词 ([128f648](https://github.com/geekdada/surgio/commit/128f64835ccde09b4b0dda54e4075dc0218fbc10))
1014
- * 支持排序类型的过滤器 ([db69447](https://github.com/geekdada/surgio/commit/db694473b1b88e44811971fbc0cd8761d0fcf4e3))
1015
1053
  * 支持在输出 external 时解析域名 ([1f78f44](https://github.com/geekdada/surgio/commit/1f78f44dde2949e384184d8fa59f566a45ed2d64))
1016
- * nodeFilter 也支持过滤排序 ([6dd7f66](https://github.com/geekdada/surgio/commit/6dd7f665d26ad427f026786d5add8c578084f816))
1054
+ * 支持排序类型的过滤器 ([db69447](https://github.com/geekdada/surgio/commit/db694473b1b88e44811971fbc0cd8761d0fcf4e3))
1017
1055
 
1018
1056
 
1019
1057
 
@@ -1031,8 +1069,8 @@
1031
1069
 
1032
1070
  ### Features
1033
1071
 
1034
- * 优化远程片段获取的并发请求 ([7552fa0](https://github.com/geekdada/surgio/commit/7552fa05b073871aa6a50472f2386bfa4fa9421d))
1035
1072
  * Provider 处理改为并发 ([8bf2738](https://github.com/geekdada/surgio/commit/8bf2738f14f9d30b9bfbf6999fbbdf91a5993469))
1073
+ * 优化远程片段获取的并发请求 ([7552fa0](https://github.com/geekdada/surgio/commit/7552fa05b073871aa6a50472f2386bfa4fa9421d))
1036
1074
 
1037
1075
 
1038
1076
 
@@ -1050,8 +1088,8 @@
1050
1088
 
1051
1089
  ### Bug Fixes
1052
1090
 
1053
- * 由于 mellow 对 shadowsocks 支持有限,忽略该类型节点 ([8ae0561](https://github.com/geekdada/surgio/commit/8ae056194b938014eee4c0bebfb38ecf3de7cb10))
1054
1091
  * Close [#35](https://github.com/geekdada/surgio/issues/35) ([491b655](https://github.com/geekdada/surgio/commit/491b655bc8061ed120ab119bd5e4ac57859ea095))
1092
+ * 由于 mellow 对 shadowsocks 支持有限,忽略该类型节点 ([8ae0561](https://github.com/geekdada/surgio/commit/8ae056194b938014eee4c0bebfb38ecf3de7cb10))
1055
1093
 
1056
1094
 
1057
1095
  ### Features
@@ -1060,8 +1098,8 @@
1060
1098
  * 增加 mellow 规则处理方法 ([b646199](https://github.com/geekdada/surgio/commit/b646199507d7558bd00daa89f4877501391e2605))
1061
1099
  * 支持 Clash 的 'fallback-auto', 'load-balance' 策略 ([18f106f](https://github.com/geekdada/surgio/commit/18f106fee8c94c01bbf8a4a34fadfcd9557fdd2b)), closes [#34](https://github.com/geekdada/surgio/issues/34)
1062
1100
  * 支持单独定义某个 artifact 的输出目录 ([bef00c7](https://github.com/geekdada/surgio/commit/bef00c7d9894476c695229a6e96f1d3f47fd91b1))
1063
- * 支持导出 Mellow 节点 ([9a72ca2](https://github.com/geekdada/surgio/commit/9a72ca2ac7b9b59ee3c1b61180fd8fe915330ad8))
1064
1101
  * 支持在 surgio.conf.js 中定义全局 customFilters ([1701b85](https://github.com/geekdada/surgio/commit/1701b85d68e487b52fb529243d8826ee4b5a99a8))
1102
+ * 支持导出 Mellow 节点 ([9a72ca2](https://github.com/geekdada/surgio/commit/9a72ca2ac7b9b59ee3c1b61180fd8fe915330ad8))
1065
1103
 
1066
1104
 
1067
1105
 
@@ -1098,8 +1136,8 @@
1098
1136
 
1099
1137
  ### Features
1100
1138
 
1101
- * 面板增加添加 Clash 的按钮 ([b66e5f3](https://github.com/geekdada/surgio/commit/b66e5f31dae975ccac83742666ea7385a6e023e0))
1102
1139
  * check command ([2db635f](https://github.com/geekdada/surgio/commit/2db635ff91cd786daa6852abdd82896ab213f3ab))
1140
+ * 面板增加添加 Clash 的按钮 ([b66e5f3](https://github.com/geekdada/surgio/commit/b66e5f31dae975ccac83742666ea7385a6e023e0))
1103
1141
 
1104
1142
 
1105
1143
 
@@ -1108,8 +1146,8 @@
1108
1146
 
1109
1147
  ### Features
1110
1148
 
1111
- * youtubePremiumFilter 增加香港 ([821bf3c](https://github.com/geekdada/surgio/commit/821bf3c653767490bf093e0980be091b28f3501d))
1112
1149
  * youtubePremiumFilter 增加新加坡 ([7b32873](https://github.com/geekdada/surgio/commit/7b32873ff906156208ae7a03ea8002534a794c57))
1150
+ * youtubePremiumFilter 增加香港 ([821bf3c](https://github.com/geekdada/surgio/commit/821bf3c653767490bf093e0980be091b28f3501d))
1113
1151
 
1114
1152
 
1115
1153
 
@@ -1145,10 +1183,10 @@
1145
1183
 
1146
1184
  ### Features
1147
1185
 
1148
- * 节点增加 tfo 参数 ([a820b89](https://github.com/geekdada/surgio/commit/a820b89590ac3379ccf109539000783b0d7b803a))
1186
+ * udp-relay 的值改为布尔类型,兼容字符串类型 ([f3eaaed](https://github.com/geekdada/surgio/commit/f3eaaed03727de525e12a454a8a966fd923f8d89))
1149
1187
  * 仅支持读取 ws 和 tcp 类型的 vmess 节点 ([de5bb35](https://github.com/geekdada/surgio/commit/de5bb35fcc3b4b4e6bb1bb12a6cc6f53bd6de2c8))
1150
1188
  * 新增 getQuantumultXNodes ([d284d04](https://github.com/geekdada/surgio/commit/d284d0415e9524dffebd73d6085d1e11ceef3621))
1151
- * udp-relay 的值改为布尔类型,兼容字符串类型 ([f3eaaed](https://github.com/geekdada/surgio/commit/f3eaaed03727de525e12a454a8a966fd923f8d89))
1189
+ * 节点增加 tfo 参数 ([a820b89](https://github.com/geekdada/surgio/commit/a820b89590ac3379ccf109539000783b0d7b803a))
1152
1190
 
1153
1191
 
1154
1192
 
@@ -1166,18 +1204,18 @@
1166
1204
 
1167
1205
  ### Bug Fixes
1168
1206
 
1169
- * 加国旗正确识别中转节点了 ([3751dbf](https://github.com/geekdada/surgio/commit/3751dbf0f7f0d8619cfa28b2ec2cc8c24c4494a7))
1170
1207
  * protoparam 和 obfsparam 中不能有空格 ([6cdb978](https://github.com/geekdada/surgio/commit/6cdb97880913a594115a59d49bfebcf90c555f7f))
1208
+ * 加国旗正确识别中转节点了 ([3751dbf](https://github.com/geekdada/surgio/commit/3751dbf0f7f0d8619cfa28b2ec2cc8c24c4494a7))
1171
1209
 
1172
1210
 
1173
1211
  ### Features
1174
1212
 
1213
+ * proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
1175
1214
  * 不合法 yaml 文件识别 ([1654534](https://github.com/geekdada/surgio/commit/16545347613026a57bac46eb286e52f894384c11))
1176
- * 兼容v2rayn 订阅格式 ([8ba4625](https://github.com/geekdada/surgio/commit/8ba4625955bfb068028303a56148ac20e109e6e3))
1177
1215
  * 允许用户覆盖 clash 订阅的 udp 转发支持 ([bb58c50](https://github.com/geekdada/surgio/commit/bb58c50aa5334ea9ce1ee4c323aa531dcbb32e79))
1216
+ * 兼容v2rayn 订阅格式 ([8ba4625](https://github.com/geekdada/surgio/commit/8ba4625955bfb068028303a56148ac20e109e6e3))
1178
1217
  * 增加 netflixFilter 规则 ([5cc52f1](https://github.com/geekdada/surgio/commit/5cc52f1c237b9c4fcf2dee56ea3c0caaf82695ad))
1179
1218
  * 支持读取 Clash 订阅 ([45ef59f](https://github.com/geekdada/surgio/commit/45ef59f359e21e37f5dac242a33888c74ec1afbc))
1180
- * proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
1181
1219
 
1182
1220
 
1183
1221
 
@@ -1186,10 +1224,10 @@
1186
1224
 
1187
1225
  ### Features
1188
1226
 
1189
- * 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
1190
1227
  * better error message ([26fcaa3](https://github.com/geekdada/surgio/commit/26fcaa3310046fbd886cff2370a8bf31be96dcca))
1191
1228
  * gateway request log ([891168b](https://github.com/geekdada/surgio/commit/891168b6a702a0440b5d0475a25d11345d594f52))
1192
1229
  * quick editing from list-artifact ([2d1d605](https://github.com/geekdada/surgio/commit/2d1d605fe5dd36332a8f04476d397cb7a14b6684))
1230
+ * 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
1193
1231
 
1194
1232
 
1195
1233
 
@@ -1253,10 +1291,10 @@
1253
1291
 
1254
1292
  ### Features
1255
1293
 
1256
- * 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
1257
1294
  * getNodeNames 和 getClashNodeNames 不再过滤 nodeType ([6571511](https://github.com/geekdada/surgio/commit/6571511f3d30aa3a283a69b81afb9aa548031b18))
1258
1295
  * schema validation for config ([9f11254](https://github.com/geekdada/surgio/commit/9f11254d2bc7107e2299e1146553b03da1e9849f))
1259
1296
  * schema validation for provider ([d738e0f](https://github.com/geekdada/surgio/commit/d738e0f999c91f577deb14793889210620757f36))
1297
+ * 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
1260
1298
 
1261
1299
 
1262
1300
 
@@ -1373,8 +1411,8 @@
1373
1411
 
1374
1412
  ### Features
1375
1413
 
1376
- * 增加错误文案方便调试 ([ff28793](https://github.com/geekdada/surgio/commit/ff287933e17cb0f7d8f9b7d4a454124420e7610c))
1377
1414
  * 增加了 Flag 识别字段 ([86c1489](https://github.com/geekdada/surgio/commit/86c14898001ab54b6a5387bf533c34d5917b4cbb))
1415
+ * 增加错误文案方便调试 ([ff28793](https://github.com/geekdada/surgio/commit/ff287933e17cb0f7d8f9b7d4a454124420e7610c))
1378
1416
 
1379
1417
 
1380
1418
 
@@ -1383,8 +1421,8 @@
1383
1421
 
1384
1422
  ### Bug Fixes
1385
1423
 
1386
- * 不需要 sort ([51f560f](https://github.com/geekdada/surgio/commit/51f560fc86b24c1b4319a83637c90e5449023520))
1387
1424
  * SSR URI 识别问题 ([46184fb](https://github.com/geekdada/surgio/commit/46184fbfdcd1583658db157123902862881413f5))
1425
+ * 不需要 sort ([51f560f](https://github.com/geekdada/surgio/commit/51f560fc86b24c1b4319a83637c90e5449023520))
1388
1426
 
1389
1427
 
1390
1428
 
@@ -1393,9 +1431,9 @@
1393
1431
 
1394
1432
  ### Bug Fixes
1395
1433
 
1434
+ * clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
1396
1435
  * 不手动指定不使用代理 ([d89198a](https://github.com/geekdada/surgio/commit/d89198a23cff4fe345f5597ab507b8680ac34b54))
1397
1436
  * 文件名在 win 上取值错误 ([310518b](https://github.com/geekdada/surgio/commit/310518bd7cc37c2110dbcb50bdb1d5571bdb68cc))
1398
- * clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
1399
1437
 
1400
1438
 
1401
1439
 
@@ -1413,8 +1451,8 @@
1413
1451
 
1414
1452
  ### Features
1415
1453
 
1416
- * 远程片段支持读取原始内容 ([a1f9e0f](https://github.com/geekdada/surgio/commit/a1f9e0ff7f55b33f98934619a2e90c33ba0c8d20))
1417
1454
  * add support for clashr ([43c4862](https://github.com/geekdada/surgio/commit/43c486277bdff42999f18a71a4627585461e4762))
1455
+ * 远程片段支持读取原始内容 ([a1f9e0f](https://github.com/geekdada/surgio/commit/a1f9e0ff7f55b33f98934619a2e90c33ba0c8d20))
1418
1456
 
1419
1457
 
1420
1458
 
@@ -1428,10 +1466,10 @@
1428
1466
 
1429
1467
  ### Features
1430
1468
 
1431
- * 节点名补充国旗 Emoji ([dc1f34e](https://github.com/geekdada/surgio/commit/dc1f34e3616e924acc2773dc7024a5e968981d53))
1432
- * 增加国别判断字段 ([ce6828c](https://github.com/geekdada/surgio/commit/ce6828cdf80bd433d55ad788fac1529ef9b32fc6))
1433
1469
  * add error message ([69b6bff](https://github.com/geekdada/surgio/commit/69b6bfffdca29c1d01cc77cf63730a12f7390822))
1434
1470
  * custom filters ([d5ee8bc](https://github.com/geekdada/surgio/commit/d5ee8bc6b0066eb0d30699191fdcae6262bd4f1a))
1471
+ * 增加国别判断字段 ([ce6828c](https://github.com/geekdada/surgio/commit/ce6828cdf80bd433d55ad788fac1529ef9b32fc6))
1472
+ * 节点名补充国旗 Emoji ([dc1f34e](https://github.com/geekdada/surgio/commit/dc1f34e3616e924acc2773dc7024a5e968981d53))
1435
1473
 
1436
1474
 
1437
1475
 
@@ -1534,12 +1572,12 @@
1534
1572
 
1535
1573
  ### Features
1536
1574
 
1537
- * 生成 quan 订阅 scheme ([afe0a21](https://github.com/geekdada/surgio/commit/afe0a2120b0eeb048deab09c24964d7bd3e14a60))
1538
- * 生成 v2rayn scheme ([981e6d7](https://github.com/geekdada/surgio/commit/981e6d77517771da9510cc79c7e0cd8c7276d119))
1539
- * 支持导出 Quantumult 的 HTTPS, Shadowsocksr 节点 ([dd728e0](https://github.com/geekdada/surgio/commit/dd728e02345669751b31227327abb20034dc5554))
1540
1575
  * add shadowsocks subscribe support ([e993d1b](https://github.com/geekdada/surgio/commit/e993d1bfa1ab4a50464ca37f647e22cd7c0bee68))
1541
1576
  * add v2rayn subscribe support ([067ad43](https://github.com/geekdada/surgio/commit/067ad4318b456f5ceaf47ad78b79d206544da72e))
1542
1577
  * clash 输出 vmess ([05cc557](https://github.com/geekdada/surgio/commit/05cc5570762d34a3465e71d14fbf78e8a30a1f34))
1578
+ * 支持导出 Quantumult 的 HTTPS, Shadowsocksr 节点 ([dd728e0](https://github.com/geekdada/surgio/commit/dd728e02345669751b31227327abb20034dc5554))
1579
+ * 生成 quan 订阅 scheme ([afe0a21](https://github.com/geekdada/surgio/commit/afe0a2120b0eeb048deab09c24964d7bd3e14a60))
1580
+ * 生成 v2rayn scheme ([981e6d7](https://github.com/geekdada/surgio/commit/981e6d77517771da9510cc79c7e0cd8c7276d119))
1543
1581
 
1544
1582
 
1545
1583
 
@@ -1548,8 +1586,8 @@
1548
1586
 
1549
1587
  ### Features
1550
1588
 
1551
- * 初始化配置时使用 defaultsDeep ([ab8f695](https://github.com/geekdada/surgio/commit/ab8f695a79bbf92248a193805032c81fc2e31434))
1552
1589
  * remote rule set ([a820cdb](https://github.com/geekdada/surgio/commit/a820cdb192daeb1f0a321e75ed447290b4e4207a)), closes [#5](https://github.com/geekdada/surgio/issues/5)
1590
+ * 初始化配置时使用 defaultsDeep ([ab8f695](https://github.com/geekdada/surgio/commit/ab8f695a79bbf92248a193805032c81fc2e31434))
1553
1591
 
1554
1592
 
1555
1593
 
@@ -1564,8 +1602,8 @@
1564
1602
 
1565
1603
  ### Features
1566
1604
 
1567
- * 模板 base64 filter ([3d45a23](https://github.com/geekdada/surgio/commit/3d45a23102cf642495e0920c91f2ed94de27a4e2))
1568
1605
  * add cli update support ([2f2d340](https://github.com/geekdada/surgio/commit/2f2d340b0c4f65a1a601f62c2986c5384af6fd76))
1606
+ * 模板 base64 filter ([3d45a23](https://github.com/geekdada/surgio/commit/3d45a23102cf642495e0920c91f2ed94de27a4e2))
1569
1607
 
1570
1608
 
1571
1609
 
@@ -1579,8 +1617,8 @@
1579
1617
 
1580
1618
  ### Features
1581
1619
 
1582
- * 属性判空 ([13eb455](https://github.com/geekdada/surgio/commit/13eb455d3258f0067a244117a50688817bdb1433))
1583
1620
  * 在模板中暴露 nodeList 变量 ([c2eeb29](https://github.com/geekdada/surgio/commit/c2eeb295ff2ca7dc0407a2b67f8d1332aa26be60))
1621
+ * 属性判空 ([13eb455](https://github.com/geekdada/surgio/commit/13eb455d3258f0067a244117a50688817bdb1433))
1584
1622
  * 支持从 gui-config.json 中解析混淆配置 ([bc135a7](https://github.com/geekdada/surgio/commit/bc135a78c8eb0572ebc67b17ab9d7c6a9b4acf22))
1585
1623
 
1586
1624
 
@@ -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("../utils/constant");
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xlYW4tY2FjaGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvY29tbWFuZC9jbGVhbi1jYWNoZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsdUJBQXVCO0FBQ3ZCLDREQUFpQztBQUNqQyw0Q0FBb0I7QUFDcEIsZ0RBQXdCO0FBQ3hCLHdEQUEwQjtBQUMxQiwyQ0FBd0M7QUFFeEMsZ0RBQW9EO0FBQ3BELHdEQUFxRDtBQUVyRCxNQUFNLGlCQUFrQixTQUFRLG9CQUFPO0lBQ3JDLFlBQVksT0FBa0I7UUFDNUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ2YsSUFBSSxDQUFDLEtBQUssR0FBRywwQkFBMEIsQ0FBQztJQUMxQyxDQUFDO0lBRUQsdUJBQXVCO0lBQ3ZCLElBQVcsV0FBVztRQUNwQixPQUFPLE1BQU0sQ0FBQztJQUNoQixDQUFDO0lBRU0sS0FBSyxDQUFDLEdBQUc7UUFDZCxNQUFNLE1BQU0sR0FBRyxjQUFJLENBQUMsSUFBSSxDQUFDLFlBQUUsQ0FBQyxNQUFNLEVBQUUsRUFBRSwwQkFBZSxDQUFDLENBQUM7UUFFdkQsSUFBSSxrQkFBRSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsRUFBRTtZQUN6QixNQUFNLGtCQUFFLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1NBQ3pCO1FBRUQsZUFBTSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN0QixDQUFDO0lBRUQsdUJBQXVCO0lBQ2hCLFlBQVksQ0FBQyxHQUFHO1FBQ3JCLDJCQUFZLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxHQUFHLENBQUMsQ0FBQztJQUMvQixDQUFDO0NBQ0Y7QUFFRCxpQkFBUyxpQkFBaUIsQ0FBQyJ9
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xlYW4tY2FjaGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvY29tbWFuZC9jbGVhbi1jYWNoZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsdUJBQXVCO0FBQ3ZCLDREQUFpQztBQUNqQyw0Q0FBb0I7QUFDcEIsZ0RBQXdCO0FBQ3hCLHdEQUEwQjtBQUMxQiwyQ0FBd0M7QUFFeEMsMENBQThDO0FBQzlDLHdEQUFxRDtBQUVyRCxNQUFNLGlCQUFrQixTQUFRLG9CQUFPO0lBQ3JDLFlBQVksT0FBa0I7UUFDNUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ2YsSUFBSSxDQUFDLEtBQUssR0FBRywwQkFBMEIsQ0FBQztJQUMxQyxDQUFDO0lBRUQsdUJBQXVCO0lBQ3ZCLElBQVcsV0FBVztRQUNwQixPQUFPLE1BQU0sQ0FBQztJQUNoQixDQUFDO0lBRU0sS0FBSyxDQUFDLEdBQUc7UUFDZCxNQUFNLE1BQU0sR0FBRyxjQUFJLENBQUMsSUFBSSxDQUFDLFlBQUUsQ0FBQyxNQUFNLEVBQUUsRUFBRSwwQkFBZSxDQUFDLENBQUM7UUFFdkQsSUFBSSxrQkFBRSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsRUFBRTtZQUN6QixNQUFNLGtCQUFFLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1NBQ3pCO1FBRUQsZUFBTSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN0QixDQUFDO0lBRUQsdUJBQXVCO0lBQ2hCLFlBQVksQ0FBQyxHQUFHO1FBQ3JCLDJCQUFZLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxHQUFHLENBQUMsQ0FBQztJQUMvQixDQUFDO0NBQ0Y7QUFFRCxpQkFBUyxpQkFBaUIsQ0FBQyJ9
@@ -0,0 +1,20 @@
1
+ export declare const NETWORK_SURGIO_UA = "surgio";
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";
3
+ export declare const PROXY_TEST_URL = "http://cp.cloudflare.com/generate_204";
4
+ export declare const PROXY_TEST_INTERVAL = 1200;
5
+ export declare const CLASH_SUPPORTED_RULE: ReadonlyArray<string>;
6
+ export declare const QUANTUMULT_X_SUPPORTED_RULE: ReadonlyArray<string>;
7
+ export declare const LOON_SUPPORTED_RULE: ReadonlyArray<string>;
8
+ export declare const MELLOW_UNSUPPORTED_RULE: ReadonlyArray<string>;
9
+ export declare const CATEGORIES: {
10
+ SNIPPET: string;
11
+ SURGE: string;
12
+ QUANTUMULT_X: string;
13
+ QUANTUMULT_X_SERVER: string;
14
+ QUANTUMULT_X_FILTER: string;
15
+ QUANTUMULT_X_REWRITE: string;
16
+ CLASH: string;
17
+ LOON: string;
18
+ };
19
+ export declare const RELAY_SERVICE = "https://surgio-cors.herokuapp.com/";
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==
@@ -0,0 +1,3 @@
1
+ export * from './env';
2
+ export * from './error';
3
+ export * from './constant';