sub-store-convert 2.20.29 → 2.20.32

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.
@@ -1,5 +1,4 @@
1
1
  // src/vendors/Sub-Store/backend/src/utils/index.js
2
- import * as ipAddress from "ip-address";
3
2
  var IPV4_REGEX = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|$)){4}$/;
4
3
  var IPV6_REGEX = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
5
4
  function isIPv4(ip) {
@@ -3350,6 +3349,8 @@ function ClashMeta_Producer() {
3350
3349
  return false;
3351
3350
  } else if (["anytls"].includes(proxy.type) && proxy.network && (!["tcp"].includes(proxy.network) || ["tcp"].includes(proxy.network) && proxy["reality-opts"])) {
3352
3351
  return false;
3352
+ } else if (["xhttp"].includes(proxy.network)) {
3353
+ return false;
3353
3354
  }
3354
3355
  return true;
3355
3356
  }).map((proxy) => {
@@ -4581,7 +4582,6 @@ function hysteria22(proxy) {
4581
4582
 
4582
4583
  // src/vendors/Sub-Store/backend/src/core/proxy-utils/producers/uri.js
4583
4584
  import { Base64 as Base643 } from "js-base64";
4584
- import { uuid } from "automerge";
4585
4585
  function vless2(proxy) {
4586
4586
  let security = "none";
4587
4587
  const isReality = proxy["reality-opts"];
@@ -5719,6 +5719,8 @@ function Shadowrocket_Producer() {
5719
5719
  }
5720
5720
  } else if (["anytls"].includes(proxy.type) && proxy.network && (!["tcp"].includes(proxy.network) || ["tcp"].includes(proxy.network) && proxy["reality-opts"])) {
5721
5721
  return false;
5722
+ } else if (["xhttp"].includes(proxy.network)) {
5723
+ return false;
5722
5724
  }
5723
5725
  if (["vmess", "vless"].includes(proxy.type) && proxy.network === "http") {
5724
5726
  let httpPath = proxy["http-opts"]?.path;
package/package.json CHANGED
@@ -1,28 +1,25 @@
1
1
  {
2
2
  "name": "sub-store-convert",
3
- "version": "2.20.29",
4
- "module": "./packages/core/build/index.js",
3
+ "version": "2.20.32",
4
+ "description": "Advanced Subscription Converter for QX, Loon, Surge, Stash and ShadowRocket.",
5
+ "type": "module",
6
+ "module": "./index.js",
5
7
  "license": "MIT",
6
8
  "exports": {
7
9
  ".": {
8
- "import": "./packages/core/build/index.js"
10
+ "import": "./build/index.js"
9
11
  }
10
12
  },
11
13
  "files": [
12
- "packages/core/build"
14
+ "index.js"
13
15
  ],
14
- "devDependencies": {
15
- "esbuild": "^0.25.10",
16
- "wrangler": "^3.114.15"
16
+ "dependencies": {
17
+ "js-base64": "^3.7.8",
18
+ "json5": "^2.2.3",
19
+ "lodash": "^4.17.21",
20
+ "peggy": "^4.2.0",
21
+ "static-js-yaml": "^1.0.0"
17
22
  },
18
- "scripts": {
19
- "build": "pnpm --filter @sub-store-convert/core build",
20
- "build:docker": "docker build -t ghcr.io/tbxark/sub-store-convert:latest .",
21
- "start": "pnpm --filter @sub-store-convert/app start",
22
- "start:bun": "pnpm --filter @sub-store-convert/app start:bun",
23
- "start:node": "pnpm --filter @sub-store-convert/app start:node",
24
- "start:docker": "docker run --rm --name sub-store-convert -p 3000:3000 ghcr.io/tbxark/sub-store-convert:latest",
25
- "deploy": "pnpm --filter @sub-store-convert/app deploy",
26
- "clean": "pnpm -r clean && rm -rf node_modules"
27
- }
23
+ "devDependencies": {},
24
+ "main": "./index.js"
28
25
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 tbxark
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/README.md DELETED
@@ -1,7 +0,0 @@
1
- # sub-store-convert
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).
4
-
5
- ## LICENSE
6
-
7
- **sub-store-convert** is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.