mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-29 07:50:33 +00:00
feat: ProxyUtils 新增 hex_md5
This commit is contained in:
3 files changed
+4
-1
No files matched your search
@@ -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": {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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`)
|
||||
|
||||
|
||||
Reference in new issue
Block a user