Skip to content

Commit 59d441c

Browse files
committed
fix: 修复processSingleInput中input未正确赋值的问题
将data默认值从null改为直接使用input参数,确保输入值被正确处理
1 parent 8f72e47 commit 59d441c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store-node",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"private": true,
55
"license": "GPL-3.0",
66
"scripts": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default async function processNodeConversion(urlArray, platform) {
4848
* @returns {Promise<{data: any, headers: Object}>} 处理后的结果和响应头
4949
*/
5050
async function processSingleInput(input, platform) {
51-
let data = null;
51+
let data = input;
5252
let proxies = [];
5353
let headers = {};
5454
const isHttpInput = /^https?:\/\//i.test(input);

0 commit comments

Comments
 (0)