mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 23:34:14 +01:00
Remove unused patch
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
@@ -385,7 +385,6 @@
|
||||
"@types/node-fetch@2.6.12": "patches/@types__node-fetch@2.6.12.patch",
|
||||
"fabric@4.6.0": "patches/fabric+4.6.0.patch",
|
||||
"@vitest/expect@2.0.5": "patches/@vitest+expect+2.0.5.patch",
|
||||
"got@11.8.5": "patches/got+11.8.5.patch",
|
||||
"growing-file@0.1.3": "patches/growing-file+0.1.3.patch",
|
||||
"node-fetch@2.6.7": "patches/node-fetch+2.6.7.patch",
|
||||
"zod@3.23.8": "patches/zod+3.23.8.patch",
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
diff --git a/dist/source/as-promise/index.js b/dist/source/as-promise/index.js
|
||||
index b4026d3..a473860 100644
|
||||
--- a/dist/source/as-promise/index.js
|
||||
+++ b/dist/source/as-promise/index.js
|
||||
@@ -33,6 +33,7 @@ function asPromise(normalizedOptions) {
|
||||
const promise = new PCancelable((resolve, reject, onCancel) => {
|
||||
const makeRequest = (retryCount) => {
|
||||
const request = new core_1.default(undefined, normalizedOptions);
|
||||
+ let isResolved = false;
|
||||
request.retryCount = retryCount;
|
||||
request._noPipe = true;
|
||||
onCancel(() => request.destroy());
|
||||
@@ -114,6 +115,7 @@ function asPromise(normalizedOptions) {
|
||||
return;
|
||||
}
|
||||
globalResponse = response;
|
||||
+ isResolved = true;
|
||||
if (!is_response_ok_1.isResponseOk(response)) {
|
||||
request._beforeError(new types_1.HTTPError(response));
|
||||
return;
|
||||
@@ -127,9 +129,11 @@ function asPromise(normalizedOptions) {
|
||||
const { options } = request;
|
||||
if (error instanceof types_1.HTTPError && !options.throwHttpErrors) {
|
||||
const { response } = error;
|
||||
+ isResolved = true;
|
||||
resolve(request.options.resolveBodyOnly ? response.body : response);
|
||||
return;
|
||||
}
|
||||
+ isResolved = true;
|
||||
reject(error);
|
||||
};
|
||||
request.once('error', onError);
|
||||
@@ -140,7 +144,10 @@ function asPromise(normalizedOptions) {
|
||||
onError(error);
|
||||
return;
|
||||
}
|
||||
- makeRequest(newRetryCount);
|
||||
+
|
||||
+ if (!isResolved) {
|
||||
+ makeRequest(newRetryCount);
|
||||
+ }
|
||||
});
|
||||
proxy_events_1.default(request, emitter, proxiedRequestEvents);
|
||||
};
|
||||
11
pnpm-lock.yaml
generated
11
pnpm-lock.yaml
generated
@@ -50,9 +50,6 @@ patchedDependencies:
|
||||
fs-xattr:
|
||||
hash: 325d1e5f73cce8e15671dbd2394e091aadb71600f41d97d1a8cb63960c188112
|
||||
path: patches/fs-xattr.patch
|
||||
got@11.8.5:
|
||||
hash: cfe393dc1cca8970377087e9555a285d1121f75d57223ddd872b1a8d3f8c909b
|
||||
path: patches/got+11.8.5.patch
|
||||
growing-file@0.1.3:
|
||||
hash: 1bb085e3fda38f2983114beedc229acf8b0c539736fe73e2e8183dab2df074b4
|
||||
path: patches/growing-file+0.1.3.patch
|
||||
@@ -11392,7 +11389,7 @@ snapshots:
|
||||
debug: 4.3.7(supports-color@8.1.1)
|
||||
env-paths: 2.2.1
|
||||
fs-extra: 8.1.0
|
||||
got: 11.8.5(patch_hash=cfe393dc1cca8970377087e9555a285d1121f75d57223ddd872b1a8d3f8c909b)
|
||||
got: 11.8.5
|
||||
progress: 2.0.3
|
||||
semver: 6.3.1
|
||||
sumchecker: 3.0.1
|
||||
@@ -11452,7 +11449,7 @@ snapshots:
|
||||
debug: 4.3.7(supports-color@8.1.1)
|
||||
detect-libc: 2.0.4
|
||||
fs-extra: 10.1.0
|
||||
got: 11.8.5(patch_hash=cfe393dc1cca8970377087e9555a285d1121f75d57223ddd872b1a8d3f8c909b)
|
||||
got: 11.8.5
|
||||
node-abi: 3.87.0
|
||||
node-api-version: 0.2.1
|
||||
ora: 5.4.1
|
||||
@@ -11467,7 +11464,7 @@ snapshots:
|
||||
'@electron/symbolicate-mac@2.3.1':
|
||||
dependencies:
|
||||
'@indutny/breakpad': 1.2.3
|
||||
got: 11.8.5(patch_hash=cfe393dc1cca8970377087e9555a285d1121f75d57223ddd872b1a8d3f8c909b)
|
||||
got: 11.8.5
|
||||
mkdirp: 1.0.4
|
||||
yargs: 17.7.2
|
||||
|
||||
@@ -18138,7 +18135,7 @@ snapshots:
|
||||
|
||||
gopd@1.2.0: {}
|
||||
|
||||
got@11.8.5(patch_hash=cfe393dc1cca8970377087e9555a285d1121f75d57223ddd872b1a8d3f8c909b):
|
||||
got@11.8.5:
|
||||
dependencies:
|
||||
'@sindresorhus/is': 4.6.0
|
||||
'@szmarczak/http-timer': 4.0.6
|
||||
|
||||
Reference in New Issue
Block a user