This commit is contained in:
K committed 2026-09-01 15:19:16 +08:00
1 parent 5d8656217c
commit 0c93d68d07
2 files changed
+3 -6

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.36.55",
"version": "2.36.56",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"packageManager": "pnpm@11.0.9",
+2 -5
View File
@@ -482,7 +482,6 @@ export function HTTP(defaultOptions = { baseURL: '' }) {
opts.body = body;
opts.timeout = Number(opts.timeout) || 8000;
if (isNode) {
const undici = eval("require('undici')");
const { socksDispatcher } = eval("require('fetch-socks')");
@@ -606,7 +605,7 @@ export function HTTP(defaultOptions = { baseURL: '' }) {
reject(e);
}
} else {
if (isSurge || isStash || isShadowRocket) {
if (isSurge || isEgern || isStash || isShadowRocket) {
opts.timeout = Math.ceil(opts.timeout / 1000);
}
@@ -719,9 +718,7 @@ export function HTTP(defaultOptions = { baseURL: '' }) {
worker.then(
async (value) => {
// $.info(`🍉 [${requestId}] worker resolved`);
try {
await resolveOnce(value);
} catch (error) {}
await resolveOnce(value);
},
(error) => {
rejectOnce(error);