diff --git a/backend/package.json b/backend/package.json index 9e4e226..b87d992 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.16.35", + "version": "2.16.36", "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 f024594..5cc4a40 100644 --- a/backend/src/core/proxy-utils/processors/index.js +++ b/backend/src/core/proxy-utils/processors/index.js @@ -365,7 +365,9 @@ function ScriptOperator(script, targetPlatform, $arguments, source, $options) { if (output?.$file?.type === 'mihomoProfile') { try { let patch = YAML.safeLoad(script); - if (typeof patch !== 'object') patch = {}; + // if (typeof patch !== 'object') patch = {}; + if (typeof patch !== 'object') + throw new Error('patch is not an object'); output.$content = ProxyUtils.yaml.safeDump( deepMerge( {