mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-06-03 18:53:59 +08:00
feat: 单条订阅和文件支持链接参数 produceType raw, 此时返回原始数据的数组
This commit is contained in:
parent
ef2d6be8eb
commit
9c5d6e9a10
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.19.46",
|
||||
"version": "2.19.47",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
@ -174,7 +174,7 @@ async function produceArtifact({
|
||||
}
|
||||
}
|
||||
if (produceType === 'raw') {
|
||||
return (Array.isArray(raw) ? raw : [raw]).flat();
|
||||
return JSON.stringify((Array.isArray(raw) ? raw : [raw]).flat());
|
||||
}
|
||||
// parse proxies
|
||||
let proxies = (Array.isArray(raw) ? raw : [raw])
|
||||
@ -574,7 +574,7 @@ async function produceArtifact({
|
||||
}
|
||||
}
|
||||
if (produceType === 'raw') {
|
||||
return (Array.isArray(raw) ? raw : [raw]).flat();
|
||||
return JSON.stringify((Array.isArray(raw) ? raw : [raw]).flat());
|
||||
}
|
||||
const files = (Array.isArray(raw) ? raw : [raw]).flat();
|
||||
let filesContent = files
|
||||
|
Loading…
x
Reference in New Issue
Block a user