diff --git a/backend/package.json b/backend/package.json index 39eab8c5..0bc2062d 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.21.70", + "version": "2.21.71", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/index.js b/backend/src/core/proxy-utils/index.js index 258db83c..d1789701 100644 --- a/backend/src/core/proxy-utils/index.js +++ b/backend/src/core/proxy-utils/index.js @@ -26,6 +26,7 @@ import Gist from '@/utils/gist'; import { isPresent } from './producers/utils'; import { doh } from '@/utils/dns'; import JSON5 from 'json5'; +import { hex_md5 } from '@/vendor/md5'; function preprocess(raw) { for (const processor of PROXY_PREPROCESSORS) { @@ -351,6 +352,7 @@ export const ProxyUtils = { Buffer, Base64, JSON5, + hex_md5, }; function tryParse(parser, line) { diff --git a/scripts/demo.js b/scripts/demo.js index bf0101f2..32d6cb42 100644 --- a/scripts/demo.js +++ b/scripts/demo.js @@ -188,6 +188,7 @@ function operator(proxies = [], targetPlatform, context) { // Buffer, // https://github.com/feross/buffer // Base64, // https://github.com/dankogai/js-base64 // JSON5, // https://github.com/json5/json5 + // hex_md5, // backend/src/vendor/md5.js // } // 为兼容 https://github.com/xishang0128/sparkle 的 JavaScript 覆写, 也可以直接使用 `b64d`(Base64 解码), `b64e`(Base64 编码), `Buffer`, `yaml`(简单兼容了下 `yaml.parse` 和 `yaml.stringify`)