Comparing version 11.8.3 to 11.8.5
@@ -116,2 +116,3 @@ "use strict"; | ||
} | ||
globalResponse = response; | ||
if (!is_response_ok_1.isResponseOk(response)) { | ||
@@ -121,3 +122,2 @@ request._beforeError(new types_1.HTTPError(response)); | ||
} | ||
globalResponse = response; | ||
resolve(request.options.resolveBodyOnly ? response.body : response); | ||
@@ -124,0 +124,0 @@ }); |
@@ -94,2 +94,10 @@ /// <reference types="node" /> | ||
/** | ||
Same as `GotPaginate.each`. | ||
*/ | ||
<T, R = unknown>(url: string | URL, options?: OptionsWithPagination<T, R>): AsyncIterableIterator<T>; | ||
/** | ||
Same as `GotPaginate.each`. | ||
*/ | ||
<T, R = unknown>(options?: OptionsWithPagination<T, R>): AsyncIterableIterator<T>; | ||
/** | ||
Returns an async iterator. | ||
@@ -137,10 +145,2 @@ | ||
all: (<T, R = unknown>(url: string | URL, options?: OptionsWithPagination<T, R>) => Promise<T[]>) & (<T, R = unknown>(options?: OptionsWithPagination<T, R>) => Promise<T[]>); | ||
/** | ||
Same as `GotPaginate.each`. | ||
*/ | ||
<T, R = unknown>(url: string | URL, options?: OptionsWithPagination<T, R>): AsyncIterableIterator<T>; | ||
/** | ||
Same as `GotPaginate.each`. | ||
*/ | ||
<T, R = unknown>(options?: OptionsWithPagination<T, R>): AsyncIterableIterator<T>; | ||
} | ||
@@ -147,0 +147,0 @@ export interface GotRequestFunction { |
{ | ||
"name": "got", | ||
"version": "11.8.3", | ||
"version": "11.8.5", | ||
"description": "Human-friendly and powerful HTTP request library for Node.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
268929
4283