surgio 2.14.0 → 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 +78 -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/config.js +2 -2
- 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 -506
- 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 +54 -53
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
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
|
+
|
|
11
|
+
## [2.14.2](https://github.com/geekdada/surgio/compare/v2.14.1...v2.14.2) (2022-01-13)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* encrypt-method=auto in Surge config ([4693bd4](https://github.com/geekdada/surgio/commit/4693bd4319bb6a0de172c0f9c4859f79792b915a))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [2.14.1](https://github.com/geekdada/surgio/compare/v2.14.0...v2.14.1) (2022-01-12)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* re-enable Vmess AEAD on Surge ([602d999](https://github.com/geekdada/surgio/commit/602d9997cd3548631527631d8502f16a131c40dd))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
1
29
|
# [2.14.0](https://github.com/geekdada/surgio/compare/v2.13.1...v2.14.0) (2022-01-11)
|
|
2
30
|
|
|
3
31
|
|
|
@@ -133,8 +161,8 @@
|
|
|
133
161
|
|
|
134
162
|
### Features
|
|
135
163
|
|
|
136
|
-
* 在生成 surge 的 ssr 订阅时强制校验 startPort ([879080b](https://github.com/geekdada/surgio/commit/879080b333d89aa7d37ebe6e646d78f71aa69af7))
|
|
137
164
|
* 调整了 dns 解析的参数 ([b7aa7eb](https://github.com/geekdada/surgio/commit/b7aa7ebf7b0bd71c85395fea0fc4c1295bbd84bc))
|
|
165
|
+
* 在生成 surge 的 ssr 订阅时强制校验 startPort ([879080b](https://github.com/geekdada/surgio/commit/879080b333d89aa7d37ebe6e646d78f71aa69af7))
|
|
138
166
|
|
|
139
167
|
|
|
140
168
|
|
|
@@ -248,9 +276,9 @@
|
|
|
248
276
|
|
|
249
277
|
### Features
|
|
250
278
|
|
|
279
|
+
* 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
|
|
251
280
|
* 允许通过命令行开启远程片段缓存 ([128c9c5](https://github.com/geekdada/surgio/commit/128c9c5998dcc8db9d4c9472ce451ff40f4732ee))
|
|
252
281
|
* 支持自定义订阅请求转发的地址 ([3f4fb3b](https://github.com/geekdada/surgio/commit/3f4fb3b7450e3e63d89d26b4dfcba7dffd1e683e))
|
|
253
|
-
* 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
|
|
254
282
|
|
|
255
283
|
|
|
256
284
|
|
|
@@ -375,13 +403,13 @@
|
|
|
375
403
|
|
|
376
404
|
### Features
|
|
377
405
|
|
|
406
|
+
* 内置协议过滤器更名 ([6aa6531](https://github.com/geekdada/surgio/commit/6aa653174fd856c1ccc69ba10f5b995391ef9c82))
|
|
407
|
+
* 修改默认网络请求超时时间和重试次数 ([7753d20](https://github.com/geekdada/surgio/commit/7753d20611be1a4066747b3281d1ceb99a687ec1))
|
|
378
408
|
* add support for ssd subscription ([46e5d2d](https://github.com/geekdada/surgio/commit/46e5d2d129b9b5470471594c432e8b5e2fc012ca))
|
|
379
409
|
* filter 行为修改 ([9e0ddf7](https://github.com/geekdada/surgio/commit/9e0ddf7118931009951dc1f21943d3340256885d))
|
|
380
410
|
* surgeconfig 默认值修改 ([7b004bd](https://github.com/geekdada/surgio/commit/7b004bd1cac6c490bd0dbb0c086f33ff85ac194e))
|
|
381
411
|
* udp-relay 改为强制布尔值 ([86a5dfc](https://github.com/geekdada/surgio/commit/86a5dfcb2343bff5dbfafd6cefe2057b2141c66e))
|
|
382
412
|
* Vmess 配置的 udp 改为 udp-relay ([9460bc8](https://github.com/geekdada/surgio/commit/9460bc8c1713a96fc61e4db271e599046d467830))
|
|
383
|
-
* 修改默认网络请求超时时间和重试次数 ([7753d20](https://github.com/geekdada/surgio/commit/7753d20611be1a4066747b3281d1ceb99a687ec1))
|
|
384
|
-
* 内置协议过滤器更名 ([6aa6531](https://github.com/geekdada/surgio/commit/6aa653174fd856c1ccc69ba10f5b995391ef9c82))
|
|
385
413
|
|
|
386
414
|
|
|
387
415
|
### BREAKING CHANGES
|
|
@@ -400,8 +428,8 @@
|
|
|
400
428
|
|
|
401
429
|
### Bug Fixes
|
|
402
430
|
|
|
403
|
-
* **utils:v2ray:** lack of transport settings ([4491e60](https://github.com/geekdada/surgio/commit/4491e60cb5e0709056d93c82d314d23ec482745a)), closes [#91](https://github.com/geekdada/surgio/issues/91)
|
|
404
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)
|
|
405
433
|
|
|
406
434
|
|
|
407
435
|
### Features
|
|
@@ -492,16 +520,16 @@
|
|
|
492
520
|
|
|
493
521
|
### Bug Fixes
|
|
494
522
|
|
|
523
|
+
* 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
|
|
495
524
|
* **command:new:** 生成 custom 类型 provider 报错 ([be83268](https://github.com/geekdada/surgio/commit/be832687b0cb1a5ceb96e6742eb451e9ed5e5903))
|
|
496
525
|
* SSR URI 中包含 ipv6 地址解析错误 ([1cd8436](https://github.com/geekdada/surgio/commit/1cd8436a6335a4f018fc96532f297502cec8ce3b))
|
|
497
|
-
* 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
|
|
498
526
|
|
|
499
527
|
|
|
500
528
|
### Features
|
|
501
529
|
|
|
530
|
+
* 生成规则前进行 eslint 检查 ([a769458](https://github.com/geekdada/surgio/commit/a769458225905b228ef8903da593ded2c42ab49d))
|
|
502
531
|
* 支持解析 ipv6 地址 ([b96489b](https://github.com/geekdada/surgio/commit/b96489b6f92daa9e87f3863fb80e97b4af225fa6))
|
|
503
532
|
* 支持转换 surge ip-cidr6 至 quantumult x ip6-cidr ([c823677](https://github.com/geekdada/surgio/commit/c82367707e21ecd6856801a0e0d1758e58338a03))
|
|
504
|
-
* 生成规则前进行 eslint 检查 ([a769458](https://github.com/geekdada/surgio/commit/a769458225905b228ef8903da593ded2c42ab49d))
|
|
505
533
|
|
|
506
534
|
|
|
507
535
|
|
|
@@ -515,11 +543,11 @@
|
|
|
515
543
|
|
|
516
544
|
### Features
|
|
517
545
|
|
|
518
|
-
*
|
|
546
|
+
* 错误信息补充 ([ef4946c](https://github.com/geekdada/surgio/commit/ef4946cac0eb9897586875118399624dbe44d8d9))
|
|
547
|
+
* 更新内置默认 UA ([640ee2c](https://github.com/geekdada/surgio/commit/640ee2cddd392a97b61b9c5511335075bdb1b0ca))
|
|
519
548
|
* 优化未设置 binPath 的错误文案 ([f6d3e89](https://github.com/geekdada/surgio/commit/f6d3e895e783788c5f8b8bcf1622220f411b3e9a))
|
|
520
549
|
* 支持从 Clash 订阅中读取 v2ray-plugin mux 信息 ([f06f279](https://github.com/geekdada/surgio/commit/f06f2793af92f2a68aca51e461cad2c6b9165f5d))
|
|
521
|
-
*
|
|
522
|
-
* 错误信息补充 ([ef4946c](https://github.com/geekdada/surgio/commit/ef4946cac0eb9897586875118399624dbe44d8d9))
|
|
550
|
+
* useProviders 和 discardProviders 增加严格模式 ([bcd9fe9](https://github.com/geekdada/surgio/commit/bcd9fe942b9814ae453f4f13103245f8bf32384c))
|
|
523
551
|
|
|
524
552
|
|
|
525
553
|
|
|
@@ -546,8 +574,8 @@
|
|
|
546
574
|
|
|
547
575
|
### Bug Fixes
|
|
548
576
|
|
|
549
|
-
* should not enable proxy on now.sh and heroku ([3713850](https://github.com/geekdada/surgio/commit/37138507c126d7b2da900c833fea2af0bf153f4d))
|
|
550
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))
|
|
551
579
|
|
|
552
580
|
|
|
553
581
|
### Features
|
|
@@ -579,8 +607,8 @@
|
|
|
579
607
|
|
|
580
608
|
### Features
|
|
581
609
|
|
|
582
|
-
* add template method getUrl ([d02df8f](https://github.com/geekdada/surgio/commit/d02df8f2dbac0722381832944e06a11a3b0f3b40))
|
|
583
610
|
* 支持定义全局 customParams ([a8a092f](https://github.com/geekdada/surgio/commit/a8a092fc74c5fbb7fedaa3a00dbffe2f3e9e9432))
|
|
611
|
+
* add template method getUrl ([d02df8f](https://github.com/geekdada/surgio/commit/d02df8f2dbac0722381832944e06a11a3b0f3b40))
|
|
584
612
|
|
|
585
613
|
|
|
586
614
|
|
|
@@ -599,8 +627,8 @@
|
|
|
599
627
|
### Features
|
|
600
628
|
|
|
601
629
|
* `v2rayn_subscribe` 支持强制覆盖 `skipCertVerify` 和 `udpRelay` ([3a326d4](https://github.com/geekdada/surgio/commit/3a326d463f47bba6a000d299eb1dee19d790e29c))
|
|
602
|
-
* add support for quantumultx tls1.3 ([007db56](https://github.com/geekdada/surgio/commit/007db568c2a9ac7685bd0a344fa5093c22429e81))
|
|
603
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))
|
|
604
632
|
|
|
605
633
|
|
|
606
634
|
|
|
@@ -632,8 +660,8 @@
|
|
|
632
660
|
|
|
633
661
|
### Features
|
|
634
662
|
|
|
635
|
-
* add a relay service for subscriptions ([4b789a8](https://github.com/geekdada/surgio/commit/4b789a89f1cf68ce978d0fecd58daaf82f4a039a))
|
|
636
663
|
* 更新模板生成工具 ([fd8eed0](https://github.com/geekdada/surgio/commit/fd8eed0b0f527698ec203f347d7bbdae397ee897))
|
|
664
|
+
* add a relay service for subscriptions ([4b789a8](https://github.com/geekdada/surgio/commit/4b789a89f1cf68ce978d0fecd58daaf82f4a039a))
|
|
637
665
|
|
|
638
666
|
|
|
639
667
|
|
|
@@ -692,9 +720,9 @@
|
|
|
692
720
|
|
|
693
721
|
### Features
|
|
694
722
|
|
|
695
|
-
* 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
|
|
696
723
|
* 支持加入自定义 trojan 节点 ([40b6714](https://github.com/geekdada/surgio/commit/40b67143fbf1f5e59cf5c4b08ef4eb62238f4678))
|
|
697
724
|
* 支持检查模板方法中无效的 filter ([9c2690b](https://github.com/geekdada/surgio/commit/9c2690b31d9266833e45c892fdad4daca6ce947e))
|
|
725
|
+
* 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
|
|
698
726
|
|
|
699
727
|
|
|
700
728
|
|
|
@@ -758,12 +786,12 @@
|
|
|
758
786
|
|
|
759
787
|
### Features
|
|
760
788
|
|
|
761
|
-
* Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
|
|
762
789
|
* 为常用 Provider 类型增加订阅流量信息接口 ([ed68cab](https://github.com/geekdada/surgio/commit/ed68cab12a5417850229acbfa564a4436577e5cb))
|
|
763
790
|
* 修改 Artifact 初始化接口 ([4c3ac84](https://github.com/geekdada/surgio/commit/4c3ac847adae2bb492fa851e53b12213a6e379c7))
|
|
764
791
|
* 增加查询流量命令 ([a94eeab](https://github.com/geekdada/surgio/commit/a94eeab89b0a0c3432af2f9796d44e700084b93c))
|
|
765
792
|
* 支持从 SSR 订阅中读取剩余流量 ([fb2e886](https://github.com/geekdada/surgio/commit/fb2e886cac5428cdfac49bd6696a68e2494c2ea1))
|
|
766
793
|
* 支持在 Artifact 初始化时传入 Environment ([75ae51f](https://github.com/geekdada/surgio/commit/75ae51f3e9fafddade282d4348cbbcb9db774d36))
|
|
794
|
+
* Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
|
|
767
795
|
|
|
768
796
|
|
|
769
797
|
|
|
@@ -772,8 +800,8 @@
|
|
|
772
800
|
|
|
773
801
|
### Bug Fixes
|
|
774
802
|
|
|
775
|
-
* external provider 的 addresses 参数只应该写 IP ([f7006d6](https://github.com/geekdada/surgio/commit/f7006d676317db5eb0b6aac66440f9a76f7d8db4))
|
|
776
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))
|
|
777
805
|
|
|
778
806
|
|
|
779
807
|
### Features
|
|
@@ -848,9 +876,9 @@
|
|
|
848
876
|
|
|
849
877
|
### Features
|
|
850
878
|
|
|
851
|
-
* useProviders, discardProviders ([e11cb75](https://github.com/geekdada/surgio/commit/e11cb75d3d58189e9dacc2c4f699e514ab1a33c1)), closes [#51](https://github.com/geekdada/surgio/issues/51)
|
|
852
879
|
* 支持 Clash 的 Provider 片段 ([5c42328](https://github.com/geekdada/surgio/commit/5c4232809e60514121c1579deaa8ce9dbd151323))
|
|
853
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)
|
|
854
882
|
|
|
855
883
|
|
|
856
884
|
|
|
@@ -868,18 +896,18 @@
|
|
|
868
896
|
|
|
869
897
|
### Bug Fixes
|
|
870
898
|
|
|
899
|
+
* 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
|
|
871
900
|
* broken test ([25fcde6](https://github.com/geekdada/surgio/commit/25fcde69365ca66dfcce3fe260a1c6e2d0bd57b3))
|
|
872
901
|
* LRU 缓存可能会被污染 ([929f7bd](https://github.com/geekdada/surgio/commit/929f7bd3a32adc40eb23ec782eba1ce2978569d8))
|
|
873
902
|
* Provider 组合后生成结果排序错乱 ([d051b28](https://github.com/geekdada/surgio/commit/d051b2851ff401038587baa88f0e5ddc134471bc))
|
|
874
|
-
* 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
|
|
875
903
|
|
|
876
904
|
|
|
877
905
|
### Features
|
|
878
906
|
|
|
879
|
-
* v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
|
|
880
907
|
* 域名解析失败后跳过 ([66f5af8](https://github.com/geekdada/surgio/commit/66f5af8d31416591a29e28ac8ae03d978fa50862))
|
|
881
908
|
* 支持从 Clash 订阅中读取 skipCertVerify ([c856731](https://github.com/geekdada/surgio/commit/c856731cec14246b1ced594627daa5c50a2959cd))
|
|
882
909
|
* 支持配置 Provider 缓存 ([16dc8fc](https://github.com/geekdada/surgio/commit/16dc8fce9911fee2cae2e8c12e8649d3ede44dfa))
|
|
910
|
+
* v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
|
|
883
911
|
|
|
884
912
|
|
|
885
913
|
|
|
@@ -902,9 +930,9 @@
|
|
|
902
930
|
|
|
903
931
|
### Features
|
|
904
932
|
|
|
905
|
-
* 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
|
|
906
933
|
* 更新 netflixFilter ([515cbe5](https://github.com/geekdada/surgio/commit/515cbe5a179f6a7a364dc4e0eba72f264fb82b57))
|
|
907
934
|
* 更新国旗数据库 ([18f22d2](https://github.com/geekdada/surgio/commit/18f22d213e90fc9f680323439cbe4082ea2b171b))
|
|
935
|
+
* 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
|
|
908
936
|
|
|
909
937
|
|
|
910
938
|
|
|
@@ -922,8 +950,8 @@
|
|
|
922
950
|
|
|
923
951
|
### Bug Fixes
|
|
924
952
|
|
|
925
|
-
* broken test ([794be85](https://github.com/geekdada/surgio/commit/794be85268811ab665351ab255f368bc4a6d0754))
|
|
926
953
|
* 在某些情况下 Clash 的策略组中没输出 url 和 interval ([3884014](https://github.com/geekdada/surgio/commit/3884014c2296a59de90ae5f5e4803a3609f7893d))
|
|
954
|
+
* broken test ([794be85](https://github.com/geekdada/surgio/commit/794be85268811ab665351ab255f368bc4a6d0754))
|
|
927
955
|
|
|
928
956
|
|
|
929
957
|
|
|
@@ -1040,9 +1068,9 @@
|
|
|
1040
1068
|
|
|
1041
1069
|
### Features
|
|
1042
1070
|
|
|
1071
|
+
* 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
|
|
1043
1072
|
* 优化 dns 解析 ([345790e](https://github.com/geekdada/surgio/commit/345790eecd6b2f4745b91999004d921f41b259bc))
|
|
1044
1073
|
* 在模板中输出 proxyTestUrl ([b95cd8b](https://github.com/geekdada/surgio/commit/b95cd8b157e902a920699618cf1e61d1f615fd31))
|
|
1045
|
-
* 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
|
|
1046
1074
|
|
|
1047
1075
|
|
|
1048
1076
|
|
|
@@ -1051,16 +1079,16 @@
|
|
|
1051
1079
|
|
|
1052
1080
|
### Bug Fixes
|
|
1053
1081
|
|
|
1054
|
-
* 某些情况下 clash 配置没有输出 interval 和 url ([1978429](https://github.com/geekdada/surgio/commit/197842956a96fd35b91afd77cf358c1697ac7097))
|
|
1055
1082
|
* 空文件不会返回 404 ([271c398](https://github.com/geekdada/surgio/commit/271c398df29e8e3da2f4f22d6aa2d78aa49f122c))
|
|
1083
|
+
* 某些情况下 clash 配置没有输出 interval 和 url ([1978429](https://github.com/geekdada/surgio/commit/197842956a96fd35b91afd77cf358c1697ac7097))
|
|
1056
1084
|
|
|
1057
1085
|
|
|
1058
1086
|
### Features
|
|
1059
1087
|
|
|
1060
|
-
* nodeFilter 也支持过滤排序 ([6dd7f66](https://github.com/geekdada/surgio/commit/6dd7f665d26ad427f026786d5add8c578084f816))
|
|
1061
1088
|
* 增加规则过滤关键词 ([128f648](https://github.com/geekdada/surgio/commit/128f64835ccde09b4b0dda54e4075dc0218fbc10))
|
|
1062
|
-
* 支持在输出 external 时解析域名 ([1f78f44](https://github.com/geekdada/surgio/commit/1f78f44dde2949e384184d8fa59f566a45ed2d64))
|
|
1063
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))
|
|
1064
1092
|
|
|
1065
1093
|
|
|
1066
1094
|
|
|
@@ -1078,8 +1106,8 @@
|
|
|
1078
1106
|
|
|
1079
1107
|
### Features
|
|
1080
1108
|
|
|
1081
|
-
* Provider 处理改为并发 ([8bf2738](https://github.com/geekdada/surgio/commit/8bf2738f14f9d30b9bfbf6999fbbdf91a5993469))
|
|
1082
1109
|
* 优化远程片段获取的并发请求 ([7552fa0](https://github.com/geekdada/surgio/commit/7552fa05b073871aa6a50472f2386bfa4fa9421d))
|
|
1110
|
+
* Provider 处理改为并发 ([8bf2738](https://github.com/geekdada/surgio/commit/8bf2738f14f9d30b9bfbf6999fbbdf91a5993469))
|
|
1083
1111
|
|
|
1084
1112
|
|
|
1085
1113
|
|
|
@@ -1097,8 +1125,8 @@
|
|
|
1097
1125
|
|
|
1098
1126
|
### Bug Fixes
|
|
1099
1127
|
|
|
1100
|
-
* Close [#35](https://github.com/geekdada/surgio/issues/35) ([491b655](https://github.com/geekdada/surgio/commit/491b655bc8061ed120ab119bd5e4ac57859ea095))
|
|
1101
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))
|
|
1102
1130
|
|
|
1103
1131
|
|
|
1104
1132
|
### Features
|
|
@@ -1107,8 +1135,8 @@
|
|
|
1107
1135
|
* 增加 mellow 规则处理方法 ([b646199](https://github.com/geekdada/surgio/commit/b646199507d7558bd00daa89f4877501391e2605))
|
|
1108
1136
|
* 支持 Clash 的 'fallback-auto', 'load-balance' 策略 ([18f106f](https://github.com/geekdada/surgio/commit/18f106fee8c94c01bbf8a4a34fadfcd9557fdd2b)), closes [#34](https://github.com/geekdada/surgio/issues/34)
|
|
1109
1137
|
* 支持单独定义某个 artifact 的输出目录 ([bef00c7](https://github.com/geekdada/surgio/commit/bef00c7d9894476c695229a6e96f1d3f47fd91b1))
|
|
1110
|
-
* 支持在 surgio.conf.js 中定义全局 customFilters ([1701b85](https://github.com/geekdada/surgio/commit/1701b85d68e487b52fb529243d8826ee4b5a99a8))
|
|
1111
1138
|
* 支持导出 Mellow 节点 ([9a72ca2](https://github.com/geekdada/surgio/commit/9a72ca2ac7b9b59ee3c1b61180fd8fe915330ad8))
|
|
1139
|
+
* 支持在 surgio.conf.js 中定义全局 customFilters ([1701b85](https://github.com/geekdada/surgio/commit/1701b85d68e487b52fb529243d8826ee4b5a99a8))
|
|
1112
1140
|
|
|
1113
1141
|
|
|
1114
1142
|
|
|
@@ -1145,8 +1173,8 @@
|
|
|
1145
1173
|
|
|
1146
1174
|
### Features
|
|
1147
1175
|
|
|
1148
|
-
* check command ([2db635f](https://github.com/geekdada/surgio/commit/2db635ff91cd786daa6852abdd82896ab213f3ab))
|
|
1149
1176
|
* 面板增加添加 Clash 的按钮 ([b66e5f3](https://github.com/geekdada/surgio/commit/b66e5f31dae975ccac83742666ea7385a6e023e0))
|
|
1177
|
+
* check command ([2db635f](https://github.com/geekdada/surgio/commit/2db635ff91cd786daa6852abdd82896ab213f3ab))
|
|
1150
1178
|
|
|
1151
1179
|
|
|
1152
1180
|
|
|
@@ -1155,8 +1183,8 @@
|
|
|
1155
1183
|
|
|
1156
1184
|
### Features
|
|
1157
1185
|
|
|
1158
|
-
* youtubePremiumFilter 增加新加坡 ([7b32873](https://github.com/geekdada/surgio/commit/7b32873ff906156208ae7a03ea8002534a794c57))
|
|
1159
1186
|
* youtubePremiumFilter 增加香港 ([821bf3c](https://github.com/geekdada/surgio/commit/821bf3c653767490bf093e0980be091b28f3501d))
|
|
1187
|
+
* youtubePremiumFilter 增加新加坡 ([7b32873](https://github.com/geekdada/surgio/commit/7b32873ff906156208ae7a03ea8002534a794c57))
|
|
1160
1188
|
|
|
1161
1189
|
|
|
1162
1190
|
|
|
@@ -1192,10 +1220,10 @@
|
|
|
1192
1220
|
|
|
1193
1221
|
### Features
|
|
1194
1222
|
|
|
1195
|
-
*
|
|
1223
|
+
* 节点增加 tfo 参数 ([a820b89](https://github.com/geekdada/surgio/commit/a820b89590ac3379ccf109539000783b0d7b803a))
|
|
1196
1224
|
* 仅支持读取 ws 和 tcp 类型的 vmess 节点 ([de5bb35](https://github.com/geekdada/surgio/commit/de5bb35fcc3b4b4e6bb1bb12a6cc6f53bd6de2c8))
|
|
1197
1225
|
* 新增 getQuantumultXNodes ([d284d04](https://github.com/geekdada/surgio/commit/d284d0415e9524dffebd73d6085d1e11ceef3621))
|
|
1198
|
-
*
|
|
1226
|
+
* udp-relay 的值改为布尔类型,兼容字符串类型 ([f3eaaed](https://github.com/geekdada/surgio/commit/f3eaaed03727de525e12a454a8a966fd923f8d89))
|
|
1199
1227
|
|
|
1200
1228
|
|
|
1201
1229
|
|
|
@@ -1213,18 +1241,18 @@
|
|
|
1213
1241
|
|
|
1214
1242
|
### Bug Fixes
|
|
1215
1243
|
|
|
1216
|
-
* protoparam 和 obfsparam 中不能有空格 ([6cdb978](https://github.com/geekdada/surgio/commit/6cdb97880913a594115a59d49bfebcf90c555f7f))
|
|
1217
1244
|
* 加国旗正确识别中转节点了 ([3751dbf](https://github.com/geekdada/surgio/commit/3751dbf0f7f0d8619cfa28b2ec2cc8c24c4494a7))
|
|
1245
|
+
* protoparam 和 obfsparam 中不能有空格 ([6cdb978](https://github.com/geekdada/surgio/commit/6cdb97880913a594115a59d49bfebcf90c555f7f))
|
|
1218
1246
|
|
|
1219
1247
|
|
|
1220
1248
|
### Features
|
|
1221
1249
|
|
|
1222
|
-
* proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
|
|
1223
1250
|
* 不合法 yaml 文件识别 ([1654534](https://github.com/geekdada/surgio/commit/16545347613026a57bac46eb286e52f894384c11))
|
|
1224
|
-
* 允许用户覆盖 clash 订阅的 udp 转发支持 ([bb58c50](https://github.com/geekdada/surgio/commit/bb58c50aa5334ea9ce1ee4c323aa531dcbb32e79))
|
|
1225
1251
|
* 兼容v2rayn 订阅格式 ([8ba4625](https://github.com/geekdada/surgio/commit/8ba4625955bfb068028303a56148ac20e109e6e3))
|
|
1252
|
+
* 允许用户覆盖 clash 订阅的 udp 转发支持 ([bb58c50](https://github.com/geekdada/surgio/commit/bb58c50aa5334ea9ce1ee4c323aa531dcbb32e79))
|
|
1226
1253
|
* 增加 netflixFilter 规则 ([5cc52f1](https://github.com/geekdada/surgio/commit/5cc52f1c237b9c4fcf2dee56ea3c0caaf82695ad))
|
|
1227
1254
|
* 支持读取 Clash 订阅 ([45ef59f](https://github.com/geekdada/surgio/commit/45ef59f359e21e37f5dac242a33888c74ec1afbc))
|
|
1255
|
+
* proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
|
|
1228
1256
|
|
|
1229
1257
|
|
|
1230
1258
|
|
|
@@ -1233,10 +1261,10 @@
|
|
|
1233
1261
|
|
|
1234
1262
|
### Features
|
|
1235
1263
|
|
|
1264
|
+
* 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
|
|
1236
1265
|
* better error message ([26fcaa3](https://github.com/geekdada/surgio/commit/26fcaa3310046fbd886cff2370a8bf31be96dcca))
|
|
1237
1266
|
* gateway request log ([891168b](https://github.com/geekdada/surgio/commit/891168b6a702a0440b5d0475a25d11345d594f52))
|
|
1238
1267
|
* quick editing from list-artifact ([2d1d605](https://github.com/geekdada/surgio/commit/2d1d605fe5dd36332a8f04476d397cb7a14b6684))
|
|
1239
|
-
* 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
|
|
1240
1268
|
|
|
1241
1269
|
|
|
1242
1270
|
|
|
@@ -1300,10 +1328,10 @@
|
|
|
1300
1328
|
|
|
1301
1329
|
### Features
|
|
1302
1330
|
|
|
1331
|
+
* 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
|
|
1303
1332
|
* getNodeNames 和 getClashNodeNames 不再过滤 nodeType ([6571511](https://github.com/geekdada/surgio/commit/6571511f3d30aa3a283a69b81afb9aa548031b18))
|
|
1304
1333
|
* schema validation for config ([9f11254](https://github.com/geekdada/surgio/commit/9f11254d2bc7107e2299e1146553b03da1e9849f))
|
|
1305
1334
|
* schema validation for provider ([d738e0f](https://github.com/geekdada/surgio/commit/d738e0f999c91f577deb14793889210620757f36))
|
|
1306
|
-
* 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
|
|
1307
1335
|
|
|
1308
1336
|
|
|
1309
1337
|
|
|
@@ -1420,8 +1448,8 @@
|
|
|
1420
1448
|
|
|
1421
1449
|
### Features
|
|
1422
1450
|
|
|
1423
|
-
* 增加了 Flag 识别字段 ([86c1489](https://github.com/geekdada/surgio/commit/86c14898001ab54b6a5387bf533c34d5917b4cbb))
|
|
1424
1451
|
* 增加错误文案方便调试 ([ff28793](https://github.com/geekdada/surgio/commit/ff287933e17cb0f7d8f9b7d4a454124420e7610c))
|
|
1452
|
+
* 增加了 Flag 识别字段 ([86c1489](https://github.com/geekdada/surgio/commit/86c14898001ab54b6a5387bf533c34d5917b4cbb))
|
|
1425
1453
|
|
|
1426
1454
|
|
|
1427
1455
|
|
|
@@ -1430,8 +1458,8 @@
|
|
|
1430
1458
|
|
|
1431
1459
|
### Bug Fixes
|
|
1432
1460
|
|
|
1433
|
-
* SSR URI 识别问题 ([46184fb](https://github.com/geekdada/surgio/commit/46184fbfdcd1583658db157123902862881413f5))
|
|
1434
1461
|
* 不需要 sort ([51f560f](https://github.com/geekdada/surgio/commit/51f560fc86b24c1b4319a83637c90e5449023520))
|
|
1462
|
+
* SSR URI 识别问题 ([46184fb](https://github.com/geekdada/surgio/commit/46184fbfdcd1583658db157123902862881413f5))
|
|
1435
1463
|
|
|
1436
1464
|
|
|
1437
1465
|
|
|
@@ -1440,9 +1468,9 @@
|
|
|
1440
1468
|
|
|
1441
1469
|
### Bug Fixes
|
|
1442
1470
|
|
|
1443
|
-
* clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
|
|
1444
1471
|
* 不手动指定不使用代理 ([d89198a](https://github.com/geekdada/surgio/commit/d89198a23cff4fe345f5597ab507b8680ac34b54))
|
|
1445
1472
|
* 文件名在 win 上取值错误 ([310518b](https://github.com/geekdada/surgio/commit/310518bd7cc37c2110dbcb50bdb1d5571bdb68cc))
|
|
1473
|
+
* clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
|
|
1446
1474
|
|
|
1447
1475
|
|
|
1448
1476
|
|
|
@@ -1460,8 +1488,8 @@
|
|
|
1460
1488
|
|
|
1461
1489
|
### Features
|
|
1462
1490
|
|
|
1463
|
-
* add support for clashr ([43c4862](https://github.com/geekdada/surgio/commit/43c486277bdff42999f18a71a4627585461e4762))
|
|
1464
1491
|
* 远程片段支持读取原始内容 ([a1f9e0f](https://github.com/geekdada/surgio/commit/a1f9e0ff7f55b33f98934619a2e90c33ba0c8d20))
|
|
1492
|
+
* add support for clashr ([43c4862](https://github.com/geekdada/surgio/commit/43c486277bdff42999f18a71a4627585461e4762))
|
|
1465
1493
|
|
|
1466
1494
|
|
|
1467
1495
|
|
|
@@ -1475,10 +1503,10 @@
|
|
|
1475
1503
|
|
|
1476
1504
|
### Features
|
|
1477
1505
|
|
|
1506
|
+
* 节点名补充国旗 Emoji ([dc1f34e](https://github.com/geekdada/surgio/commit/dc1f34e3616e924acc2773dc7024a5e968981d53))
|
|
1507
|
+
* 增加国别判断字段 ([ce6828c](https://github.com/geekdada/surgio/commit/ce6828cdf80bd433d55ad788fac1529ef9b32fc6))
|
|
1478
1508
|
* add error message ([69b6bff](https://github.com/geekdada/surgio/commit/69b6bfffdca29c1d01cc77cf63730a12f7390822))
|
|
1479
1509
|
* custom filters ([d5ee8bc](https://github.com/geekdada/surgio/commit/d5ee8bc6b0066eb0d30699191fdcae6262bd4f1a))
|
|
1480
|
-
* 增加国别判断字段 ([ce6828c](https://github.com/geekdada/surgio/commit/ce6828cdf80bd433d55ad788fac1529ef9b32fc6))
|
|
1481
|
-
* 节点名补充国旗 Emoji ([dc1f34e](https://github.com/geekdada/surgio/commit/dc1f34e3616e924acc2773dc7024a5e968981d53))
|
|
1482
1510
|
|
|
1483
1511
|
|
|
1484
1512
|
|
|
@@ -1581,12 +1609,12 @@
|
|
|
1581
1609
|
|
|
1582
1610
|
### Features
|
|
1583
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))
|
|
1584
1615
|
* add shadowsocks subscribe support ([e993d1b](https://github.com/geekdada/surgio/commit/e993d1bfa1ab4a50464ca37f647e22cd7c0bee68))
|
|
1585
1616
|
* add v2rayn subscribe support ([067ad43](https://github.com/geekdada/surgio/commit/067ad4318b456f5ceaf47ad78b79d206544da72e))
|
|
1586
1617
|
* clash 输出 vmess ([05cc557](https://github.com/geekdada/surgio/commit/05cc5570762d34a3465e71d14fbf78e8a30a1f34))
|
|
1587
|
-
* 支持导出 Quantumult 的 HTTPS, Shadowsocksr 节点 ([dd728e0](https://github.com/geekdada/surgio/commit/dd728e02345669751b31227327abb20034dc5554))
|
|
1588
|
-
* 生成 quan 订阅 scheme ([afe0a21](https://github.com/geekdada/surgio/commit/afe0a2120b0eeb048deab09c24964d7bd3e14a60))
|
|
1589
|
-
* 生成 v2rayn scheme ([981e6d7](https://github.com/geekdada/surgio/commit/981e6d77517771da9510cc79c7e0cd8c7276d119))
|
|
1590
1618
|
|
|
1591
1619
|
|
|
1592
1620
|
|
|
@@ -1595,8 +1623,8 @@
|
|
|
1595
1623
|
|
|
1596
1624
|
### Features
|
|
1597
1625
|
|
|
1598
|
-
* remote rule set ([a820cdb](https://github.com/geekdada/surgio/commit/a820cdb192daeb1f0a321e75ed447290b4e4207a)), closes [#5](https://github.com/geekdada/surgio/issues/5)
|
|
1599
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)
|
|
1600
1628
|
|
|
1601
1629
|
|
|
1602
1630
|
|
|
@@ -1611,8 +1639,8 @@
|
|
|
1611
1639
|
|
|
1612
1640
|
### Features
|
|
1613
1641
|
|
|
1614
|
-
* add cli update support ([2f2d340](https://github.com/geekdada/surgio/commit/2f2d340b0c4f65a1a601f62c2986c5384af6fd76))
|
|
1615
1642
|
* 模板 base64 filter ([3d45a23](https://github.com/geekdada/surgio/commit/3d45a23102cf642495e0920c91f2ed94de27a4e2))
|
|
1643
|
+
* add cli update support ([2f2d340](https://github.com/geekdada/surgio/commit/2f2d340b0c4f65a1a601f62c2986c5384af6fd76))
|
|
1616
1644
|
|
|
1617
1645
|
|
|
1618
1646
|
|
|
@@ -1626,8 +1654,8 @@
|
|
|
1626
1654
|
|
|
1627
1655
|
### Features
|
|
1628
1656
|
|
|
1629
|
-
* 在模板中暴露 nodeList 变量 ([c2eeb29](https://github.com/geekdada/surgio/commit/c2eeb295ff2ca7dc0407a2b67f8d1332aa26be60))
|
|
1630
1657
|
* 属性判空 ([13eb455](https://github.com/geekdada/surgio/commit/13eb455d3258f0067a244117a50688817bdb1433))
|
|
1658
|
+
* 在模板中暴露 nodeList 变量 ([c2eeb29](https://github.com/geekdada/surgio/commit/c2eeb295ff2ca7dc0407a2b67f8d1332aa26be60))
|
|
1631
1659
|
* 支持从 gui-config.json 中解析混淆配置 ([bc135a7](https://github.com/geekdada/surgio/commit/bc135a78c8eb0572ebc67b17ab9d7c6a9b4acf22))
|
|
1632
1660
|
|
|
1633
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=
|