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
|
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
|
--- a/node_modules/got/dist/source/as-promise/index.js
|
||||||
+++ b/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) {
|
@@ -33,6 +33,7 @@ function asPromise(normalizedOptions) {
|
||||||
|
@ -10,14 +10,14 @@ index 9575c09..a00a014 100644
|
||||||
request.retryCount = retryCount;
|
request.retryCount = retryCount;
|
||||||
request._noPipe = true;
|
request._noPipe = true;
|
||||||
onCancel(() => request.destroy());
|
onCancel(() => request.destroy());
|
||||||
@@ -118,6 +119,7 @@ function asPromise(normalizedOptions) {
|
@@ -114,6 +115,7 @@ function asPromise(normalizedOptions) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
globalResponse = response;
|
globalResponse = response;
|
||||||
+ isResolved = true;
|
+ isResolved = true;
|
||||||
resolve(request.options.resolveBodyOnly ? response.body : response);
|
if (!is_response_ok_1.isResponseOk(response)) {
|
||||||
});
|
request._beforeError(new types_1.HTTPError(response));
|
||||||
const onError = (error) => {
|
return;
|
||||||
@@ -127,9 +129,11 @@ function asPromise(normalizedOptions) {
|
@@ -127,9 +129,11 @@ function asPromise(normalizedOptions) {
|
||||||
const { options } = request;
|
const { options } = request;
|
||||||
if (error instanceof types_1.HTTPError && !options.throwHttpErrors) {
|
if (error instanceof types_1.HTTPError && !options.throwHttpErrors) {
|
Loading…
Reference in a new issue