feat: ProxyUtils 新增 hex_md5

This commit is contained in:
xream committed 2026-04-02 15:50:56 +08:00
1 parent ee6148c347
commit 436a631902
3 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -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": {
+2
View File
@@ -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) {
+1
View File
@@ -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`)