surgio 2.14.2 → 2.15.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 +60 -50
- package/README.md +2 -5
- package/build/command/generate.js +2 -2
- package/build/command/lint.js +2 -2
- package/build/constant/index.js +6 -2
- package/build/index.d.ts +1 -0
- package/build/index.js +6 -2
- package/build/provider/ClashProvider.js +10 -4
- package/build/provider/V2rayNSubscribeProvider.js +2 -2
- package/build/types.d.ts +3 -0
- package/build/utils/clash.d.ts +3 -0
- package/build/utils/clash.js +147 -0
- package/build/utils/constant.js +6 -2
- package/build/utils/error-helper.js +2 -2
- package/build/utils/filter.d.ts +1 -0
- package/build/utils/filter.js +27 -3
- package/build/utils/http-client.js +6 -2
- package/build/utils/index.d.ts +2 -7
- package/build/utils/index.js +58 -508
- package/build/utils/loon.js +3 -3
- package/build/utils/surge.d.ts +6 -0
- package/build/utils/surge.js +365 -0
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# [2.15.0](https://github.com/geekdada/surgio/compare/v2.14.2...v2.15.0) (2022-03-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add support for trojan web-socket config ([394f65d](https://github.com/geekdada/surgio/commit/394f65d927e3e8bae6237bea3bf3f2c644ed1a63))
|
|
7
|
+
* add tls-verification to quantumult x vmess config ([b24f071](https://github.com/geekdada/surgio/commit/b24f071f46a71a8446bd097d2c286b5011cb163b))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## [2.14.2](https://github.com/geekdada/surgio/compare/v2.14.1...v2.14.2) (2022-01-13)
|
|
2
12
|
|
|
3
13
|
|
|
@@ -151,8 +161,8 @@
|
|
|
151
161
|
|
|
152
162
|
### Features
|
|
153
163
|
|
|
154
|
-
* 在生成 surge 的 ssr 订阅时强制校验 startPort ([879080b](https://github.com/geekdada/surgio/commit/879080b333d89aa7d37ebe6e646d78f71aa69af7))
|
|
155
164
|
* 调整了 dns 解析的参数 ([b7aa7eb](https://github.com/geekdada/surgio/commit/b7aa7ebf7b0bd71c85395fea0fc4c1295bbd84bc))
|
|
165
|
+
* 在生成 surge 的 ssr 订阅时强制校验 startPort ([879080b](https://github.com/geekdada/surgio/commit/879080b333d89aa7d37ebe6e646d78f71aa69af7))
|
|
156
166
|
|
|
157
167
|
|
|
158
168
|
|
|
@@ -266,9 +276,9 @@
|
|
|
266
276
|
|
|
267
277
|
### Features
|
|
268
278
|
|
|
279
|
+
* 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
|
|
269
280
|
* 允许通过命令行开启远程片段缓存 ([128c9c5](https://github.com/geekdada/surgio/commit/128c9c5998dcc8db9d4c9472ce451ff40f4732ee))
|
|
270
281
|
* 支持自定义订阅请求转发的地址 ([3f4fb3b](https://github.com/geekdada/surgio/commit/3f4fb3b7450e3e63d89d26b4dfcba7dffd1e683e))
|
|
271
|
-
* 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
|
|
272
282
|
|
|
273
283
|
|
|
274
284
|
|
|
@@ -393,13 +403,13 @@
|
|
|
393
403
|
|
|
394
404
|
### Features
|
|
395
405
|
|
|
406
|
+
* 内置协议过滤器更名 ([6aa6531](https://github.com/geekdada/surgio/commit/6aa653174fd856c1ccc69ba10f5b995391ef9c82))
|
|
407
|
+
* 修改默认网络请求超时时间和重试次数 ([7753d20](https://github.com/geekdada/surgio/commit/7753d20611be1a4066747b3281d1ceb99a687ec1))
|
|
396
408
|
* add support for ssd subscription ([46e5d2d](https://github.com/geekdada/surgio/commit/46e5d2d129b9b5470471594c432e8b5e2fc012ca))
|
|
397
409
|
* filter 行为修改 ([9e0ddf7](https://github.com/geekdada/surgio/commit/9e0ddf7118931009951dc1f21943d3340256885d))
|
|
398
410
|
* surgeconfig 默认值修改 ([7b004bd](https://github.com/geekdada/surgio/commit/7b004bd1cac6c490bd0dbb0c086f33ff85ac194e))
|
|
399
411
|
* udp-relay 改为强制布尔值 ([86a5dfc](https://github.com/geekdada/surgio/commit/86a5dfcb2343bff5dbfafd6cefe2057b2141c66e))
|
|
400
412
|
* Vmess 配置的 udp 改为 udp-relay ([9460bc8](https://github.com/geekdada/surgio/commit/9460bc8c1713a96fc61e4db271e599046d467830))
|
|
401
|
-
* 修改默认网络请求超时时间和重试次数 ([7753d20](https://github.com/geekdada/surgio/commit/7753d20611be1a4066747b3281d1ceb99a687ec1))
|
|
402
|
-
* 内置协议过滤器更名 ([6aa6531](https://github.com/geekdada/surgio/commit/6aa653174fd856c1ccc69ba10f5b995391ef9c82))
|
|
403
413
|
|
|
404
414
|
|
|
405
415
|
### BREAKING CHANGES
|
|
@@ -418,8 +428,8 @@
|
|
|
418
428
|
|
|
419
429
|
### Bug Fixes
|
|
420
430
|
|
|
421
|
-
* **utils:v2ray:** lack of transport settings ([4491e60](https://github.com/geekdada/surgio/commit/4491e60cb5e0709056d93c82d314d23ec482745a)), closes [#91](https://github.com/geekdada/surgio/issues/91)
|
|
422
431
|
* 配置 boolean 进行严格类型检查 ([1a42306](https://github.com/geekdada/surgio/commit/1a42306e5387b52b4a7f976b53b352c556607512))
|
|
432
|
+
* **utils:v2ray:** lack of transport settings ([4491e60](https://github.com/geekdada/surgio/commit/4491e60cb5e0709056d93c82d314d23ec482745a)), closes [#91](https://github.com/geekdada/surgio/issues/91)
|
|
423
433
|
|
|
424
434
|
|
|
425
435
|
### Features
|
|
@@ -510,16 +520,16 @@
|
|
|
510
520
|
|
|
511
521
|
### Bug Fixes
|
|
512
522
|
|
|
523
|
+
* 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
|
|
513
524
|
* **command:new:** 生成 custom 类型 provider 报错 ([be83268](https://github.com/geekdada/surgio/commit/be832687b0cb1a5ceb96e6742eb451e9ed5e5903))
|
|
514
525
|
* SSR URI 中包含 ipv6 地址解析错误 ([1cd8436](https://github.com/geekdada/surgio/commit/1cd8436a6335a4f018fc96532f297502cec8ce3b))
|
|
515
|
-
* 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
|
|
516
526
|
|
|
517
527
|
|
|
518
528
|
### Features
|
|
519
529
|
|
|
530
|
+
* 生成规则前进行 eslint 检查 ([a769458](https://github.com/geekdada/surgio/commit/a769458225905b228ef8903da593ded2c42ab49d))
|
|
520
531
|
* 支持解析 ipv6 地址 ([b96489b](https://github.com/geekdada/surgio/commit/b96489b6f92daa9e87f3863fb80e97b4af225fa6))
|
|
521
532
|
* 支持转换 surge ip-cidr6 至 quantumult x ip6-cidr ([c823677](https://github.com/geekdada/surgio/commit/c82367707e21ecd6856801a0e0d1758e58338a03))
|
|
522
|
-
* 生成规则前进行 eslint 检查 ([a769458](https://github.com/geekdada/surgio/commit/a769458225905b228ef8903da593ded2c42ab49d))
|
|
523
533
|
|
|
524
534
|
|
|
525
535
|
|
|
@@ -533,11 +543,11 @@
|
|
|
533
543
|
|
|
534
544
|
### Features
|
|
535
545
|
|
|
536
|
-
*
|
|
546
|
+
* 错误信息补充 ([ef4946c](https://github.com/geekdada/surgio/commit/ef4946cac0eb9897586875118399624dbe44d8d9))
|
|
547
|
+
* 更新内置默认 UA ([640ee2c](https://github.com/geekdada/surgio/commit/640ee2cddd392a97b61b9c5511335075bdb1b0ca))
|
|
537
548
|
* 优化未设置 binPath 的错误文案 ([f6d3e89](https://github.com/geekdada/surgio/commit/f6d3e895e783788c5f8b8bcf1622220f411b3e9a))
|
|
538
549
|
* 支持从 Clash 订阅中读取 v2ray-plugin mux 信息 ([f06f279](https://github.com/geekdada/surgio/commit/f06f2793af92f2a68aca51e461cad2c6b9165f5d))
|
|
539
|
-
*
|
|
540
|
-
* 错误信息补充 ([ef4946c](https://github.com/geekdada/surgio/commit/ef4946cac0eb9897586875118399624dbe44d8d9))
|
|
550
|
+
* useProviders 和 discardProviders 增加严格模式 ([bcd9fe9](https://github.com/geekdada/surgio/commit/bcd9fe942b9814ae453f4f13103245f8bf32384c))
|
|
541
551
|
|
|
542
552
|
|
|
543
553
|
|
|
@@ -564,8 +574,8 @@
|
|
|
564
574
|
|
|
565
575
|
### Bug Fixes
|
|
566
576
|
|
|
567
|
-
* should not enable proxy on now.sh and heroku ([3713850](https://github.com/geekdada/surgio/commit/37138507c126d7b2da900c833fea2af0bf153f4d))
|
|
568
577
|
* 无法识别外部资源的 EOL ([bee0c12](https://github.com/geekdada/surgio/commit/bee0c1224781330c35a27cbfee4549d338de65d2))
|
|
578
|
+
* should not enable proxy on now.sh and heroku ([3713850](https://github.com/geekdada/surgio/commit/37138507c126d7b2da900c833fea2af0bf153f4d))
|
|
569
579
|
|
|
570
580
|
|
|
571
581
|
### Features
|
|
@@ -597,8 +607,8 @@
|
|
|
597
607
|
|
|
598
608
|
### Features
|
|
599
609
|
|
|
600
|
-
* add template method getUrl ([d02df8f](https://github.com/geekdada/surgio/commit/d02df8f2dbac0722381832944e06a11a3b0f3b40))
|
|
601
610
|
* 支持定义全局 customParams ([a8a092f](https://github.com/geekdada/surgio/commit/a8a092fc74c5fbb7fedaa3a00dbffe2f3e9e9432))
|
|
611
|
+
* add template method getUrl ([d02df8f](https://github.com/geekdada/surgio/commit/d02df8f2dbac0722381832944e06a11a3b0f3b40))
|
|
602
612
|
|
|
603
613
|
|
|
604
614
|
|
|
@@ -617,8 +627,8 @@
|
|
|
617
627
|
### Features
|
|
618
628
|
|
|
619
629
|
* `v2rayn_subscribe` 支持强制覆盖 `skipCertVerify` 和 `udpRelay` ([3a326d4](https://github.com/geekdada/surgio/commit/3a326d463f47bba6a000d299eb1dee19d790e29c))
|
|
620
|
-
* add support for quantumultx tls1.3 ([007db56](https://github.com/geekdada/surgio/commit/007db568c2a9ac7685bd0a344fa5093c22429e81))
|
|
621
630
|
* 支持从 Surge 配置中解析转换 Quantumult X 的以下几种脚本 ([066060d](https://github.com/geekdada/surgio/commit/066060d3d26b6f0172c568897fc492a77ccfcfb9))
|
|
631
|
+
* add support for quantumultx tls1.3 ([007db56](https://github.com/geekdada/surgio/commit/007db568c2a9ac7685bd0a344fa5093c22429e81))
|
|
622
632
|
|
|
623
633
|
|
|
624
634
|
|
|
@@ -650,8 +660,8 @@
|
|
|
650
660
|
|
|
651
661
|
### Features
|
|
652
662
|
|
|
653
|
-
* add a relay service for subscriptions ([4b789a8](https://github.com/geekdada/surgio/commit/4b789a89f1cf68ce978d0fecd58daaf82f4a039a))
|
|
654
663
|
* 更新模板生成工具 ([fd8eed0](https://github.com/geekdada/surgio/commit/fd8eed0b0f527698ec203f347d7bbdae397ee897))
|
|
664
|
+
* add a relay service for subscriptions ([4b789a8](https://github.com/geekdada/surgio/commit/4b789a89f1cf68ce978d0fecd58daaf82f4a039a))
|
|
655
665
|
|
|
656
666
|
|
|
657
667
|
|
|
@@ -710,9 +720,9 @@
|
|
|
710
720
|
|
|
711
721
|
### Features
|
|
712
722
|
|
|
713
|
-
* 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
|
|
714
723
|
* 支持加入自定义 trojan 节点 ([40b6714](https://github.com/geekdada/surgio/commit/40b67143fbf1f5e59cf5c4b08ef4eb62238f4678))
|
|
715
724
|
* 支持检查模板方法中无效的 filter ([9c2690b](https://github.com/geekdada/surgio/commit/9c2690b31d9266833e45c892fdad4daca6ce947e))
|
|
725
|
+
* 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
|
|
716
726
|
|
|
717
727
|
|
|
718
728
|
|
|
@@ -776,12 +786,12 @@
|
|
|
776
786
|
|
|
777
787
|
### Features
|
|
778
788
|
|
|
779
|
-
* Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
|
|
780
789
|
* 为常用 Provider 类型增加订阅流量信息接口 ([ed68cab](https://github.com/geekdada/surgio/commit/ed68cab12a5417850229acbfa564a4436577e5cb))
|
|
781
790
|
* 修改 Artifact 初始化接口 ([4c3ac84](https://github.com/geekdada/surgio/commit/4c3ac847adae2bb492fa851e53b12213a6e379c7))
|
|
782
791
|
* 增加查询流量命令 ([a94eeab](https://github.com/geekdada/surgio/commit/a94eeab89b0a0c3432af2f9796d44e700084b93c))
|
|
783
792
|
* 支持从 SSR 订阅中读取剩余流量 ([fb2e886](https://github.com/geekdada/surgio/commit/fb2e886cac5428cdfac49bd6696a68e2494c2ea1))
|
|
784
793
|
* 支持在 Artifact 初始化时传入 Environment ([75ae51f](https://github.com/geekdada/surgio/commit/75ae51f3e9fafddade282d4348cbbcb9db774d36))
|
|
794
|
+
* Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
|
|
785
795
|
|
|
786
796
|
|
|
787
797
|
|
|
@@ -790,8 +800,8 @@
|
|
|
790
800
|
|
|
791
801
|
### Bug Fixes
|
|
792
802
|
|
|
793
|
-
* external provider 的 addresses 参数只应该写 IP ([f7006d6](https://github.com/geekdada/surgio/commit/f7006d676317db5eb0b6aac66440f9a76f7d8db4))
|
|
794
803
|
* 某些情况下 v2ray 配置 port 为字符串 ([b8af4d7](https://github.com/geekdada/surgio/commit/b8af4d799d70d02c5b4361954f38625afd891973)), closes [#59](https://github.com/geekdada/surgio/issues/59)
|
|
804
|
+
* external provider 的 addresses 参数只应该写 IP ([f7006d6](https://github.com/geekdada/surgio/commit/f7006d676317db5eb0b6aac66440f9a76f7d8db4))
|
|
795
805
|
|
|
796
806
|
|
|
797
807
|
### Features
|
|
@@ -866,9 +876,9 @@
|
|
|
866
876
|
|
|
867
877
|
### Features
|
|
868
878
|
|
|
869
|
-
* useProviders, discardProviders ([e11cb75](https://github.com/geekdada/surgio/commit/e11cb75d3d58189e9dacc2c4f699e514ab1a33c1)), closes [#51](https://github.com/geekdada/surgio/issues/51)
|
|
870
879
|
* 支持 Clash 的 Provider 片段 ([5c42328](https://github.com/geekdada/surgio/commit/5c4232809e60514121c1579deaa8ce9dbd151323))
|
|
871
880
|
* 支持新的 Clash 规则配置方法 ([48b90e1](https://github.com/geekdada/surgio/commit/48b90e142dcd5c200ddd1b1e4cae8b6e97d918bb))
|
|
881
|
+
* useProviders, discardProviders ([e11cb75](https://github.com/geekdada/surgio/commit/e11cb75d3d58189e9dacc2c4f699e514ab1a33c1)), closes [#51](https://github.com/geekdada/surgio/issues/51)
|
|
872
882
|
|
|
873
883
|
|
|
874
884
|
|
|
@@ -886,18 +896,18 @@
|
|
|
886
896
|
|
|
887
897
|
### Bug Fixes
|
|
888
898
|
|
|
899
|
+
* 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
|
|
889
900
|
* broken test ([25fcde6](https://github.com/geekdada/surgio/commit/25fcde69365ca66dfcce3fe260a1c6e2d0bd57b3))
|
|
890
901
|
* LRU 缓存可能会被污染 ([929f7bd](https://github.com/geekdada/surgio/commit/929f7bd3a32adc40eb23ec782eba1ce2978569d8))
|
|
891
902
|
* Provider 组合后生成结果排序错乱 ([d051b28](https://github.com/geekdada/surgio/commit/d051b2851ff401038587baa88f0e5ddc134471bc))
|
|
892
|
-
* 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
|
|
893
903
|
|
|
894
904
|
|
|
895
905
|
### Features
|
|
896
906
|
|
|
897
|
-
* v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
|
|
898
907
|
* 域名解析失败后跳过 ([66f5af8](https://github.com/geekdada/surgio/commit/66f5af8d31416591a29e28ac8ae03d978fa50862))
|
|
899
908
|
* 支持从 Clash 订阅中读取 skipCertVerify ([c856731](https://github.com/geekdada/surgio/commit/c856731cec14246b1ced594627daa5c50a2959cd))
|
|
900
909
|
* 支持配置 Provider 缓存 ([16dc8fc](https://github.com/geekdada/surgio/commit/16dc8fce9911fee2cae2e8c12e8649d3ede44dfa))
|
|
910
|
+
* v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
|
|
901
911
|
|
|
902
912
|
|
|
903
913
|
|
|
@@ -920,9 +930,9 @@
|
|
|
920
930
|
|
|
921
931
|
### Features
|
|
922
932
|
|
|
923
|
-
* 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
|
|
924
933
|
* 更新 netflixFilter ([515cbe5](https://github.com/geekdada/surgio/commit/515cbe5a179f6a7a364dc4e0eba72f264fb82b57))
|
|
925
934
|
* 更新国旗数据库 ([18f22d2](https://github.com/geekdada/surgio/commit/18f22d213e90fc9f680323439cbe4082ea2b171b))
|
|
935
|
+
* 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
|
|
926
936
|
|
|
927
937
|
|
|
928
938
|
|
|
@@ -940,8 +950,8 @@
|
|
|
940
950
|
|
|
941
951
|
### Bug Fixes
|
|
942
952
|
|
|
943
|
-
* broken test ([794be85](https://github.com/geekdada/surgio/commit/794be85268811ab665351ab255f368bc4a6d0754))
|
|
944
953
|
* 在某些情况下 Clash 的策略组中没输出 url 和 interval ([3884014](https://github.com/geekdada/surgio/commit/3884014c2296a59de90ae5f5e4803a3609f7893d))
|
|
954
|
+
* broken test ([794be85](https://github.com/geekdada/surgio/commit/794be85268811ab665351ab255f368bc4a6d0754))
|
|
945
955
|
|
|
946
956
|
|
|
947
957
|
|
|
@@ -1058,9 +1068,9 @@
|
|
|
1058
1068
|
|
|
1059
1069
|
### Features
|
|
1060
1070
|
|
|
1071
|
+
* 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
|
|
1061
1072
|
* 优化 dns 解析 ([345790e](https://github.com/geekdada/surgio/commit/345790eecd6b2f4745b91999004d921f41b259bc))
|
|
1062
1073
|
* 在模板中输出 proxyTestUrl ([b95cd8b](https://github.com/geekdada/surgio/commit/b95cd8b157e902a920699618cf1e61d1f615fd31))
|
|
1063
|
-
* 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
|
|
1064
1074
|
|
|
1065
1075
|
|
|
1066
1076
|
|
|
@@ -1069,16 +1079,16 @@
|
|
|
1069
1079
|
|
|
1070
1080
|
### Bug Fixes
|
|
1071
1081
|
|
|
1072
|
-
* 某些情况下 clash 配置没有输出 interval 和 url ([1978429](https://github.com/geekdada/surgio/commit/197842956a96fd35b91afd77cf358c1697ac7097))
|
|
1073
1082
|
* 空文件不会返回 404 ([271c398](https://github.com/geekdada/surgio/commit/271c398df29e8e3da2f4f22d6aa2d78aa49f122c))
|
|
1083
|
+
* 某些情况下 clash 配置没有输出 interval 和 url ([1978429](https://github.com/geekdada/surgio/commit/197842956a96fd35b91afd77cf358c1697ac7097))
|
|
1074
1084
|
|
|
1075
1085
|
|
|
1076
1086
|
### Features
|
|
1077
1087
|
|
|
1078
|
-
* nodeFilter 也支持过滤排序 ([6dd7f66](https://github.com/geekdada/surgio/commit/6dd7f665d26ad427f026786d5add8c578084f816))
|
|
1079
1088
|
* 增加规则过滤关键词 ([128f648](https://github.com/geekdada/surgio/commit/128f64835ccde09b4b0dda54e4075dc0218fbc10))
|
|
1080
|
-
* 支持在输出 external 时解析域名 ([1f78f44](https://github.com/geekdada/surgio/commit/1f78f44dde2949e384184d8fa59f566a45ed2d64))
|
|
1081
1089
|
* 支持排序类型的过滤器 ([db69447](https://github.com/geekdada/surgio/commit/db694473b1b88e44811971fbc0cd8761d0fcf4e3))
|
|
1090
|
+
* 支持在输出 external 时解析域名 ([1f78f44](https://github.com/geekdada/surgio/commit/1f78f44dde2949e384184d8fa59f566a45ed2d64))
|
|
1091
|
+
* nodeFilter 也支持过滤排序 ([6dd7f66](https://github.com/geekdada/surgio/commit/6dd7f665d26ad427f026786d5add8c578084f816))
|
|
1082
1092
|
|
|
1083
1093
|
|
|
1084
1094
|
|
|
@@ -1096,8 +1106,8 @@
|
|
|
1096
1106
|
|
|
1097
1107
|
### Features
|
|
1098
1108
|
|
|
1099
|
-
* Provider 处理改为并发 ([8bf2738](https://github.com/geekdada/surgio/commit/8bf2738f14f9d30b9bfbf6999fbbdf91a5993469))
|
|
1100
1109
|
* 优化远程片段获取的并发请求 ([7552fa0](https://github.com/geekdada/surgio/commit/7552fa05b073871aa6a50472f2386bfa4fa9421d))
|
|
1110
|
+
* Provider 处理改为并发 ([8bf2738](https://github.com/geekdada/surgio/commit/8bf2738f14f9d30b9bfbf6999fbbdf91a5993469))
|
|
1101
1111
|
|
|
1102
1112
|
|
|
1103
1113
|
|
|
@@ -1115,8 +1125,8 @@
|
|
|
1115
1125
|
|
|
1116
1126
|
### Bug Fixes
|
|
1117
1127
|
|
|
1118
|
-
* Close [#35](https://github.com/geekdada/surgio/issues/35) ([491b655](https://github.com/geekdada/surgio/commit/491b655bc8061ed120ab119bd5e4ac57859ea095))
|
|
1119
1128
|
* 由于 mellow 对 shadowsocks 支持有限,忽略该类型节点 ([8ae0561](https://github.com/geekdada/surgio/commit/8ae056194b938014eee4c0bebfb38ecf3de7cb10))
|
|
1129
|
+
* Close [#35](https://github.com/geekdada/surgio/issues/35) ([491b655](https://github.com/geekdada/surgio/commit/491b655bc8061ed120ab119bd5e4ac57859ea095))
|
|
1120
1130
|
|
|
1121
1131
|
|
|
1122
1132
|
### Features
|
|
@@ -1125,8 +1135,8 @@
|
|
|
1125
1135
|
* 增加 mellow 规则处理方法 ([b646199](https://github.com/geekdada/surgio/commit/b646199507d7558bd00daa89f4877501391e2605))
|
|
1126
1136
|
* 支持 Clash 的 'fallback-auto', 'load-balance' 策略 ([18f106f](https://github.com/geekdada/surgio/commit/18f106fee8c94c01bbf8a4a34fadfcd9557fdd2b)), closes [#34](https://github.com/geekdada/surgio/issues/34)
|
|
1127
1137
|
* 支持单独定义某个 artifact 的输出目录 ([bef00c7](https://github.com/geekdada/surgio/commit/bef00c7d9894476c695229a6e96f1d3f47fd91b1))
|
|
1128
|
-
* 支持在 surgio.conf.js 中定义全局 customFilters ([1701b85](https://github.com/geekdada/surgio/commit/1701b85d68e487b52fb529243d8826ee4b5a99a8))
|
|
1129
1138
|
* 支持导出 Mellow 节点 ([9a72ca2](https://github.com/geekdada/surgio/commit/9a72ca2ac7b9b59ee3c1b61180fd8fe915330ad8))
|
|
1139
|
+
* 支持在 surgio.conf.js 中定义全局 customFilters ([1701b85](https://github.com/geekdada/surgio/commit/1701b85d68e487b52fb529243d8826ee4b5a99a8))
|
|
1130
1140
|
|
|
1131
1141
|
|
|
1132
1142
|
|
|
@@ -1163,8 +1173,8 @@
|
|
|
1163
1173
|
|
|
1164
1174
|
### Features
|
|
1165
1175
|
|
|
1166
|
-
* check command ([2db635f](https://github.com/geekdada/surgio/commit/2db635ff91cd786daa6852abdd82896ab213f3ab))
|
|
1167
1176
|
* 面板增加添加 Clash 的按钮 ([b66e5f3](https://github.com/geekdada/surgio/commit/b66e5f31dae975ccac83742666ea7385a6e023e0))
|
|
1177
|
+
* check command ([2db635f](https://github.com/geekdada/surgio/commit/2db635ff91cd786daa6852abdd82896ab213f3ab))
|
|
1168
1178
|
|
|
1169
1179
|
|
|
1170
1180
|
|
|
@@ -1173,8 +1183,8 @@
|
|
|
1173
1183
|
|
|
1174
1184
|
### Features
|
|
1175
1185
|
|
|
1176
|
-
* youtubePremiumFilter 增加新加坡 ([7b32873](https://github.com/geekdada/surgio/commit/7b32873ff906156208ae7a03ea8002534a794c57))
|
|
1177
1186
|
* youtubePremiumFilter 增加香港 ([821bf3c](https://github.com/geekdada/surgio/commit/821bf3c653767490bf093e0980be091b28f3501d))
|
|
1187
|
+
* youtubePremiumFilter 增加新加坡 ([7b32873](https://github.com/geekdada/surgio/commit/7b32873ff906156208ae7a03ea8002534a794c57))
|
|
1178
1188
|
|
|
1179
1189
|
|
|
1180
1190
|
|
|
@@ -1210,10 +1220,10 @@
|
|
|
1210
1220
|
|
|
1211
1221
|
### Features
|
|
1212
1222
|
|
|
1213
|
-
*
|
|
1223
|
+
* 节点增加 tfo 参数 ([a820b89](https://github.com/geekdada/surgio/commit/a820b89590ac3379ccf109539000783b0d7b803a))
|
|
1214
1224
|
* 仅支持读取 ws 和 tcp 类型的 vmess 节点 ([de5bb35](https://github.com/geekdada/surgio/commit/de5bb35fcc3b4b4e6bb1bb12a6cc6f53bd6de2c8))
|
|
1215
1225
|
* 新增 getQuantumultXNodes ([d284d04](https://github.com/geekdada/surgio/commit/d284d0415e9524dffebd73d6085d1e11ceef3621))
|
|
1216
|
-
*
|
|
1226
|
+
* udp-relay 的值改为布尔类型,兼容字符串类型 ([f3eaaed](https://github.com/geekdada/surgio/commit/f3eaaed03727de525e12a454a8a966fd923f8d89))
|
|
1217
1227
|
|
|
1218
1228
|
|
|
1219
1229
|
|
|
@@ -1231,18 +1241,18 @@
|
|
|
1231
1241
|
|
|
1232
1242
|
### Bug Fixes
|
|
1233
1243
|
|
|
1234
|
-
* protoparam 和 obfsparam 中不能有空格 ([6cdb978](https://github.com/geekdada/surgio/commit/6cdb97880913a594115a59d49bfebcf90c555f7f))
|
|
1235
1244
|
* 加国旗正确识别中转节点了 ([3751dbf](https://github.com/geekdada/surgio/commit/3751dbf0f7f0d8619cfa28b2ec2cc8c24c4494a7))
|
|
1245
|
+
* protoparam 和 obfsparam 中不能有空格 ([6cdb978](https://github.com/geekdada/surgio/commit/6cdb97880913a594115a59d49bfebcf90c555f7f))
|
|
1236
1246
|
|
|
1237
1247
|
|
|
1238
1248
|
### Features
|
|
1239
1249
|
|
|
1240
|
-
* proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
|
|
1241
1250
|
* 不合法 yaml 文件识别 ([1654534](https://github.com/geekdada/surgio/commit/16545347613026a57bac46eb286e52f894384c11))
|
|
1242
|
-
* 允许用户覆盖 clash 订阅的 udp 转发支持 ([bb58c50](https://github.com/geekdada/surgio/commit/bb58c50aa5334ea9ce1ee4c323aa531dcbb32e79))
|
|
1243
1251
|
* 兼容v2rayn 订阅格式 ([8ba4625](https://github.com/geekdada/surgio/commit/8ba4625955bfb068028303a56148ac20e109e6e3))
|
|
1252
|
+
* 允许用户覆盖 clash 订阅的 udp 转发支持 ([bb58c50](https://github.com/geekdada/surgio/commit/bb58c50aa5334ea9ce1ee4c323aa531dcbb32e79))
|
|
1244
1253
|
* 增加 netflixFilter 规则 ([5cc52f1](https://github.com/geekdada/surgio/commit/5cc52f1c237b9c4fcf2dee56ea3c0caaf82695ad))
|
|
1245
1254
|
* 支持读取 Clash 订阅 ([45ef59f](https://github.com/geekdada/surgio/commit/45ef59f359e21e37f5dac242a33888c74ec1afbc))
|
|
1255
|
+
* proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
|
|
1246
1256
|
|
|
1247
1257
|
|
|
1248
1258
|
|
|
@@ -1251,10 +1261,10 @@
|
|
|
1251
1261
|
|
|
1252
1262
|
### Features
|
|
1253
1263
|
|
|
1264
|
+
* 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
|
|
1254
1265
|
* better error message ([26fcaa3](https://github.com/geekdada/surgio/commit/26fcaa3310046fbd886cff2370a8bf31be96dcca))
|
|
1255
1266
|
* gateway request log ([891168b](https://github.com/geekdada/surgio/commit/891168b6a702a0440b5d0475a25d11345d594f52))
|
|
1256
1267
|
* quick editing from list-artifact ([2d1d605](https://github.com/geekdada/surgio/commit/2d1d605fe5dd36332a8f04476d397cb7a14b6684))
|
|
1257
|
-
* 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
|
|
1258
1268
|
|
|
1259
1269
|
|
|
1260
1270
|
|
|
@@ -1318,10 +1328,10 @@
|
|
|
1318
1328
|
|
|
1319
1329
|
### Features
|
|
1320
1330
|
|
|
1331
|
+
* 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
|
|
1321
1332
|
* getNodeNames 和 getClashNodeNames 不再过滤 nodeType ([6571511](https://github.com/geekdada/surgio/commit/6571511f3d30aa3a283a69b81afb9aa548031b18))
|
|
1322
1333
|
* schema validation for config ([9f11254](https://github.com/geekdada/surgio/commit/9f11254d2bc7107e2299e1146553b03da1e9849f))
|
|
1323
1334
|
* schema validation for provider ([d738e0f](https://github.com/geekdada/surgio/commit/d738e0f999c91f577deb14793889210620757f36))
|
|
1324
|
-
* 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
|
|
1325
1335
|
|
|
1326
1336
|
|
|
1327
1337
|
|
|
@@ -1438,8 +1448,8 @@
|
|
|
1438
1448
|
|
|
1439
1449
|
### Features
|
|
1440
1450
|
|
|
1441
|
-
* 增加了 Flag 识别字段 ([86c1489](https://github.com/geekdada/surgio/commit/86c14898001ab54b6a5387bf533c34d5917b4cbb))
|
|
1442
1451
|
* 增加错误文案方便调试 ([ff28793](https://github.com/geekdada/surgio/commit/ff287933e17cb0f7d8f9b7d4a454124420e7610c))
|
|
1452
|
+
* 增加了 Flag 识别字段 ([86c1489](https://github.com/geekdada/surgio/commit/86c14898001ab54b6a5387bf533c34d5917b4cbb))
|
|
1443
1453
|
|
|
1444
1454
|
|
|
1445
1455
|
|
|
@@ -1448,8 +1458,8 @@
|
|
|
1448
1458
|
|
|
1449
1459
|
### Bug Fixes
|
|
1450
1460
|
|
|
1451
|
-
* SSR URI 识别问题 ([46184fb](https://github.com/geekdada/surgio/commit/46184fbfdcd1583658db157123902862881413f5))
|
|
1452
1461
|
* 不需要 sort ([51f560f](https://github.com/geekdada/surgio/commit/51f560fc86b24c1b4319a83637c90e5449023520))
|
|
1462
|
+
* SSR URI 识别问题 ([46184fb](https://github.com/geekdada/surgio/commit/46184fbfdcd1583658db157123902862881413f5))
|
|
1453
1463
|
|
|
1454
1464
|
|
|
1455
1465
|
|
|
@@ -1458,9 +1468,9 @@
|
|
|
1458
1468
|
|
|
1459
1469
|
### Bug Fixes
|
|
1460
1470
|
|
|
1461
|
-
* clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
|
|
1462
1471
|
* 不手动指定不使用代理 ([d89198a](https://github.com/geekdada/surgio/commit/d89198a23cff4fe345f5597ab507b8680ac34b54))
|
|
1463
1472
|
* 文件名在 win 上取值错误 ([310518b](https://github.com/geekdada/surgio/commit/310518bd7cc37c2110dbcb50bdb1d5571bdb68cc))
|
|
1473
|
+
* clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
|
|
1464
1474
|
|
|
1465
1475
|
|
|
1466
1476
|
|
|
@@ -1478,8 +1488,8 @@
|
|
|
1478
1488
|
|
|
1479
1489
|
### Features
|
|
1480
1490
|
|
|
1481
|
-
* add support for clashr ([43c4862](https://github.com/geekdada/surgio/commit/43c486277bdff42999f18a71a4627585461e4762))
|
|
1482
1491
|
* 远程片段支持读取原始内容 ([a1f9e0f](https://github.com/geekdada/surgio/commit/a1f9e0ff7f55b33f98934619a2e90c33ba0c8d20))
|
|
1492
|
+
* add support for clashr ([43c4862](https://github.com/geekdada/surgio/commit/43c486277bdff42999f18a71a4627585461e4762))
|
|
1483
1493
|
|
|
1484
1494
|
|
|
1485
1495
|
|
|
@@ -1493,10 +1503,10 @@
|
|
|
1493
1503
|
|
|
1494
1504
|
### Features
|
|
1495
1505
|
|
|
1506
|
+
* 节点名补充国旗 Emoji ([dc1f34e](https://github.com/geekdada/surgio/commit/dc1f34e3616e924acc2773dc7024a5e968981d53))
|
|
1507
|
+
* 增加国别判断字段 ([ce6828c](https://github.com/geekdada/surgio/commit/ce6828cdf80bd433d55ad788fac1529ef9b32fc6))
|
|
1496
1508
|
* add error message ([69b6bff](https://github.com/geekdada/surgio/commit/69b6bfffdca29c1d01cc77cf63730a12f7390822))
|
|
1497
1509
|
* custom filters ([d5ee8bc](https://github.com/geekdada/surgio/commit/d5ee8bc6b0066eb0d30699191fdcae6262bd4f1a))
|
|
1498
|
-
* 增加国别判断字段 ([ce6828c](https://github.com/geekdada/surgio/commit/ce6828cdf80bd433d55ad788fac1529ef9b32fc6))
|
|
1499
|
-
* 节点名补充国旗 Emoji ([dc1f34e](https://github.com/geekdada/surgio/commit/dc1f34e3616e924acc2773dc7024a5e968981d53))
|
|
1500
1510
|
|
|
1501
1511
|
|
|
1502
1512
|
|
|
@@ -1599,12 +1609,12 @@
|
|
|
1599
1609
|
|
|
1600
1610
|
### Features
|
|
1601
1611
|
|
|
1612
|
+
* 生成 quan 订阅 scheme ([afe0a21](https://github.com/geekdada/surgio/commit/afe0a2120b0eeb048deab09c24964d7bd3e14a60))
|
|
1613
|
+
* 生成 v2rayn scheme ([981e6d7](https://github.com/geekdada/surgio/commit/981e6d77517771da9510cc79c7e0cd8c7276d119))
|
|
1614
|
+
* 支持导出 Quantumult 的 HTTPS, Shadowsocksr 节点 ([dd728e0](https://github.com/geekdada/surgio/commit/dd728e02345669751b31227327abb20034dc5554))
|
|
1602
1615
|
* add shadowsocks subscribe support ([e993d1b](https://github.com/geekdada/surgio/commit/e993d1bfa1ab4a50464ca37f647e22cd7c0bee68))
|
|
1603
1616
|
* add v2rayn subscribe support ([067ad43](https://github.com/geekdada/surgio/commit/067ad4318b456f5ceaf47ad78b79d206544da72e))
|
|
1604
1617
|
* clash 输出 vmess ([05cc557](https://github.com/geekdada/surgio/commit/05cc5570762d34a3465e71d14fbf78e8a30a1f34))
|
|
1605
|
-
* 支持导出 Quantumult 的 HTTPS, Shadowsocksr 节点 ([dd728e0](https://github.com/geekdada/surgio/commit/dd728e02345669751b31227327abb20034dc5554))
|
|
1606
|
-
* 生成 quan 订阅 scheme ([afe0a21](https://github.com/geekdada/surgio/commit/afe0a2120b0eeb048deab09c24964d7bd3e14a60))
|
|
1607
|
-
* 生成 v2rayn scheme ([981e6d7](https://github.com/geekdada/surgio/commit/981e6d77517771da9510cc79c7e0cd8c7276d119))
|
|
1608
1618
|
|
|
1609
1619
|
|
|
1610
1620
|
|
|
@@ -1613,8 +1623,8 @@
|
|
|
1613
1623
|
|
|
1614
1624
|
### Features
|
|
1615
1625
|
|
|
1616
|
-
* remote rule set ([a820cdb](https://github.com/geekdada/surgio/commit/a820cdb192daeb1f0a321e75ed447290b4e4207a)), closes [#5](https://github.com/geekdada/surgio/issues/5)
|
|
1617
1626
|
* 初始化配置时使用 defaultsDeep ([ab8f695](https://github.com/geekdada/surgio/commit/ab8f695a79bbf92248a193805032c81fc2e31434))
|
|
1627
|
+
* remote rule set ([a820cdb](https://github.com/geekdada/surgio/commit/a820cdb192daeb1f0a321e75ed447290b4e4207a)), closes [#5](https://github.com/geekdada/surgio/issues/5)
|
|
1618
1628
|
|
|
1619
1629
|
|
|
1620
1630
|
|
|
@@ -1629,8 +1639,8 @@
|
|
|
1629
1639
|
|
|
1630
1640
|
### Features
|
|
1631
1641
|
|
|
1632
|
-
* add cli update support ([2f2d340](https://github.com/geekdada/surgio/commit/2f2d340b0c4f65a1a601f62c2986c5384af6fd76))
|
|
1633
1642
|
* 模板 base64 filter ([3d45a23](https://github.com/geekdada/surgio/commit/3d45a23102cf642495e0920c91f2ed94de27a4e2))
|
|
1643
|
+
* add cli update support ([2f2d340](https://github.com/geekdada/surgio/commit/2f2d340b0c4f65a1a601f62c2986c5384af6fd76))
|
|
1634
1644
|
|
|
1635
1645
|
|
|
1636
1646
|
|
|
@@ -1644,8 +1654,8 @@
|
|
|
1644
1654
|
|
|
1645
1655
|
### Features
|
|
1646
1656
|
|
|
1647
|
-
* 在模板中暴露 nodeList 变量 ([c2eeb29](https://github.com/geekdada/surgio/commit/c2eeb295ff2ca7dc0407a2b67f8d1332aa26be60))
|
|
1648
1657
|
* 属性判空 ([13eb455](https://github.com/geekdada/surgio/commit/13eb455d3258f0067a244117a50688817bdb1433))
|
|
1658
|
+
* 在模板中暴露 nodeList 变量 ([c2eeb29](https://github.com/geekdada/surgio/commit/c2eeb295ff2ca7dc0407a2b67f8d1332aa26be60))
|
|
1649
1659
|
* 支持从 gui-config.json 中解析混淆配置 ([bc135a7](https://github.com/geekdada/surgio/commit/bc135a78c8eb0572ebc67b17ab9d7c6a9b4acf22))
|
|
1650
1660
|
|
|
1651
1661
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
![Nodejs][nodejs-version]
|
|
10
10
|
![Github Actions][github-actions-image]
|
|
11
11
|
[![Test coverage][codecov-image]][codecov-url]
|
|
12
|
-
[![David deps][david-image]][david-url]
|
|
13
12
|
[![Known Vulnerabilities][snyk-image]][snyk-url]
|
|
14
13
|
[![npm download][download-image]][download-url]
|
|
15
14
|
[](https://packagephobia.now.sh/result?p=surgio)
|
|
@@ -18,15 +17,13 @@
|
|
|
18
17
|
[npm-url]: https://npmjs.org/package/surgio
|
|
19
18
|
[codecov-image]: https://codecov.io/gh/surgioproject/surgio/branch/master/graph/badge.svg
|
|
20
19
|
[codecov-url]: https://codecov.io/gh/surgioproject/surgio
|
|
21
|
-
[david-image]: https://img.shields.io/david/surgioproject/surgio.svg?style=flat-square
|
|
22
|
-
[david-url]: https://david-dm.org/surgioproject/surgio
|
|
23
20
|
[snyk-image]: https://snyk.io/test/npm/surgio/badge.svg?style=flat-square
|
|
24
21
|
[snyk-url]: https://snyk.io/test/npm/surgio
|
|
25
22
|
[download-image]: https://img.shields.io/npm/dm/surgio.svg?style=flat-square
|
|
26
23
|
[download-url]: https://npmjs.org/package/surgio
|
|
27
24
|
[github-actions-image]: https://github.com/surgioproject/surgio/workflows/Node%20CI/badge.svg
|
|
28
|
-
[taonpm-image]: https://
|
|
29
|
-
[taonpm-url]: https://
|
|
25
|
+
[taonpm-image]: https://npmmirror.com/badge/v/surgio.svg
|
|
26
|
+
[taonpm-url]: https://npmmirror.com/package/surgio
|
|
30
27
|
[nodejs-version]: https://img.shields.io/node/v/surgio
|
|
31
28
|
|
|
32
29
|
## 文档
|
|
@@ -43,7 +43,7 @@ class GenerateCommand extends common_bin_1.default {
|
|
|
43
43
|
if (!ctx.argv.skipLint) {
|
|
44
44
|
const result = await (0, linter_1.checkAndFix)(ctx.cwd);
|
|
45
45
|
if (!result) {
|
|
46
|
-
throw new Error('JS 语法检查不通过,请根据提示修改文件(参考
|
|
46
|
+
throw new Error('JS 语法检查不通过,请根据提示修改文件(参考 https://url.royli.dev/SeB6m)');
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
const config = (0, config_1.loadConfig)(ctx.cwd, ctx.argv.config, Object.assign({}, (ctx.argv.output
|
|
@@ -63,4 +63,4 @@ class GenerateCommand extends common_bin_1.default {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
module.exports = GenerateCommand;
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvY29tbWFuZC9nZW5lcmF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsNERBQWlDO0FBQ2pDLGdEQUF3QjtBQUV4Qiw0Q0FBNkM7QUFDN0MsMkRBQW1DO0FBQ25DLHdEQUFxRDtBQUNyRCw0Q0FBOEM7QUFFOUMsTUFBTSxlQUFnQixTQUFRLG9CQUFPO0lBQ25DLFlBQVksT0FBa0I7UUFDNUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ2YsSUFBSSxDQUFDLEtBQUssR0FBRyx1QkFBdUIsQ0FBQztRQUNyQyxJQUFJLENBQUMsT0FBTyxHQUFHO1lBQ2IsQ0FBQyxFQUFFO2dCQUNELElBQUksRUFBRSxRQUFRO2dCQUNkLEtBQUssRUFBRSxRQUFRO2dCQUNmLFdBQVcsRUFBRSxTQUFTO2FBQ3ZCO1lBQ0QsQ0FBQyxFQUFFO2dCQUNELEtBQUssRUFBRSxRQUFRO2dCQUNmLE9BQU8sRUFBRSxrQkFBa0I7YUFDNUI7WUFDRCxlQUFlLEVBQUU7Z0JBQ2YsSUFBSSxFQUFFLFNBQVM7Z0JBQ2YsT0FBTyxFQUFFLEtBQUs7Z0JBQ2QsV0FBVyxFQUFFLFFBQVE7YUFDdEI7WUFDRCxXQUFXLEVBQUU7Z0JBQ1gsSUFBSSxFQUFFLFNBQVM7Z0JBQ2YsT0FBTyxFQUFFLEtBQUs7Z0JBQ2QsV0FBVyxFQUFFLGtCQUFrQjthQUNoQztZQUNELFdBQVcsRUFBRTtnQkFDWCxJQUFJLEVBQUUsU0FBUztnQkFDZixPQUFPLEVBQUUsS0FBSztnQkFDZCxXQUFXLEVBQUUsUUFBUTthQUN0QjtTQUNGLENBQUM7SUFDSixDQUFDO0lBRU0sS0FBSyxDQUFDLEdBQUcsQ0FBQyxHQUFHO1FBQ2xCLElBQUksQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRTtZQUN0QixNQUFNLE1BQU0sR0FBRyxNQUFNLElBQUEsb0JBQVcsRUFBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7WUFFMUMsSUFBSSxDQUFDLE1BQU0sRUFBRTtnQkFDWCxNQUFNLElBQUksS0FBSyxDQUNiLHNEQUFzRCxDQUN2RCxDQUFDO2FBQ0g7U0FDRjtRQUVELE1BQU0sTUFBTSxHQUFHLElBQUEsbUJBQVUsRUFBQyxHQUFHLENBQUMsR0FBRyxFQUFFLEdBQUcsQ0FBQyxJQUFJLENBQUMsTUFBTSxvQkFFN0MsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLE1BQU07WUFDakIsQ0FBQyxDQUFDO2dCQUNFLE1BQU0sRUFBRSxjQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsR0FBRyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUM7YUFDL0M7WUFDSCxDQUFDLENBQUMsSUFBSSxDQUFDLEVBQ1QsQ0FBQztRQUVILE1BQU0sSUFBQSxrQkFBUSxFQUFDLE1BQU0sRUFBRSxHQUFHLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxHQUFHLENBQUMsSUFBSSxDQUFDLFlBQVksQ0FBQyxDQUFDO0lBQ25FLENBQUM7SUFFRCx1QkFBdUI7SUFDdkIsSUFBVyxXQUFXO1FBQ3BCLE9BQU8sTUFBTSxDQUFDO0lBQ2hCLENBQUM7SUFFRCx1QkFBdUI7SUFDaEIsWUFBWSxDQUFDLEdBQUc7UUFDckIsMkJBQVksQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLEdBQUcsQ0FBQyxDQUFDO0lBQy9CLENBQUM7Q0FDRjtBQUVELGlCQUFTLGVBQWUsQ0FBQyJ9
|
package/build/command/lint.js
CHANGED
|
@@ -30,7 +30,7 @@ class LintCommand extends common_bin_1.default {
|
|
|
30
30
|
result = await (0, linter_1.check)(ctx.cwd);
|
|
31
31
|
}
|
|
32
32
|
if (!result) {
|
|
33
|
-
console.warn('⚠️ JS 语法检查不通过,请根据提示修改文件(可添加参数 --fix 自动修复部分错误, 参考
|
|
33
|
+
console.warn('⚠️ JS 语法检查不通过,请根据提示修改文件(可添加参数 --fix 自动修复部分错误, 参考 https://url.royli.dev/SeB6m)');
|
|
34
34
|
process.exit(1);
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
@@ -39,4 +39,4 @@ class LintCommand extends common_bin_1.default {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
module.exports = LintCommand;
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGludC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9jb21tYW5kL2xpbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHVCQUF1QjtBQUN2Qiw0REFBaUM7QUFDakMsNENBQXFEO0FBRXJELE1BQU0sV0FBWSxTQUFRLG9CQUFPO0lBQy9CLFlBQVksT0FBa0I7UUFDNUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ2YsSUFBSSxDQUFDLEtBQUssR0FBRywyQkFBMkIsQ0FBQztRQUN6QyxJQUFJLENBQUMsT0FBTyxHQUFHO1lBQ2IsR0FBRyxFQUFFO2dCQUNILE9BQU8sRUFBRSxLQUFLO2dCQUNkLFFBQVEsRUFBRSxnQkFBZ0I7Z0JBQzFCLElBQUksRUFBRSxTQUFTO2FBQ2hCO1NBQ0YsQ0FBQztJQUNKLENBQUM7SUFFRCx1QkFBdUI7SUFDdkIsSUFBVyxXQUFXO1FBQ3BCLE9BQU8sWUFBWSxDQUFDO0lBQ3RCLENBQUM7SUFFTSxLQUFLLENBQUMsR0FBRyxDQUFDLEdBQUc7UUFDbEIsSUFBSSxNQUFNLENBQUM7UUFFWCxJQUFJLEdBQUcsQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFO1lBQ2hCLE1BQU0sR0FBRyxNQUFNLElBQUEsb0JBQVcsRUFBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7U0FDckM7YUFBTTtZQUNMLE1BQU0sR0FBRyxNQUFNLElBQUEsY0FBSyxFQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztTQUMvQjtRQUVELElBQUksQ0FBQyxNQUFNLEVBQUU7WUFDWCxPQUFPLENBQUMsSUFBSSxDQUNWLGdGQUFnRixDQUNqRixDQUFDO1lBQ0YsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUNqQjthQUFNO1lBQ0wsT0FBTyxDQUFDLEdBQUcsQ0FBQyxjQUFjLENBQUMsQ0FBQztTQUM3QjtJQUNILENBQUM7Q0FDRjtBQUVELGlCQUFTLFdBQVcsQ0FBQyJ9
|
package/build/constant/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -13,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
17
|
__exportStar(require("./env"), exports);
|
|
14
18
|
__exportStar(require("./error"), exports);
|
|
15
19
|
__exportStar(require("./constant"), exports);
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvY29uc3RhbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHdDQUFzQjtBQUN0QiwwQ0FBd0I7QUFDeEIsNkNBQTJCIn0=
|
package/build/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const utils: {
|
|
|
16
16
|
SortFilterWithSortedFilters: typeof filter.SortFilterWithSortedFilters;
|
|
17
17
|
SortFilterWithSortedKeywords: typeof filter.SortFilterWithSortedKeywords;
|
|
18
18
|
validateFilter: (filter: any) => boolean;
|
|
19
|
+
applyFilter: <T extends import("./types").SimpleNodeConfig>(nodeList: readonly T[], filter?: import("./types").SortedNodeNameFilterType | import("./types").NodeNameFilterType | undefined) => readonly T[];
|
|
19
20
|
mergeFilters: (filters: readonly import("./types").NodeNameFilterType[], isStrict?: boolean | undefined) => import("./types").NodeNameFilterType;
|
|
20
21
|
useKeywords: (keywords: readonly string[], isStrict?: boolean | undefined) => import("./types").NodeNameFilterType;
|
|
21
22
|
discardKeywords: (keywords: readonly string[], isStrict?: boolean | undefined) => import("./types").NodeNameFilterType;
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -83,4 +87,4 @@ exports.utils = Object.assign(Object.assign({}, filter), { isHeroku: utils_1.isH
|
|
|
83
87
|
isGitHubActions: utils_1.isGitHubActions,
|
|
84
88
|
isGitLabCI: utils_1.isGitLabCI });
|
|
85
89
|
exports.categories = Object.assign({}, constant_1.CATEGORIES);
|
|
86
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
90
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx1Q0FBcUM7QUFDckMsK0JBQTZCO0FBRTdCLCtDQUF5QztBQUN6Qyw0REFBaUM7QUFDakMsd0RBQTBCO0FBQzFCLGdEQUF3QjtBQUN4QiwrQkFBcUM7QUFFckMsc0VBQTZDO0FBQzdDLDJDQUE0QztBQUU1QyxtQ0FNaUI7QUFDakIsdURBQXlDO0FBQ3pDLHVEQUFvRDtBQUNwRCx5Q0FBd0M7QUFFeEMsdUJBQXVCO0FBQ3ZCLElBQ0UsQ0FBQyxJQUFBLGFBQUssR0FBRTtJQUNSLENBQUMsSUFBQSxnQkFBUSxHQUFFO0lBQ1gsQ0FBQyxJQUFBLHVCQUFlLEdBQUU7SUFDbEIsQ0FBQyxJQUFBLGtCQUFVLEdBQUU7SUFDYixDQUFDLElBQUEsaUJBQVMsR0FBRSxFQUNaO0lBQ0EsZUFBZTtJQUNmLElBQUEsd0JBQVMsR0FBRSxDQUFDO0NBQ2I7QUFFRCxNQUFNLE9BQU8sR0FBRyxJQUFBLGNBQU8sRUFBQyxPQUFPLENBQUMsR0FBRyxFQUFFLEVBQUUsUUFBUSxDQUFDLENBQUM7QUFDakQsTUFBTSxHQUFHLEdBQUcsa0JBQUUsQ0FBQyxZQUFZLENBQUMsSUFBQSxXQUFJLEVBQUMsU0FBUyxFQUFFLGlCQUFpQixDQUFDLENBQWdCLENBQUM7QUFtRHRFLGtCQUFHO0FBakRaLE1BQWEsYUFBYyxTQUFRLG9CQUFPO0lBQ3hDLFlBQVksT0FBa0I7UUFDNUIsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBRWYsdUJBQXVCO1FBQ3ZCLElBQUksa0JBQUUsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEVBQUU7WUFDMUIsSUFBQSxjQUFJLEVBQUMsT0FBTyxDQUFDLENBQUM7U0FDZjtRQUVELElBQUEseUJBQWMsRUFBQyxFQUFFLEdBQUcsRUFBRSxPQUFPLENBQUMsaUJBQWlCLENBQUMsRUFBRSxDQUFDLENBQUMsTUFBTSxFQUFFLENBQUM7UUFFN0QsSUFBSSxDQUFDLEtBQUssR0FBRyxrQ0FBa0MsQ0FBQztRQUVoRCxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUEsV0FBSSxFQUFDLFNBQVMsRUFBRSxXQUFXLENBQUMsQ0FBQyxDQUFDO1FBRXhDLElBQUksQ0FBQyxPQUFPLEdBQUc7WUFDYixDQUFDLEVBQUU7Z0JBQ0QsS0FBSyxFQUFFLFNBQVM7Z0JBQ2hCLFlBQVksRUFBRSxLQUFLO2dCQUNuQixRQUFRLEVBQUUsUUFBUTtnQkFDbEIsSUFBSSxFQUFFLFNBQVM7YUFDaEI7U0FDRixDQUFDO1FBQ0YsbURBQW1EO1FBQ25ELElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBRXZCLHVCQUF1QjtRQUN2QixJQUFJLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRTtZQUMzQixtQkFBVSxDQUFDLE9BQU8sQ0FBQyxLQUFLLEdBQUcsT0FBTyxDQUFDO1NBQ3BDO0lBQ0gsQ0FBQztJQUVNLFlBQVksQ0FBQyxHQUFHO1FBQ3JCLDJCQUFZLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxHQUFHLENBQUMsQ0FBQztJQUMvQixDQUFDO0NBQ0Y7QUFuQ0Qsc0NBbUNDO0FBRVksUUFBQSxLQUFLLG1DQUNiLE1BQU0sS0FDVCxRQUFRLEVBQVIsZ0JBQVE7SUFDUixLQUFLLEVBQUwsYUFBSztJQUNMLGVBQWUsRUFBZix1QkFBZTtJQUNmLFVBQVUsRUFBVixrQkFBVSxJQUNWO0FBRVcsUUFBQSxVQUFVLHFCQUNsQixxQkFBVSxFQUNiIn0=
|