feat: ProxyUtils 新增 JSON5

This commit is contained in:
xream
2025-06-05 11:01:41 +08:00
parent 956fff1b98
commit 6cfcd1c6e2
4 changed files with 22 additions and 3 deletions

View File

@@ -133,6 +133,7 @@ function operator(proxies = [], targetPlatform, context) {
// isValidUUID, // 辅助判断是否为有效的 UUID
// Buffer, // https://github.com/feross/buffer
// Base64, // https://github.com/dankogai/js-base64
// JSON5, // https://github.com/json5/json5
// }
// 为兼容 https://github.com/xishang0128/sparkle 的 JavaScript 覆写, 也可以直接使用 `b64d`(Base64 解码), `b64e`(Base64 编码), `Buffer`, `yaml`(简单兼容了下 `yaml.parse` 和 `yaml.stringify`)