From a12adf5255eb272827477e1aa7a732d026610327 Mon Sep 17 00:00:00 2001 From: xream Date: Sat, 20 Jan 2024 22:14:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=84=9A=E6=9C=AC=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E4=BD=BF=E7=94=A8=E7=A9=BA=E5=80=BC=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E8=BF=90=E7=AE=97=E7=AC=A6?= 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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 0ec1eb4..1f66af1 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.187", + "version": "2.14.188", "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 d8fc897..449b101 100644 --- a/backend/src/core/proxy-utils/processors/index.js +++ b/backend/src/core/proxy-utils/processors/index.js @@ -324,7 +324,7 @@ function ScriptOperator(script, targetPlatform, $arguments, source) { const operator = createDynamicFunction( 'operator', `async function operator(input = []) { - if (input?.$files || input?.$content) { + if (input && (input.$files || input.$content)) { let { $content, $files } = input ${script} return { $content, $files }