sub-store-convert 2.14.419 → 2.14.421

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/README.md CHANGED
@@ -1,3 +1,8 @@
1
1
  # sub-store-convert
2
2
 
3
- **sub-store-convert** is a tool that runs the node conversion logic independently from the [**Sub-Store**](https://github.com/sub-store-org/Sub-Store).
3
+ **sub-store-convert** is a tool that runs the node conversion logic independently from the [**Sub-Store**](https://github.com/sub-store-org/Sub-Store).
4
+
5
+
6
+ ## LICENSE
7
+
8
+ **sub-store-convert** is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
package/build/index.js CHANGED
@@ -1,15 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
- // Sub-Store/backend/src/core/proxy-utils/parsers/index.js
8
- var parsers_exports = {};
9
- __export(parsers_exports, {
10
- default: () => parsers_default
11
- });
12
-
13
1
  // Sub-Store/backend/src/utils/index.js
14
2
  import * as ipAddress from "ip-address";
15
3
  var IPV4_REGEX = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/;
@@ -2040,12 +2028,6 @@ var parsers_default = [
2040
2028
  QX_Socks5()
2041
2029
  ];
2042
2030
 
2043
- // Sub-Store/backend/src/core/proxy-utils/producers/index.js
2044
- var producers_exports = {};
2045
- __export(producers_exports, {
2046
- default: () => producers_default
2047
- });
2048
-
2049
2031
  // Sub-Store/backend/src/core/proxy-utils/producers/utils.js
2050
2032
  import _ from "lodash";
2051
2033
  var Result = class {
@@ -2074,9 +2056,14 @@ function isPresent2(obj, attr) {
2074
2056
  }
2075
2057
 
2076
2058
  // src/core/app/index.js
2077
- var app_default = new Proxy({}, {
2078
- apply: function(target, thisArg, argumentsList) {
2079
- console.log(`Function called with arguments: ${argumentsList.join(", ")}`);
2059
+ var app_default = new Proxy(console, {
2060
+ get: function(target, prop) {
2061
+ if (prop in target) {
2062
+ return target[prop];
2063
+ }
2064
+ return function() {
2065
+ return void 0;
2066
+ };
2080
2067
  }
2081
2068
  });
2082
2069
 
@@ -2090,7 +2077,7 @@ var ipVersions = {
2090
2077
  "ipv6-prefer": "prefer-v6"
2091
2078
  };
2092
2079
  function Surge_Producer() {
2093
- const produce = (proxy, type, opts = {}) => {
2080
+ const produce2 = (proxy, type, opts = {}) => {
2094
2081
  proxy.name = proxy.name.replace(/=|,/g, "");
2095
2082
  if (proxy.ports) {
2096
2083
  proxy.ports = String(proxy.ports);
@@ -2124,7 +2111,7 @@ function Surge_Producer() {
2124
2111
  `Platform ${targetPlatform} does not support proxy type: ${proxy.type}`
2125
2112
  );
2126
2113
  };
2127
- return { produce };
2114
+ return { produce: produce2 };
2128
2115
  }
2129
2116
  function shadowsocks(proxy, includeUnsupportedProxy) {
2130
2117
  const result = new Result(proxy);
@@ -2919,7 +2906,7 @@ import { Base64 as Base642 } from "js-base64";
2919
2906
  // Sub-Store/backend/src/core/proxy-utils/producers/clashmeta.js
2920
2907
  function ClashMeta_Producer() {
2921
2908
  const type = "ALL";
2922
- const produce = (proxies, type2, opts = {}) => {
2909
+ const produce2 = (proxies, type2, opts = {}) => {
2923
2910
  const list = proxies.filter((proxy) => {
2924
2911
  if (opts["include-unsupported-proxy"]) return true;
2925
2912
  if (proxy.type === "snell" && String(proxy.version) === "4") {
@@ -3052,14 +3039,14 @@ function ClashMeta_Producer() {
3052
3039
  });
3053
3040
  return type2 === "internal" ? list : "proxies:\n" + list.map((proxy) => " - " + JSON.stringify(proxy) + "\n").join("");
3054
3041
  };
3055
- return { type, produce };
3042
+ return { type, produce: produce2 };
3056
3043
  }
3057
3044
 
3058
3045
  // Sub-Store/backend/src/core/proxy-utils/producers/surgemac.js
3059
3046
  var targetPlatform2 = "SurgeMac";
3060
3047
  var surge_Producer = Surge_Producer();
3061
3048
  function SurgeMac_Producer() {
3062
- const produce = (proxy, type, opts = {}) => {
3049
+ const produce2 = (proxy, type, opts = {}) => {
3063
3050
  switch (proxy.type) {
3064
3051
  case "external":
3065
3052
  return external(proxy);
@@ -3083,7 +3070,7 @@ function SurgeMac_Producer() {
3083
3070
  }
3084
3071
  }
3085
3072
  };
3086
- return { produce };
3073
+ return { produce: produce2 };
3087
3074
  }
3088
3075
  function external(proxy) {
3089
3076
  const result = new Result(proxy);
@@ -3177,7 +3164,7 @@ function isIP2(ip) {
3177
3164
  // Sub-Store/backend/src/core/proxy-utils/producers/clash.js
3178
3165
  function Clash_Producer() {
3179
3166
  const type = "ALL";
3180
- const produce = (proxies, type2, opts = {}) => {
3167
+ const produce2 = (proxies, type2, opts = {}) => {
3181
3168
  const list = proxies.filter((proxy) => {
3182
3169
  if (opts["include-unsupported-proxy"]) return true;
3183
3170
  if (![
@@ -3304,13 +3291,13 @@ function Clash_Producer() {
3304
3291
  });
3305
3292
  return type2 === "internal" ? list : "proxies:\n" + list.map((proxy) => " - " + JSON.stringify(proxy) + "\n").join("");
3306
3293
  };
3307
- return { type, produce };
3294
+ return { type, produce: produce2 };
3308
3295
  }
3309
3296
 
3310
3297
  // Sub-Store/backend/src/core/proxy-utils/producers/stash.js
3311
3298
  function Stash_Producer() {
3312
3299
  const type = "ALL";
3313
- const produce = (proxies, type2, opts = {}) => {
3300
+ const produce2 = (proxies, type2, opts = {}) => {
3314
3301
  const list = proxies.filter((proxy) => {
3315
3302
  if (opts["include-unsupported-proxy"]) return true;
3316
3303
  if (![
@@ -3511,13 +3498,13 @@ function Stash_Producer() {
3511
3498
  });
3512
3499
  return type2 === "internal" ? list : "proxies:\n" + list.map((proxy) => " - " + JSON.stringify(proxy) + "\n").join("");
3513
3500
  };
3514
- return { type, produce };
3501
+ return { type, produce: produce2 };
3515
3502
  }
3516
3503
 
3517
3504
  // Sub-Store/backend/src/core/proxy-utils/producers/loon.js
3518
3505
  var targetPlatform3 = "Loon";
3519
3506
  function Loon_Producer() {
3520
- const produce = (proxy) => {
3507
+ const produce2 = (proxy) => {
3521
3508
  switch (proxy.type) {
3522
3509
  case "ss":
3523
3510
  return shadowsocks2(proxy);
@@ -3542,7 +3529,7 @@ function Loon_Producer() {
3542
3529
  `Platform ${targetPlatform3} does not support proxy type: ${proxy.type}`
3543
3530
  );
3544
3531
  };
3545
- return { produce };
3532
+ return { produce: produce2 };
3546
3533
  }
3547
3534
  function shadowsocks2(proxy) {
3548
3535
  const result = new Result(proxy);
@@ -3897,7 +3884,7 @@ function hysteria22(proxy) {
3897
3884
  import { Base64 as Base643 } from "js-base64";
3898
3885
  function URI_Producer() {
3899
3886
  const type = "SINGLE";
3900
- const produce = (proxy) => {
3887
+ const produce2 = (proxy) => {
3901
3888
  let result = "";
3902
3889
  delete proxy.subName;
3903
3890
  delete proxy.collectionName;
@@ -4288,7 +4275,7 @@ function URI_Producer() {
4288
4275
  }
4289
4276
  return result;
4290
4277
  };
4291
- return { type, produce };
4278
+ return { type, produce: produce2 };
4292
4279
  }
4293
4280
 
4294
4281
  // Sub-Store/backend/src/core/proxy-utils/producers/v2ray.js
@@ -4296,7 +4283,7 @@ import { Base64 as Base644 } from "js-base64";
4296
4283
  var URI = URI_Producer();
4297
4284
  function V2Ray_Producer() {
4298
4285
  const type = "ALL";
4299
- const produce = (proxies) => {
4286
+ const produce2 = (proxies) => {
4300
4287
  let result = [];
4301
4288
  proxies.map((proxy) => {
4302
4289
  try {
@@ -4314,13 +4301,13 @@ Reason: ${err}`
4314
4301
  });
4315
4302
  return Base644.encode(result.join("\n"));
4316
4303
  };
4317
- return { type, produce };
4304
+ return { type, produce: produce2 };
4318
4305
  }
4319
4306
 
4320
4307
  // Sub-Store/backend/src/core/proxy-utils/producers/qx.js
4321
4308
  var targetPlatform4 = "QX";
4322
4309
  function QX_Producer() {
4323
- const produce = (proxy, type, opts = {}) => {
4310
+ const produce2 = (proxy, type, opts = {}) => {
4324
4311
  switch (proxy.type) {
4325
4312
  case "ss":
4326
4313
  return shadowsocks3(proxy);
@@ -4341,7 +4328,7 @@ function QX_Producer() {
4341
4328
  `Platform ${targetPlatform4} does not support proxy type: ${proxy.type}`
4342
4329
  );
4343
4330
  };
4344
- return { produce };
4331
+ return { produce: produce2 };
4345
4332
  }
4346
4333
  function shadowsocks3(proxy) {
4347
4334
  const result = new Result(proxy);
@@ -4755,7 +4742,7 @@ function needTls(proxy) {
4755
4742
  // Sub-Store/backend/src/core/proxy-utils/producers/shadowrocket.js
4756
4743
  function ShadowRocket_Producer() {
4757
4744
  const type = "ALL";
4758
- const produce = (proxies, type2, opts = {}) => {
4745
+ const produce2 = (proxies, type2, opts = {}) => {
4759
4746
  const list = proxies.filter((proxy) => {
4760
4747
  if (opts["include-unsupported-proxy"]) return true;
4761
4748
  if (proxy.type === "snell" && String(proxy.version) === "4") {
@@ -4892,13 +4879,13 @@ function ShadowRocket_Producer() {
4892
4879
  return " - " + JSON.stringify(proxy) + "\n";
4893
4880
  }).join("");
4894
4881
  };
4895
- return { type, produce };
4882
+ return { type, produce: produce2 };
4896
4883
  }
4897
4884
 
4898
4885
  // Sub-Store/backend/src/core/proxy-utils/producers/surfboard.js
4899
4886
  var targetPlatform5 = "Surfboard";
4900
4887
  function Surfboard_Producer() {
4901
- const produce = (proxy) => {
4888
+ const produce2 = (proxy) => {
4902
4889
  proxy.name = proxy.name.replace(/=|,/g, "");
4903
4890
  switch (proxy.type) {
4904
4891
  case "ss":
@@ -4918,7 +4905,7 @@ function Surfboard_Producer() {
4918
4905
  `Platform ${targetPlatform5} does not support proxy type: ${proxy.type}`
4919
4906
  );
4920
4907
  };
4921
- return { produce };
4908
+ return { produce: produce2 };
4922
4909
  }
4923
4910
  function shadowsocks4(proxy) {
4924
4911
  const result = new Result(proxy);
@@ -5706,7 +5693,7 @@ var wireguardParser = (proxy = {}) => {
5706
5693
  };
5707
5694
  function singbox_Producer() {
5708
5695
  const type = "ALL";
5709
- const produce = (proxies, type2, opts = {}) => {
5696
+ const produce2 = (proxies, type2, opts = {}) => {
5710
5697
  const list = [];
5711
5698
  ClashMeta_Producer().produce(proxies, "internal", { "include-unsupported-proxy": true }).map((proxy) => {
5712
5699
  try {
@@ -5802,14 +5789,14 @@ function singbox_Producer() {
5802
5789
  });
5803
5790
  return type2 === "internal" ? list : JSON.stringify({ outbounds: list }, null, 2);
5804
5791
  };
5805
- return { type, produce };
5792
+ return { type, produce: produce2 };
5806
5793
  }
5807
5794
 
5808
5795
  // Sub-Store/backend/src/core/proxy-utils/producers/index.js
5809
5796
  function JSON_Producer() {
5810
5797
  const type = "ALL";
5811
- const produce = (proxies, type2) => type2 === "internal" ? proxies : JSON.stringify(proxies, null, 2);
5812
- return { type, produce };
5798
+ const produce2 = (proxies, type2) => type2 === "internal" ? proxies : JSON.stringify(proxies, null, 2);
5799
+ return { type, produce: produce2 };
5813
5800
  }
5814
5801
  var producers_default = {
5815
5802
  QX: QX_Producer(),
@@ -5828,7 +5815,11 @@ var producers_default = {
5828
5815
  Surfboard: Surfboard_Producer(),
5829
5816
  "sing-box": singbox_Producer()
5830
5817
  };
5818
+
5819
+ // src/index.js
5820
+ var parsers = parsers_default;
5821
+ var produce = producers_default;
5831
5822
  export {
5832
- parsers_exports as parsers,
5833
- producers_exports as produce
5823
+ parsers,
5824
+ produce
5834
5825
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sub-store-convert",
3
- "version": "2.14.419",
3
+ "version": "2.14.421",
4
4
  "description": "Advanced Subscription Converter for QX, Loon, Surge, Stash and ShadowRocket.",
5
5
  "module": "./build/index.js",
6
6
  "license": "MIT",