feat: proxy 增加 subName(订阅名), collectionName(组合订阅名); 脚本增加第三个参数 env(包含订阅/组合订阅/环境/版本等信息)

This commit is contained in:
xream
2023-10-08 13:21:22 +08:00
parent 3fbc280e28
commit d3c6c99b0a
12 changed files with 65 additions and 24 deletions

View File

@@ -60,7 +60,9 @@ export class OpenAPI {
});
this.root = {};
} else {
this.root = JSON.parse(this.node.fs.readFileSync(`${rootPath}`));
this.root = JSON.parse(
this.node.fs.readFileSync(`${rootPath}`),
);
}
// create a json file with the given name if not exists
@@ -72,9 +74,7 @@ export class OpenAPI {
});
this.cache = {};
} else {
this.cache = JSON.parse(
this.node.fs.readFileSync(`${fpath}`),
);
this.cache = JSON.parse(this.node.fs.readFileSync(`${fpath}`));
}
}
}