Fix patches for protobufjs and got
This commit is contained in:
parent
054e443071
commit
bae3394efc
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
diff --git a/node_modules/got/dist/source/as-promise/index.js b/node_modules/got/dist/source/as-promise/index.js
|
||||
index 9575c09..a00a014 100644
|
||||
index b4026d3..a473860 100644
|
||||
--- a/node_modules/got/dist/source/as-promise/index.js
|
||||
+++ b/node_modules/got/dist/source/as-promise/index.js
|
||||
@@ -33,6 +33,7 @@ function asPromise(normalizedOptions) {
|
||||
|
@ -10,14 +10,14 @@ index 9575c09..a00a014 100644
|
|||
request.retryCount = retryCount;
|
||||
request._noPipe = true;
|
||||
onCancel(() => request.destroy());
|
||||
@@ -118,6 +119,7 @@ function asPromise(normalizedOptions) {
|
||||
@@ -114,6 +115,7 @@ function asPromise(normalizedOptions) {
|
||||
return;
|
||||
}
|
||||
globalResponse = response;
|
||||
+ isResolved = true;
|
||||
resolve(request.options.resolveBodyOnly ? response.body : response);
|
||||
});
|
||||
const onError = (error) => {
|
||||
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) {
|
Loading…
Reference in a new issue