mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-29 16:01:38 +00:00
ms s
This commit is contained in:
1 parent
5d8656217c
commit
0c93d68d07
2 files changed
+3
-6
No files matched your search
@@ -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",
|
||||
|
||||
Vendored
+2
-5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user