surgio 2.14.2 → 2.17.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 +80 -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/generator/artifact.d.ts +3 -1
- package/build/generator/artifact.js +7 -5
- package/build/index.d.ts +3 -1
- package/build/index.js +11 -4
- package/build/provider/ClashProvider.d.ts +9 -2
- package/build/provider/ClashProvider.js +24 -10
- package/build/provider/CustomProvider.js +14 -5
- package/build/provider/Provider.d.ts +3 -1
- package/build/provider/Provider.js +31 -6
- package/build/provider/ShadowsocksJsonSubscribeProvider.d.ts +5 -3
- package/build/provider/ShadowsocksJsonSubscribeProvider.js +42 -4
- package/build/provider/ShadowsocksSubscribeProvider.d.ts +4 -2
- package/build/provider/ShadowsocksSubscribeProvider.js +7 -5
- package/build/provider/ShadowsocksrSubscribeProvider.d.ts +4 -2
- package/build/provider/ShadowsocksrSubscribeProvider.js +7 -5
- package/build/provider/SsdProvider.d.ts +4 -2
- package/build/provider/SsdProvider.js +7 -5
- package/build/provider/TrojanProvider.d.ts +9 -2
- package/build/provider/TrojanProvider.js +15 -6
- package/build/provider/V2rayNSubscribeProvider.d.ts +11 -2
- package/build/provider/V2rayNSubscribeProvider.js +17 -15
- package/build/types.d.ts +3 -0
- package/build/utils/cache.d.ts +4 -3
- package/build/utils/cache.js +17 -9
- 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/dns.js +5 -5
- package/build/utils/env-flag.js +1 -1
- 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 +7 -15
- package/build/utils/index.js +28 -739
- package/build/utils/loon.js +52 -20
- package/build/utils/patch-proxy.js +7 -2
- package/build/utils/quantumult.d.ts +6 -0
- package/build/utils/quantumult.js +255 -0
- package/build/utils/surge.d.ts +6 -0
- package/build/utils/surge.js +365 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
# [2.17.0](https://github.com/geekdada/surgio/compare/v2.16.0...v2.17.0) (2022-04-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add useragent support ([a7ee722](https://github.com/geekdada/surgio/commit/a7ee72290f6d55e29d3c0c269abc61acc2cb2bfc))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# [2.16.0](https://github.com/geekdada/surgio/compare/v2.15.0...v2.16.0) (2022-03-19)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* format wsHeaders keys ([5c745fe](https://github.com/geekdada/surgio/commit/5c745fe1ff143e99b2ca6559e96c8969c8aad32d))
|
|
16
|
+
* support trojan websocket for loon ([63e66d6](https://github.com/geekdada/surgio/commit/63e66d612a6ce9f68bc2d0dfa6b0b616e00a548d))
|
|
17
|
+
* support trojan WebSocket for quantumultx generating ([5ded7b0](https://github.com/geekdada/surgio/commit/5ded7b01a246c4c2709087ef9e2734af554a839c))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# [2.15.0](https://github.com/geekdada/surgio/compare/v2.14.2...v2.15.0) (2022-03-18)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* add support for trojan web-socket config ([394f65d](https://github.com/geekdada/surgio/commit/394f65d927e3e8bae6237bea3bf3f2c644ed1a63))
|
|
27
|
+
* add tls-verification to quantumult x vmess config ([b24f071](https://github.com/geekdada/surgio/commit/b24f071f46a71a8446bd097d2c286b5011cb163b))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
1
31
|
## [2.14.2](https://github.com/geekdada/surgio/compare/v2.14.1...v2.14.2) (2022-01-13)
|
|
2
32
|
|
|
3
33
|
|
|
@@ -151,8 +181,8 @@
|
|
|
151
181
|
|
|
152
182
|
### Features
|
|
153
183
|
|
|
154
|
-
* 在生成 surge 的 ssr 订阅时强制校验 startPort ([879080b](https://github.com/geekdada/surgio/commit/879080b333d89aa7d37ebe6e646d78f71aa69af7))
|
|
155
184
|
* 调整了 dns 解析的参数 ([b7aa7eb](https://github.com/geekdada/surgio/commit/b7aa7ebf7b0bd71c85395fea0fc4c1295bbd84bc))
|
|
185
|
+
* 在生成 surge 的 ssr 订阅时强制校验 startPort ([879080b](https://github.com/geekdada/surgio/commit/879080b333d89aa7d37ebe6e646d78f71aa69af7))
|
|
156
186
|
|
|
157
187
|
|
|
158
188
|
|
|
@@ -266,9 +296,9 @@
|
|
|
266
296
|
|
|
267
297
|
### Features
|
|
268
298
|
|
|
299
|
+
* 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
|
|
269
300
|
* 允许通过命令行开启远程片段缓存 ([128c9c5](https://github.com/geekdada/surgio/commit/128c9c5998dcc8db9d4c9472ce451ff40f4732ee))
|
|
270
301
|
* 支持自定义订阅请求转发的地址 ([3f4fb3b](https://github.com/geekdada/surgio/commit/3f4fb3b7450e3e63d89d26b4dfcba7dffd1e683e))
|
|
271
|
-
* 清除缓存命令 ([4daaf1c](https://github.com/geekdada/surgio/commit/4daaf1cbd678ba65907e16dbfeb7c0aacf2d5cc2))
|
|
272
302
|
|
|
273
303
|
|
|
274
304
|
|
|
@@ -393,13 +423,13 @@
|
|
|
393
423
|
|
|
394
424
|
### Features
|
|
395
425
|
|
|
426
|
+
* 内置协议过滤器更名 ([6aa6531](https://github.com/geekdada/surgio/commit/6aa653174fd856c1ccc69ba10f5b995391ef9c82))
|
|
427
|
+
* 修改默认网络请求超时时间和重试次数 ([7753d20](https://github.com/geekdada/surgio/commit/7753d20611be1a4066747b3281d1ceb99a687ec1))
|
|
396
428
|
* add support for ssd subscription ([46e5d2d](https://github.com/geekdada/surgio/commit/46e5d2d129b9b5470471594c432e8b5e2fc012ca))
|
|
397
429
|
* filter 行为修改 ([9e0ddf7](https://github.com/geekdada/surgio/commit/9e0ddf7118931009951dc1f21943d3340256885d))
|
|
398
430
|
* surgeconfig 默认值修改 ([7b004bd](https://github.com/geekdada/surgio/commit/7b004bd1cac6c490bd0dbb0c086f33ff85ac194e))
|
|
399
431
|
* udp-relay 改为强制布尔值 ([86a5dfc](https://github.com/geekdada/surgio/commit/86a5dfcb2343bff5dbfafd6cefe2057b2141c66e))
|
|
400
432
|
* 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
433
|
|
|
404
434
|
|
|
405
435
|
### BREAKING CHANGES
|
|
@@ -418,8 +448,8 @@
|
|
|
418
448
|
|
|
419
449
|
### Bug Fixes
|
|
420
450
|
|
|
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
451
|
* 配置 boolean 进行严格类型检查 ([1a42306](https://github.com/geekdada/surgio/commit/1a42306e5387b52b4a7f976b53b352c556607512))
|
|
452
|
+
* **utils:v2ray:** lack of transport settings ([4491e60](https://github.com/geekdada/surgio/commit/4491e60cb5e0709056d93c82d314d23ec482745a)), closes [#91](https://github.com/geekdada/surgio/issues/91)
|
|
423
453
|
|
|
424
454
|
|
|
425
455
|
### Features
|
|
@@ -510,16 +540,16 @@
|
|
|
510
540
|
|
|
511
541
|
### Bug Fixes
|
|
512
542
|
|
|
543
|
+
* 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
|
|
513
544
|
* **command:new:** 生成 custom 类型 provider 报错 ([be83268](https://github.com/geekdada/surgio/commit/be832687b0cb1a5ceb96e6742eb451e9ed5e5903))
|
|
514
545
|
* SSR URI 中包含 ipv6 地址解析错误 ([1cd8436](https://github.com/geekdada/surgio/commit/1cd8436a6335a4f018fc96532f297502cec8ce3b))
|
|
515
|
-
* 服务器地址为 ipv6 时触发解析 ([aa79c93](https://github.com/geekdada/surgio/commit/aa79c931bac1a81b2406e4c36180c62e064e0292))
|
|
516
546
|
|
|
517
547
|
|
|
518
548
|
### Features
|
|
519
549
|
|
|
550
|
+
* 生成规则前进行 eslint 检查 ([a769458](https://github.com/geekdada/surgio/commit/a769458225905b228ef8903da593ded2c42ab49d))
|
|
520
551
|
* 支持解析 ipv6 地址 ([b96489b](https://github.com/geekdada/surgio/commit/b96489b6f92daa9e87f3863fb80e97b4af225fa6))
|
|
521
552
|
* 支持转换 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
553
|
|
|
524
554
|
|
|
525
555
|
|
|
@@ -533,11 +563,11 @@
|
|
|
533
563
|
|
|
534
564
|
### Features
|
|
535
565
|
|
|
536
|
-
*
|
|
566
|
+
* 错误信息补充 ([ef4946c](https://github.com/geekdada/surgio/commit/ef4946cac0eb9897586875118399624dbe44d8d9))
|
|
567
|
+
* 更新内置默认 UA ([640ee2c](https://github.com/geekdada/surgio/commit/640ee2cddd392a97b61b9c5511335075bdb1b0ca))
|
|
537
568
|
* 优化未设置 binPath 的错误文案 ([f6d3e89](https://github.com/geekdada/surgio/commit/f6d3e895e783788c5f8b8bcf1622220f411b3e9a))
|
|
538
569
|
* 支持从 Clash 订阅中读取 v2ray-plugin mux 信息 ([f06f279](https://github.com/geekdada/surgio/commit/f06f2793af92f2a68aca51e461cad2c6b9165f5d))
|
|
539
|
-
*
|
|
540
|
-
* 错误信息补充 ([ef4946c](https://github.com/geekdada/surgio/commit/ef4946cac0eb9897586875118399624dbe44d8d9))
|
|
570
|
+
* useProviders 和 discardProviders 增加严格模式 ([bcd9fe9](https://github.com/geekdada/surgio/commit/bcd9fe942b9814ae453f4f13103245f8bf32384c))
|
|
541
571
|
|
|
542
572
|
|
|
543
573
|
|
|
@@ -564,8 +594,8 @@
|
|
|
564
594
|
|
|
565
595
|
### Bug Fixes
|
|
566
596
|
|
|
567
|
-
* should not enable proxy on now.sh and heroku ([3713850](https://github.com/geekdada/surgio/commit/37138507c126d7b2da900c833fea2af0bf153f4d))
|
|
568
597
|
* 无法识别外部资源的 EOL ([bee0c12](https://github.com/geekdada/surgio/commit/bee0c1224781330c35a27cbfee4549d338de65d2))
|
|
598
|
+
* should not enable proxy on now.sh and heroku ([3713850](https://github.com/geekdada/surgio/commit/37138507c126d7b2da900c833fea2af0bf153f4d))
|
|
569
599
|
|
|
570
600
|
|
|
571
601
|
### Features
|
|
@@ -597,8 +627,8 @@
|
|
|
597
627
|
|
|
598
628
|
### Features
|
|
599
629
|
|
|
600
|
-
* add template method getUrl ([d02df8f](https://github.com/geekdada/surgio/commit/d02df8f2dbac0722381832944e06a11a3b0f3b40))
|
|
601
630
|
* 支持定义全局 customParams ([a8a092f](https://github.com/geekdada/surgio/commit/a8a092fc74c5fbb7fedaa3a00dbffe2f3e9e9432))
|
|
631
|
+
* add template method getUrl ([d02df8f](https://github.com/geekdada/surgio/commit/d02df8f2dbac0722381832944e06a11a3b0f3b40))
|
|
602
632
|
|
|
603
633
|
|
|
604
634
|
|
|
@@ -617,8 +647,8 @@
|
|
|
617
647
|
### Features
|
|
618
648
|
|
|
619
649
|
* `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
650
|
* 支持从 Surge 配置中解析转换 Quantumult X 的以下几种脚本 ([066060d](https://github.com/geekdada/surgio/commit/066060d3d26b6f0172c568897fc492a77ccfcfb9))
|
|
651
|
+
* add support for quantumultx tls1.3 ([007db56](https://github.com/geekdada/surgio/commit/007db568c2a9ac7685bd0a344fa5093c22429e81))
|
|
622
652
|
|
|
623
653
|
|
|
624
654
|
|
|
@@ -650,8 +680,8 @@
|
|
|
650
680
|
|
|
651
681
|
### Features
|
|
652
682
|
|
|
653
|
-
* add a relay service for subscriptions ([4b789a8](https://github.com/geekdada/surgio/commit/4b789a89f1cf68ce978d0fecd58daaf82f4a039a))
|
|
654
683
|
* 更新模板生成工具 ([fd8eed0](https://github.com/geekdada/surgio/commit/fd8eed0b0f527698ec203f347d7bbdae397ee897))
|
|
684
|
+
* add a relay service for subscriptions ([4b789a8](https://github.com/geekdada/surgio/commit/4b789a89f1cf68ce978d0fecd58daaf82f4a039a))
|
|
655
685
|
|
|
656
686
|
|
|
657
687
|
|
|
@@ -710,9 +740,9 @@
|
|
|
710
740
|
|
|
711
741
|
### Features
|
|
712
742
|
|
|
713
|
-
* 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
|
|
714
743
|
* 支持加入自定义 trojan 节点 ([40b6714](https://github.com/geekdada/surgio/commit/40b67143fbf1f5e59cf5c4b08ef4eb62238f4678))
|
|
715
744
|
* 支持检查模板方法中无效的 filter ([9c2690b](https://github.com/geekdada/surgio/commit/9c2690b31d9266833e45c892fdad4daca6ce947e))
|
|
745
|
+
* 支持为 mellow 输出 ss uri ([c26cdb5](https://github.com/geekdada/surgio/commit/c26cdb552a882cc7e29448cd0a1129c25a9bccc7))
|
|
716
746
|
|
|
717
747
|
|
|
718
748
|
|
|
@@ -776,12 +806,12 @@
|
|
|
776
806
|
|
|
777
807
|
### Features
|
|
778
808
|
|
|
779
|
-
* Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
|
|
780
809
|
* 为常用 Provider 类型增加订阅流量信息接口 ([ed68cab](https://github.com/geekdada/surgio/commit/ed68cab12a5417850229acbfa564a4436577e5cb))
|
|
781
810
|
* 修改 Artifact 初始化接口 ([4c3ac84](https://github.com/geekdada/surgio/commit/4c3ac847adae2bb492fa851e53b12213a6e379c7))
|
|
782
811
|
* 增加查询流量命令 ([a94eeab](https://github.com/geekdada/surgio/commit/a94eeab89b0a0c3432af2f9796d44e700084b93c))
|
|
783
812
|
* 支持从 SSR 订阅中读取剩余流量 ([fb2e886](https://github.com/geekdada/surgio/commit/fb2e886cac5428cdfac49bd6696a68e2494c2ea1))
|
|
784
813
|
* 支持在 Artifact 初始化时传入 Environment ([75ae51f](https://github.com/geekdada/surgio/commit/75ae51f3e9fafddade282d4348cbbcb9db774d36))
|
|
814
|
+
* Artifact 初始化后返回实例 ([7ca04cf](https://github.com/geekdada/surgio/commit/7ca04cfb07fa308abd90f475b1bd35ce58d183df))
|
|
785
815
|
|
|
786
816
|
|
|
787
817
|
|
|
@@ -790,8 +820,8 @@
|
|
|
790
820
|
|
|
791
821
|
### Bug Fixes
|
|
792
822
|
|
|
793
|
-
* external provider 的 addresses 参数只应该写 IP ([f7006d6](https://github.com/geekdada/surgio/commit/f7006d676317db5eb0b6aac66440f9a76f7d8db4))
|
|
794
823
|
* 某些情况下 v2ray 配置 port 为字符串 ([b8af4d7](https://github.com/geekdada/surgio/commit/b8af4d799d70d02c5b4361954f38625afd891973)), closes [#59](https://github.com/geekdada/surgio/issues/59)
|
|
824
|
+
* external provider 的 addresses 参数只应该写 IP ([f7006d6](https://github.com/geekdada/surgio/commit/f7006d676317db5eb0b6aac66440f9a76f7d8db4))
|
|
795
825
|
|
|
796
826
|
|
|
797
827
|
### Features
|
|
@@ -866,9 +896,9 @@
|
|
|
866
896
|
|
|
867
897
|
### Features
|
|
868
898
|
|
|
869
|
-
* useProviders, discardProviders ([e11cb75](https://github.com/geekdada/surgio/commit/e11cb75d3d58189e9dacc2c4f699e514ab1a33c1)), closes [#51](https://github.com/geekdada/surgio/issues/51)
|
|
870
899
|
* 支持 Clash 的 Provider 片段 ([5c42328](https://github.com/geekdada/surgio/commit/5c4232809e60514121c1579deaa8ce9dbd151323))
|
|
871
900
|
* 支持新的 Clash 规则配置方法 ([48b90e1](https://github.com/geekdada/surgio/commit/48b90e142dcd5c200ddd1b1e4cae8b6e97d918bb))
|
|
901
|
+
* useProviders, discardProviders ([e11cb75](https://github.com/geekdada/surgio/commit/e11cb75d3d58189e9dacc2c4f699e514ab1a33c1)), closes [#51](https://github.com/geekdada/surgio/issues/51)
|
|
872
902
|
|
|
873
903
|
|
|
874
904
|
|
|
@@ -886,18 +916,18 @@
|
|
|
886
916
|
|
|
887
917
|
### Bug Fixes
|
|
888
918
|
|
|
919
|
+
* 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
|
|
889
920
|
* broken test ([25fcde6](https://github.com/geekdada/surgio/commit/25fcde69365ca66dfcce3fe260a1c6e2d0bd57b3))
|
|
890
921
|
* LRU 缓存可能会被污染 ([929f7bd](https://github.com/geekdada/surgio/commit/929f7bd3a32adc40eb23ec782eba1ce2978569d8))
|
|
891
922
|
* Provider 组合后生成结果排序错乱 ([d051b28](https://github.com/geekdada/surgio/commit/d051b2851ff401038587baa88f0e5ddc134471bc))
|
|
892
|
-
* 在 external 中开启 tfo 和 mptcp 是没有意义的 ([8b0e6f0](https://github.com/geekdada/surgio/commit/8b0e6f07b35da4a6d0ab7164c1dd572e387b8b90))
|
|
893
923
|
|
|
894
924
|
|
|
895
925
|
### Features
|
|
896
926
|
|
|
897
|
-
* v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
|
|
898
927
|
* 域名解析失败后跳过 ([66f5af8](https://github.com/geekdada/surgio/commit/66f5af8d31416591a29e28ac8ae03d978fa50862))
|
|
899
928
|
* 支持从 Clash 订阅中读取 skipCertVerify ([c856731](https://github.com/geekdada/surgio/commit/c856731cec14246b1ced594627daa5c50a2959cd))
|
|
900
929
|
* 支持配置 Provider 缓存 ([16dc8fc](https://github.com/geekdada/surgio/commit/16dc8fce9911fee2cae2e8c12e8649d3ede44dfa))
|
|
930
|
+
* v2ray-plugin 强制输出 mux: false ([ba635c5](https://github.com/geekdada/surgio/commit/ba635c599065a88d5ba9d0fcd94a1f4939140da1))
|
|
901
931
|
|
|
902
932
|
|
|
903
933
|
|
|
@@ -920,9 +950,9 @@
|
|
|
920
950
|
|
|
921
951
|
### Features
|
|
922
952
|
|
|
923
|
-
* 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
|
|
924
953
|
* 更新 netflixFilter ([515cbe5](https://github.com/geekdada/surgio/commit/515cbe5a179f6a7a364dc4e0eba72f264fb82b57))
|
|
925
954
|
* 更新国旗数据库 ([18f22d2](https://github.com/geekdada/surgio/commit/18f22d213e90fc9f680323439cbe4082ea2b171b))
|
|
955
|
+
* 支持修改节点名 ([4437f0e](https://github.com/geekdada/surgio/commit/4437f0e628d13ae5f675b04aa0b7e44b66bc37a7))
|
|
926
956
|
|
|
927
957
|
|
|
928
958
|
|
|
@@ -940,8 +970,8 @@
|
|
|
940
970
|
|
|
941
971
|
### Bug Fixes
|
|
942
972
|
|
|
943
|
-
* broken test ([794be85](https://github.com/geekdada/surgio/commit/794be85268811ab665351ab255f368bc4a6d0754))
|
|
944
973
|
* 在某些情况下 Clash 的策略组中没输出 url 和 interval ([3884014](https://github.com/geekdada/surgio/commit/3884014c2296a59de90ae5f5e4803a3609f7893d))
|
|
974
|
+
* broken test ([794be85](https://github.com/geekdada/surgio/commit/794be85268811ab665351ab255f368bc4a6d0754))
|
|
945
975
|
|
|
946
976
|
|
|
947
977
|
|
|
@@ -1058,9 +1088,9 @@
|
|
|
1058
1088
|
|
|
1059
1089
|
### Features
|
|
1060
1090
|
|
|
1091
|
+
* 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
|
|
1061
1092
|
* 优化 dns 解析 ([345790e](https://github.com/geekdada/surgio/commit/345790eecd6b2f4745b91999004d921f41b259bc))
|
|
1062
1093
|
* 在模板中输出 proxyTestUrl ([b95cd8b](https://github.com/geekdada/surgio/commit/b95cd8b157e902a920699618cf1e61d1f615fd31))
|
|
1063
|
-
* 网关 get-artifact 支持直接输出 surge 和 qx 的节点列表 ([97f78c4](https://github.com/geekdada/surgio/commit/97f78c49ba3eeb050361807e2cbbfc44523f0804))
|
|
1064
1094
|
|
|
1065
1095
|
|
|
1066
1096
|
|
|
@@ -1069,16 +1099,16 @@
|
|
|
1069
1099
|
|
|
1070
1100
|
### Bug Fixes
|
|
1071
1101
|
|
|
1072
|
-
* 某些情况下 clash 配置没有输出 interval 和 url ([1978429](https://github.com/geekdada/surgio/commit/197842956a96fd35b91afd77cf358c1697ac7097))
|
|
1073
1102
|
* 空文件不会返回 404 ([271c398](https://github.com/geekdada/surgio/commit/271c398df29e8e3da2f4f22d6aa2d78aa49f122c))
|
|
1103
|
+
* 某些情况下 clash 配置没有输出 interval 和 url ([1978429](https://github.com/geekdada/surgio/commit/197842956a96fd35b91afd77cf358c1697ac7097))
|
|
1074
1104
|
|
|
1075
1105
|
|
|
1076
1106
|
### Features
|
|
1077
1107
|
|
|
1078
|
-
* nodeFilter 也支持过滤排序 ([6dd7f66](https://github.com/geekdada/surgio/commit/6dd7f665d26ad427f026786d5add8c578084f816))
|
|
1079
1108
|
* 增加规则过滤关键词 ([128f648](https://github.com/geekdada/surgio/commit/128f64835ccde09b4b0dda54e4075dc0218fbc10))
|
|
1080
|
-
* 支持在输出 external 时解析域名 ([1f78f44](https://github.com/geekdada/surgio/commit/1f78f44dde2949e384184d8fa59f566a45ed2d64))
|
|
1081
1109
|
* 支持排序类型的过滤器 ([db69447](https://github.com/geekdada/surgio/commit/db694473b1b88e44811971fbc0cd8761d0fcf4e3))
|
|
1110
|
+
* 支持在输出 external 时解析域名 ([1f78f44](https://github.com/geekdada/surgio/commit/1f78f44dde2949e384184d8fa59f566a45ed2d64))
|
|
1111
|
+
* nodeFilter 也支持过滤排序 ([6dd7f66](https://github.com/geekdada/surgio/commit/6dd7f665d26ad427f026786d5add8c578084f816))
|
|
1082
1112
|
|
|
1083
1113
|
|
|
1084
1114
|
|
|
@@ -1096,8 +1126,8 @@
|
|
|
1096
1126
|
|
|
1097
1127
|
### Features
|
|
1098
1128
|
|
|
1099
|
-
* Provider 处理改为并发 ([8bf2738](https://github.com/geekdada/surgio/commit/8bf2738f14f9d30b9bfbf6999fbbdf91a5993469))
|
|
1100
1129
|
* 优化远程片段获取的并发请求 ([7552fa0](https://github.com/geekdada/surgio/commit/7552fa05b073871aa6a50472f2386bfa4fa9421d))
|
|
1130
|
+
* Provider 处理改为并发 ([8bf2738](https://github.com/geekdada/surgio/commit/8bf2738f14f9d30b9bfbf6999fbbdf91a5993469))
|
|
1101
1131
|
|
|
1102
1132
|
|
|
1103
1133
|
|
|
@@ -1115,8 +1145,8 @@
|
|
|
1115
1145
|
|
|
1116
1146
|
### Bug Fixes
|
|
1117
1147
|
|
|
1118
|
-
* Close [#35](https://github.com/geekdada/surgio/issues/35) ([491b655](https://github.com/geekdada/surgio/commit/491b655bc8061ed120ab119bd5e4ac57859ea095))
|
|
1119
1148
|
* 由于 mellow 对 shadowsocks 支持有限,忽略该类型节点 ([8ae0561](https://github.com/geekdada/surgio/commit/8ae056194b938014eee4c0bebfb38ecf3de7cb10))
|
|
1149
|
+
* Close [#35](https://github.com/geekdada/surgio/issues/35) ([491b655](https://github.com/geekdada/surgio/commit/491b655bc8061ed120ab119bd5e4ac57859ea095))
|
|
1120
1150
|
|
|
1121
1151
|
|
|
1122
1152
|
### Features
|
|
@@ -1125,8 +1155,8 @@
|
|
|
1125
1155
|
* 增加 mellow 规则处理方法 ([b646199](https://github.com/geekdada/surgio/commit/b646199507d7558bd00daa89f4877501391e2605))
|
|
1126
1156
|
* 支持 Clash 的 'fallback-auto', 'load-balance' 策略 ([18f106f](https://github.com/geekdada/surgio/commit/18f106fee8c94c01bbf8a4a34fadfcd9557fdd2b)), closes [#34](https://github.com/geekdada/surgio/issues/34)
|
|
1127
1157
|
* 支持单独定义某个 artifact 的输出目录 ([bef00c7](https://github.com/geekdada/surgio/commit/bef00c7d9894476c695229a6e96f1d3f47fd91b1))
|
|
1128
|
-
* 支持在 surgio.conf.js 中定义全局 customFilters ([1701b85](https://github.com/geekdada/surgio/commit/1701b85d68e487b52fb529243d8826ee4b5a99a8))
|
|
1129
1158
|
* 支持导出 Mellow 节点 ([9a72ca2](https://github.com/geekdada/surgio/commit/9a72ca2ac7b9b59ee3c1b61180fd8fe915330ad8))
|
|
1159
|
+
* 支持在 surgio.conf.js 中定义全局 customFilters ([1701b85](https://github.com/geekdada/surgio/commit/1701b85d68e487b52fb529243d8826ee4b5a99a8))
|
|
1130
1160
|
|
|
1131
1161
|
|
|
1132
1162
|
|
|
@@ -1163,8 +1193,8 @@
|
|
|
1163
1193
|
|
|
1164
1194
|
### Features
|
|
1165
1195
|
|
|
1166
|
-
* check command ([2db635f](https://github.com/geekdada/surgio/commit/2db635ff91cd786daa6852abdd82896ab213f3ab))
|
|
1167
1196
|
* 面板增加添加 Clash 的按钮 ([b66e5f3](https://github.com/geekdada/surgio/commit/b66e5f31dae975ccac83742666ea7385a6e023e0))
|
|
1197
|
+
* check command ([2db635f](https://github.com/geekdada/surgio/commit/2db635ff91cd786daa6852abdd82896ab213f3ab))
|
|
1168
1198
|
|
|
1169
1199
|
|
|
1170
1200
|
|
|
@@ -1173,8 +1203,8 @@
|
|
|
1173
1203
|
|
|
1174
1204
|
### Features
|
|
1175
1205
|
|
|
1176
|
-
* youtubePremiumFilter 增加新加坡 ([7b32873](https://github.com/geekdada/surgio/commit/7b32873ff906156208ae7a03ea8002534a794c57))
|
|
1177
1206
|
* youtubePremiumFilter 增加香港 ([821bf3c](https://github.com/geekdada/surgio/commit/821bf3c653767490bf093e0980be091b28f3501d))
|
|
1207
|
+
* youtubePremiumFilter 增加新加坡 ([7b32873](https://github.com/geekdada/surgio/commit/7b32873ff906156208ae7a03ea8002534a794c57))
|
|
1178
1208
|
|
|
1179
1209
|
|
|
1180
1210
|
|
|
@@ -1210,10 +1240,10 @@
|
|
|
1210
1240
|
|
|
1211
1241
|
### Features
|
|
1212
1242
|
|
|
1213
|
-
*
|
|
1243
|
+
* 节点增加 tfo 参数 ([a820b89](https://github.com/geekdada/surgio/commit/a820b89590ac3379ccf109539000783b0d7b803a))
|
|
1214
1244
|
* 仅支持读取 ws 和 tcp 类型的 vmess 节点 ([de5bb35](https://github.com/geekdada/surgio/commit/de5bb35fcc3b4b4e6bb1bb12a6cc6f53bd6de2c8))
|
|
1215
1245
|
* 新增 getQuantumultXNodes ([d284d04](https://github.com/geekdada/surgio/commit/d284d0415e9524dffebd73d6085d1e11ceef3621))
|
|
1216
|
-
*
|
|
1246
|
+
* udp-relay 的值改为布尔类型,兼容字符串类型 ([f3eaaed](https://github.com/geekdada/surgio/commit/f3eaaed03727de525e12a454a8a966fd923f8d89))
|
|
1217
1247
|
|
|
1218
1248
|
|
|
1219
1249
|
|
|
@@ -1231,18 +1261,18 @@
|
|
|
1231
1261
|
|
|
1232
1262
|
### Bug Fixes
|
|
1233
1263
|
|
|
1234
|
-
* protoparam 和 obfsparam 中不能有空格 ([6cdb978](https://github.com/geekdada/surgio/commit/6cdb97880913a594115a59d49bfebcf90c555f7f))
|
|
1235
1264
|
* 加国旗正确识别中转节点了 ([3751dbf](https://github.com/geekdada/surgio/commit/3751dbf0f7f0d8619cfa28b2ec2cc8c24c4494a7))
|
|
1265
|
+
* protoparam 和 obfsparam 中不能有空格 ([6cdb978](https://github.com/geekdada/surgio/commit/6cdb97880913a594115a59d49bfebcf90c555f7f))
|
|
1236
1266
|
|
|
1237
1267
|
|
|
1238
1268
|
### Features
|
|
1239
1269
|
|
|
1240
|
-
* proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
|
|
1241
1270
|
* 不合法 yaml 文件识别 ([1654534](https://github.com/geekdada/surgio/commit/16545347613026a57bac46eb286e52f894384c11))
|
|
1242
|
-
* 允许用户覆盖 clash 订阅的 udp 转发支持 ([bb58c50](https://github.com/geekdada/surgio/commit/bb58c50aa5334ea9ce1ee4c323aa531dcbb32e79))
|
|
1243
1271
|
* 兼容v2rayn 订阅格式 ([8ba4625](https://github.com/geekdada/surgio/commit/8ba4625955bfb068028303a56148ac20e109e6e3))
|
|
1272
|
+
* 允许用户覆盖 clash 订阅的 udp 转发支持 ([bb58c50](https://github.com/geekdada/surgio/commit/bb58c50aa5334ea9ce1ee4c323aa531dcbb32e79))
|
|
1244
1273
|
* 增加 netflixFilter 规则 ([5cc52f1](https://github.com/geekdada/surgio/commit/5cc52f1c237b9c4fcf2dee56ea3c0caaf82695ad))
|
|
1245
1274
|
* 支持读取 Clash 订阅 ([45ef59f](https://github.com/geekdada/surgio/commit/45ef59f359e21e37f5dac242a33888c74ec1afbc))
|
|
1275
|
+
* proxyGroupModifier 支持 filter 和 proxies 组合 ([ba0f0c6](https://github.com/geekdada/surgio/commit/ba0f0c6bee8a14490c0124a7ff0773e636fd27e4))
|
|
1246
1276
|
|
|
1247
1277
|
|
|
1248
1278
|
|
|
@@ -1251,10 +1281,10 @@
|
|
|
1251
1281
|
|
|
1252
1282
|
### Features
|
|
1253
1283
|
|
|
1284
|
+
* 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
|
|
1254
1285
|
* better error message ([26fcaa3](https://github.com/geekdada/surgio/commit/26fcaa3310046fbd886cff2370a8bf31be96dcca))
|
|
1255
1286
|
* gateway request log ([891168b](https://github.com/geekdada/surgio/commit/891168b6a702a0440b5d0475a25d11345d594f52))
|
|
1256
1287
|
* quick editing from list-artifact ([2d1d605](https://github.com/geekdada/surgio/commit/2d1d605fe5dd36332a8f04476d397cb7a14b6684))
|
|
1257
|
-
* 新增过滤器 discardKeywords ([b9f0ecb](https://github.com/geekdada/surgio/commit/b9f0ecb97366835a71862cd8f032048322266336))
|
|
1258
1288
|
|
|
1259
1289
|
|
|
1260
1290
|
|
|
@@ -1318,10 +1348,10 @@
|
|
|
1318
1348
|
|
|
1319
1349
|
### Features
|
|
1320
1350
|
|
|
1351
|
+
* 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
|
|
1321
1352
|
* getNodeNames 和 getClashNodeNames 不再过滤 nodeType ([6571511](https://github.com/geekdada/surgio/commit/6571511f3d30aa3a283a69b81afb9aa548031b18))
|
|
1322
1353
|
* schema validation for config ([9f11254](https://github.com/geekdada/surgio/commit/9f11254d2bc7107e2299e1146553b03da1e9849f))
|
|
1323
1354
|
* schema validation for provider ([d738e0f](https://github.com/geekdada/surgio/commit/d738e0f999c91f577deb14793889210620757f36))
|
|
1324
|
-
* 合并 Provider 接口定义 ([f197e19](https://github.com/geekdada/surgio/commit/f197e198aaf826b91af6896d02046c15976e4962))
|
|
1325
1355
|
|
|
1326
1356
|
|
|
1327
1357
|
|
|
@@ -1438,8 +1468,8 @@
|
|
|
1438
1468
|
|
|
1439
1469
|
### Features
|
|
1440
1470
|
|
|
1441
|
-
* 增加了 Flag 识别字段 ([86c1489](https://github.com/geekdada/surgio/commit/86c14898001ab54b6a5387bf533c34d5917b4cbb))
|
|
1442
1471
|
* 增加错误文案方便调试 ([ff28793](https://github.com/geekdada/surgio/commit/ff287933e17cb0f7d8f9b7d4a454124420e7610c))
|
|
1472
|
+
* 增加了 Flag 识别字段 ([86c1489](https://github.com/geekdada/surgio/commit/86c14898001ab54b6a5387bf533c34d5917b4cbb))
|
|
1443
1473
|
|
|
1444
1474
|
|
|
1445
1475
|
|
|
@@ -1448,8 +1478,8 @@
|
|
|
1448
1478
|
|
|
1449
1479
|
### Bug Fixes
|
|
1450
1480
|
|
|
1451
|
-
* SSR URI 识别问题 ([46184fb](https://github.com/geekdada/surgio/commit/46184fbfdcd1583658db157123902862881413f5))
|
|
1452
1481
|
* 不需要 sort ([51f560f](https://github.com/geekdada/surgio/commit/51f560fc86b24c1b4319a83637c90e5449023520))
|
|
1482
|
+
* SSR URI 识别问题 ([46184fb](https://github.com/geekdada/surgio/commit/46184fbfdcd1583658db157123902862881413f5))
|
|
1453
1483
|
|
|
1454
1484
|
|
|
1455
1485
|
|
|
@@ -1458,9 +1488,9 @@
|
|
|
1458
1488
|
|
|
1459
1489
|
### Bug Fixes
|
|
1460
1490
|
|
|
1461
|
-
* clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
|
|
1462
1491
|
* 不手动指定不使用代理 ([d89198a](https://github.com/geekdada/surgio/commit/d89198a23cff4fe345f5597ab507b8680ac34b54))
|
|
1463
1492
|
* 文件名在 win 上取值错误 ([310518b](https://github.com/geekdada/surgio/commit/310518bd7cc37c2110dbcb50bdb1d5571bdb68cc))
|
|
1493
|
+
* clash 规则不输出 ssr 节点名 ([7360c7b](https://github.com/geekdada/surgio/commit/7360c7b86a6f8adb151ba6270193e7c42a1f2069))
|
|
1464
1494
|
|
|
1465
1495
|
|
|
1466
1496
|
|
|
@@ -1478,8 +1508,8 @@
|
|
|
1478
1508
|
|
|
1479
1509
|
### Features
|
|
1480
1510
|
|
|
1481
|
-
* add support for clashr ([43c4862](https://github.com/geekdada/surgio/commit/43c486277bdff42999f18a71a4627585461e4762))
|
|
1482
1511
|
* 远程片段支持读取原始内容 ([a1f9e0f](https://github.com/geekdada/surgio/commit/a1f9e0ff7f55b33f98934619a2e90c33ba0c8d20))
|
|
1512
|
+
* add support for clashr ([43c4862](https://github.com/geekdada/surgio/commit/43c486277bdff42999f18a71a4627585461e4762))
|
|
1483
1513
|
|
|
1484
1514
|
|
|
1485
1515
|
|
|
@@ -1493,10 +1523,10 @@
|
|
|
1493
1523
|
|
|
1494
1524
|
### Features
|
|
1495
1525
|
|
|
1526
|
+
* 节点名补充国旗 Emoji ([dc1f34e](https://github.com/geekdada/surgio/commit/dc1f34e3616e924acc2773dc7024a5e968981d53))
|
|
1527
|
+
* 增加国别判断字段 ([ce6828c](https://github.com/geekdada/surgio/commit/ce6828cdf80bd433d55ad788fac1529ef9b32fc6))
|
|
1496
1528
|
* add error message ([69b6bff](https://github.com/geekdada/surgio/commit/69b6bfffdca29c1d01cc77cf63730a12f7390822))
|
|
1497
1529
|
* 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
1530
|
|
|
1501
1531
|
|
|
1502
1532
|
|
|
@@ -1599,12 +1629,12 @@
|
|
|
1599
1629
|
|
|
1600
1630
|
### Features
|
|
1601
1631
|
|
|
1632
|
+
* 生成 quan 订阅 scheme ([afe0a21](https://github.com/geekdada/surgio/commit/afe0a2120b0eeb048deab09c24964d7bd3e14a60))
|
|
1633
|
+
* 生成 v2rayn scheme ([981e6d7](https://github.com/geekdada/surgio/commit/981e6d77517771da9510cc79c7e0cd8c7276d119))
|
|
1634
|
+
* 支持导出 Quantumult 的 HTTPS, Shadowsocksr 节点 ([dd728e0](https://github.com/geekdada/surgio/commit/dd728e02345669751b31227327abb20034dc5554))
|
|
1602
1635
|
* add shadowsocks subscribe support ([e993d1b](https://github.com/geekdada/surgio/commit/e993d1bfa1ab4a50464ca37f647e22cd7c0bee68))
|
|
1603
1636
|
* add v2rayn subscribe support ([067ad43](https://github.com/geekdada/surgio/commit/067ad4318b456f5ceaf47ad78b79d206544da72e))
|
|
1604
1637
|
* 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
1638
|
|
|
1609
1639
|
|
|
1610
1640
|
|
|
@@ -1613,8 +1643,8 @@
|
|
|
1613
1643
|
|
|
1614
1644
|
### Features
|
|
1615
1645
|
|
|
1616
|
-
* remote rule set ([a820cdb](https://github.com/geekdada/surgio/commit/a820cdb192daeb1f0a321e75ed447290b4e4207a)), closes [#5](https://github.com/geekdada/surgio/issues/5)
|
|
1617
1646
|
* 初始化配置时使用 defaultsDeep ([ab8f695](https://github.com/geekdada/surgio/commit/ab8f695a79bbf92248a193805032c81fc2e31434))
|
|
1647
|
+
* remote rule set ([a820cdb](https://github.com/geekdada/surgio/commit/a820cdb192daeb1f0a321e75ed447290b4e4207a)), closes [#5](https://github.com/geekdada/surgio/issues/5)
|
|
1618
1648
|
|
|
1619
1649
|
|
|
1620
1650
|
|
|
@@ -1629,8 +1659,8 @@
|
|
|
1629
1659
|
|
|
1630
1660
|
### Features
|
|
1631
1661
|
|
|
1632
|
-
* add cli update support ([2f2d340](https://github.com/geekdada/surgio/commit/2f2d340b0c4f65a1a601f62c2986c5384af6fd76))
|
|
1633
1662
|
* 模板 base64 filter ([3d45a23](https://github.com/geekdada/surgio/commit/3d45a23102cf642495e0920c91f2ed94de27a4e2))
|
|
1663
|
+
* add cli update support ([2f2d340](https://github.com/geekdada/surgio/commit/2f2d340b0c4f65a1a601f62c2986c5384af6fd76))
|
|
1634
1664
|
|
|
1635
1665
|
|
|
1636
1666
|
|
|
@@ -1644,8 +1674,8 @@
|
|
|
1644
1674
|
|
|
1645
1675
|
### Features
|
|
1646
1676
|
|
|
1647
|
-
* 在模板中暴露 nodeList 变量 ([c2eeb29](https://github.com/geekdada/surgio/commit/c2eeb295ff2ca7dc0407a2b67f8d1332aa26be60))
|
|
1648
1677
|
* 属性判空 ([13eb455](https://github.com/geekdada/surgio/commit/13eb455d3258f0067a244117a50688817bdb1433))
|
|
1678
|
+
* 在模板中暴露 nodeList 变量 ([c2eeb29](https://github.com/geekdada/surgio/commit/c2eeb295ff2ca7dc0407a2b67f8d1332aa26be60))
|
|
1649
1679
|
* 支持从 gui-config.json 中解析混淆配置 ([bc135a7](https://github.com/geekdada/surgio/commit/bc135a78c8eb0572ebc67b17ab9d7c6a9b4acf22))
|
|
1650
1680
|
|
|
1651
1681
|
|
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=
|
|
@@ -27,7 +27,9 @@ export declare class Artifact extends EventEmitter {
|
|
|
27
27
|
constructor(surgioConfig: CommandConfig, artifact: ArtifactConfig, options?: ArtifactOptions);
|
|
28
28
|
get isReady(): boolean;
|
|
29
29
|
getRenderContext(extendRenderContext?: ExtendableRenderContext): any;
|
|
30
|
-
init(
|
|
30
|
+
init({ requestUserAgent, }?: {
|
|
31
|
+
requestUserAgent?: string;
|
|
32
|
+
}): Promise<this>;
|
|
31
33
|
render(templateEngine?: Environment, extendRenderContext?: ExtendableRenderContext): string;
|
|
32
34
|
private providerMapper;
|
|
33
35
|
}
|