mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
feat: JSON 输出支持 produceType internal
This commit is contained in:
@@ -13,7 +13,8 @@ import singbox_Producer from './sing-box';
|
||||
|
||||
function JSON_Producer() {
|
||||
const type = 'ALL';
|
||||
const produce = (proxies) => JSON.stringify(proxies, null, 2);
|
||||
const produce = (proxies, type) =>
|
||||
type === 'internal' ? proxies : JSON.stringify(proxies, null, 2);
|
||||
return { type, produce };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user