sub-store-convert 2.14.418 → 2.14.420

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/index.js +34 -48
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -1,15 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target2, all) => {
3
- for (var name in all)
4
- __defProp(target2, 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,8 +2056,8 @@ function isPresent2(obj, attr) {
2074
2056
  }
2075
2057
 
2076
2058
  // src/core/app/index.js
2077
- var app_default = new Proxy(target, {
2078
- apply: function(target2, thisArg, argumentsList) {
2059
+ var app_default = new Proxy({}, {
2060
+ apply: function(target, thisArg, argumentsList) {
2079
2061
  console.log(`Function called with arguments: ${argumentsList.join(", ")}`);
2080
2062
  }
2081
2063
  });
@@ -2090,7 +2072,7 @@ var ipVersions = {
2090
2072
  "ipv6-prefer": "prefer-v6"
2091
2073
  };
2092
2074
  function Surge_Producer() {
2093
- const produce = (proxy, type, opts = {}) => {
2075
+ const produce2 = (proxy, type, opts = {}) => {
2094
2076
  proxy.name = proxy.name.replace(/=|,/g, "");
2095
2077
  if (proxy.ports) {
2096
2078
  proxy.ports = String(proxy.ports);
@@ -2124,7 +2106,7 @@ function Surge_Producer() {
2124
2106
  `Platform ${targetPlatform} does not support proxy type: ${proxy.type}`
2125
2107
  );
2126
2108
  };
2127
- return { produce };
2109
+ return { produce: produce2 };
2128
2110
  }
2129
2111
  function shadowsocks(proxy, includeUnsupportedProxy) {
2130
2112
  const result = new Result(proxy);
@@ -2919,7 +2901,7 @@ import { Base64 as Base642 } from "js-base64";
2919
2901
  // Sub-Store/backend/src/core/proxy-utils/producers/clashmeta.js
2920
2902
  function ClashMeta_Producer() {
2921
2903
  const type = "ALL";
2922
- const produce = (proxies, type2, opts = {}) => {
2904
+ const produce2 = (proxies, type2, opts = {}) => {
2923
2905
  const list = proxies.filter((proxy) => {
2924
2906
  if (opts["include-unsupported-proxy"]) return true;
2925
2907
  if (proxy.type === "snell" && String(proxy.version) === "4") {
@@ -3052,14 +3034,14 @@ function ClashMeta_Producer() {
3052
3034
  });
3053
3035
  return type2 === "internal" ? list : "proxies:\n" + list.map((proxy) => " - " + JSON.stringify(proxy) + "\n").join("");
3054
3036
  };
3055
- return { type, produce };
3037
+ return { type, produce: produce2 };
3056
3038
  }
3057
3039
 
3058
3040
  // Sub-Store/backend/src/core/proxy-utils/producers/surgemac.js
3059
3041
  var targetPlatform2 = "SurgeMac";
3060
3042
  var surge_Producer = Surge_Producer();
3061
3043
  function SurgeMac_Producer() {
3062
- const produce = (proxy, type, opts = {}) => {
3044
+ const produce2 = (proxy, type, opts = {}) => {
3063
3045
  switch (proxy.type) {
3064
3046
  case "external":
3065
3047
  return external(proxy);
@@ -3083,7 +3065,7 @@ function SurgeMac_Producer() {
3083
3065
  }
3084
3066
  }
3085
3067
  };
3086
- return { produce };
3068
+ return { produce: produce2 };
3087
3069
  }
3088
3070
  function external(proxy) {
3089
3071
  const result = new Result(proxy);
@@ -3177,7 +3159,7 @@ function isIP2(ip) {
3177
3159
  // Sub-Store/backend/src/core/proxy-utils/producers/clash.js
3178
3160
  function Clash_Producer() {
3179
3161
  const type = "ALL";
3180
- const produce = (proxies, type2, opts = {}) => {
3162
+ const produce2 = (proxies, type2, opts = {}) => {
3181
3163
  const list = proxies.filter((proxy) => {
3182
3164
  if (opts["include-unsupported-proxy"]) return true;
3183
3165
  if (![
@@ -3304,13 +3286,13 @@ function Clash_Producer() {
3304
3286
  });
3305
3287
  return type2 === "internal" ? list : "proxies:\n" + list.map((proxy) => " - " + JSON.stringify(proxy) + "\n").join("");
3306
3288
  };
3307
- return { type, produce };
3289
+ return { type, produce: produce2 };
3308
3290
  }
3309
3291
 
3310
3292
  // Sub-Store/backend/src/core/proxy-utils/producers/stash.js
3311
3293
  function Stash_Producer() {
3312
3294
  const type = "ALL";
3313
- const produce = (proxies, type2, opts = {}) => {
3295
+ const produce2 = (proxies, type2, opts = {}) => {
3314
3296
  const list = proxies.filter((proxy) => {
3315
3297
  if (opts["include-unsupported-proxy"]) return true;
3316
3298
  if (![
@@ -3511,13 +3493,13 @@ function Stash_Producer() {
3511
3493
  });
3512
3494
  return type2 === "internal" ? list : "proxies:\n" + list.map((proxy) => " - " + JSON.stringify(proxy) + "\n").join("");
3513
3495
  };
3514
- return { type, produce };
3496
+ return { type, produce: produce2 };
3515
3497
  }
3516
3498
 
3517
3499
  // Sub-Store/backend/src/core/proxy-utils/producers/loon.js
3518
3500
  var targetPlatform3 = "Loon";
3519
3501
  function Loon_Producer() {
3520
- const produce = (proxy) => {
3502
+ const produce2 = (proxy) => {
3521
3503
  switch (proxy.type) {
3522
3504
  case "ss":
3523
3505
  return shadowsocks2(proxy);
@@ -3542,7 +3524,7 @@ function Loon_Producer() {
3542
3524
  `Platform ${targetPlatform3} does not support proxy type: ${proxy.type}`
3543
3525
  );
3544
3526
  };
3545
- return { produce };
3527
+ return { produce: produce2 };
3546
3528
  }
3547
3529
  function shadowsocks2(proxy) {
3548
3530
  const result = new Result(proxy);
@@ -3897,7 +3879,7 @@ function hysteria22(proxy) {
3897
3879
  import { Base64 as Base643 } from "js-base64";
3898
3880
  function URI_Producer() {
3899
3881
  const type = "SINGLE";
3900
- const produce = (proxy) => {
3882
+ const produce2 = (proxy) => {
3901
3883
  let result = "";
3902
3884
  delete proxy.subName;
3903
3885
  delete proxy.collectionName;
@@ -4288,7 +4270,7 @@ function URI_Producer() {
4288
4270
  }
4289
4271
  return result;
4290
4272
  };
4291
- return { type, produce };
4273
+ return { type, produce: produce2 };
4292
4274
  }
4293
4275
 
4294
4276
  // Sub-Store/backend/src/core/proxy-utils/producers/v2ray.js
@@ -4296,7 +4278,7 @@ import { Base64 as Base644 } from "js-base64";
4296
4278
  var URI = URI_Producer();
4297
4279
  function V2Ray_Producer() {
4298
4280
  const type = "ALL";
4299
- const produce = (proxies) => {
4281
+ const produce2 = (proxies) => {
4300
4282
  let result = [];
4301
4283
  proxies.map((proxy) => {
4302
4284
  try {
@@ -4314,13 +4296,13 @@ Reason: ${err}`
4314
4296
  });
4315
4297
  return Base644.encode(result.join("\n"));
4316
4298
  };
4317
- return { type, produce };
4299
+ return { type, produce: produce2 };
4318
4300
  }
4319
4301
 
4320
4302
  // Sub-Store/backend/src/core/proxy-utils/producers/qx.js
4321
4303
  var targetPlatform4 = "QX";
4322
4304
  function QX_Producer() {
4323
- const produce = (proxy, type, opts = {}) => {
4305
+ const produce2 = (proxy, type, opts = {}) => {
4324
4306
  switch (proxy.type) {
4325
4307
  case "ss":
4326
4308
  return shadowsocks3(proxy);
@@ -4341,7 +4323,7 @@ function QX_Producer() {
4341
4323
  `Platform ${targetPlatform4} does not support proxy type: ${proxy.type}`
4342
4324
  );
4343
4325
  };
4344
- return { produce };
4326
+ return { produce: produce2 };
4345
4327
  }
4346
4328
  function shadowsocks3(proxy) {
4347
4329
  const result = new Result(proxy);
@@ -4755,7 +4737,7 @@ function needTls(proxy) {
4755
4737
  // Sub-Store/backend/src/core/proxy-utils/producers/shadowrocket.js
4756
4738
  function ShadowRocket_Producer() {
4757
4739
  const type = "ALL";
4758
- const produce = (proxies, type2, opts = {}) => {
4740
+ const produce2 = (proxies, type2, opts = {}) => {
4759
4741
  const list = proxies.filter((proxy) => {
4760
4742
  if (opts["include-unsupported-proxy"]) return true;
4761
4743
  if (proxy.type === "snell" && String(proxy.version) === "4") {
@@ -4892,13 +4874,13 @@ function ShadowRocket_Producer() {
4892
4874
  return " - " + JSON.stringify(proxy) + "\n";
4893
4875
  }).join("");
4894
4876
  };
4895
- return { type, produce };
4877
+ return { type, produce: produce2 };
4896
4878
  }
4897
4879
 
4898
4880
  // Sub-Store/backend/src/core/proxy-utils/producers/surfboard.js
4899
4881
  var targetPlatform5 = "Surfboard";
4900
4882
  function Surfboard_Producer() {
4901
- const produce = (proxy) => {
4883
+ const produce2 = (proxy) => {
4902
4884
  proxy.name = proxy.name.replace(/=|,/g, "");
4903
4885
  switch (proxy.type) {
4904
4886
  case "ss":
@@ -4918,7 +4900,7 @@ function Surfboard_Producer() {
4918
4900
  `Platform ${targetPlatform5} does not support proxy type: ${proxy.type}`
4919
4901
  );
4920
4902
  };
4921
- return { produce };
4903
+ return { produce: produce2 };
4922
4904
  }
4923
4905
  function shadowsocks4(proxy) {
4924
4906
  const result = new Result(proxy);
@@ -5706,7 +5688,7 @@ var wireguardParser = (proxy = {}) => {
5706
5688
  };
5707
5689
  function singbox_Producer() {
5708
5690
  const type = "ALL";
5709
- const produce = (proxies, type2, opts = {}) => {
5691
+ const produce2 = (proxies, type2, opts = {}) => {
5710
5692
  const list = [];
5711
5693
  ClashMeta_Producer().produce(proxies, "internal", { "include-unsupported-proxy": true }).map((proxy) => {
5712
5694
  try {
@@ -5802,14 +5784,14 @@ function singbox_Producer() {
5802
5784
  });
5803
5785
  return type2 === "internal" ? list : JSON.stringify({ outbounds: list }, null, 2);
5804
5786
  };
5805
- return { type, produce };
5787
+ return { type, produce: produce2 };
5806
5788
  }
5807
5789
 
5808
5790
  // Sub-Store/backend/src/core/proxy-utils/producers/index.js
5809
5791
  function JSON_Producer() {
5810
5792
  const type = "ALL";
5811
- const produce = (proxies, type2) => type2 === "internal" ? proxies : JSON.stringify(proxies, null, 2);
5812
- return { type, produce };
5793
+ const produce2 = (proxies, type2) => type2 === "internal" ? proxies : JSON.stringify(proxies, null, 2);
5794
+ return { type, produce: produce2 };
5813
5795
  }
5814
5796
  var producers_default = {
5815
5797
  QX: QX_Producer(),
@@ -5828,7 +5810,11 @@ var producers_default = {
5828
5810
  Surfboard: Surfboard_Producer(),
5829
5811
  "sing-box": singbox_Producer()
5830
5812
  };
5813
+
5814
+ // src/index.js
5815
+ var parsers = parsers_default;
5816
+ var produce = producers_default;
5831
5817
  export {
5832
- parsers_exports as parsers,
5833
- producers_exports as produce
5818
+ parsers,
5819
+ produce
5834
5820
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sub-store-convert",
3
- "version": "2.14.418",
3
+ "version": "2.14.420",
4
4
  "description": "Advanced Subscription Converter for QX, Loon, Surge, Stash and ShadowRocket.",
5
5
  "module": "./build/index.js",
6
6
  "license": "MIT",