From e61baf69a08af734aa7f374522a6dbb9f8e30773 Mon Sep 17 00:00:00 2001 From: xream Date: Sat, 31 Aug 2024 22:01:55 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat:=20=E8=84=9A=E6=9C=AC=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E4=BC=A0=E5=85=A5=E4=B8=8A=E4=B8=8B=E6=96=87=20`requi?= =?UTF-8?q?re`=20(=E4=BB=85=E5=AF=B9=E5=BA=94=E7=9A=84=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E6=94=AF=E6=8C=81)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/processors/index.js | 4 ---- scripts/demo.js | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/backend/package.json b/backend/package.json index 860548f21..060da5155 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.366", + "version": "2.14.367", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/processors/index.js b/backend/src/core/proxy-utils/processors/index.js index e2a7564e8..9c01526ad 100644 --- a/backend/src/core/proxy-utils/processors/index.js +++ b/backend/src/core/proxy-utils/processors/index.js @@ -987,7 +987,6 @@ function createDynamicFunction(name, script, $arguments) { 'scriptResourceCache', 'flowUtils', 'produceArtifact', - 'require', `${script}\n return ${name}`, )( $arguments, @@ -1003,7 +1002,6 @@ function createDynamicFunction(name, script, $arguments) { scriptResourceCache, flowUtils, produceArtifact, - require, ); } else { return new Function( @@ -1014,7 +1012,6 @@ function createDynamicFunction(name, script, $arguments) { 'scriptResourceCache', 'flowUtils', 'produceArtifact', - 'require', `${script}\n return ${name}`, )( @@ -1025,7 +1022,6 @@ function createDynamicFunction(name, script, $arguments) { scriptResourceCache, flowUtils, produceArtifact, - require, ); } } diff --git a/scripts/demo.js b/scripts/demo.js index ff266ae5d..3223ce3e6 100644 --- a/scripts/demo.js +++ b/scripts/demo.js @@ -3,8 +3,6 @@ function operator(proxies = [], targetPlatform, context) { // 可参考 https://t.me/zhetengsha/970 // https://t.me/zhetengsha/1009 - // require 为 Node.js 的 require, 在 Node.js 运行环境下 可以用来引入模块 - // proxies 为传入的内部节点数组 // 可在预览界面点击节点查看 JSON 结构 或查看 `target=JSON` 的通用订阅 // 0. 结构大致参考了 Clash.Meta(mihomo), 可参考 mihomo 的文档, 例如 `xudp`, `smux` 都可以自己设置. 但是有私货, 下面是我能想起来的一些私货