Comparing version 10.5.4 to 10.5.5
@@ -170,20 +170,14 @@ "use strict"; | ||
if (is_1.default.object(options._pagination)) { | ||
if (defaults && !(Reflect.has(options, '_pagination') && is_1.default.undefined(options._pagination))) { | ||
options._pagination = { | ||
...defaults.pagination, | ||
...options._pagination | ||
}; | ||
} | ||
const pagination = options._pagination; | ||
const { _pagination: pagination } = options; | ||
if (!is_1.default.function_(pagination.transform)) { | ||
throw new Error('`options._pagination.transform` must be implemented'); | ||
throw new TypeError('`options._pagination.transform` must be implemented'); | ||
} | ||
if (!is_1.default.function_(pagination.shouldContinue)) { | ||
throw new Error('`options._pagination.shouldContinue` must be implemented'); | ||
throw new TypeError('`options._pagination.shouldContinue` must be implemented'); | ||
} | ||
if (!is_1.default.function_(pagination.filter)) { | ||
throw new Error('`options._pagination.filter` must be implemented'); | ||
throw new TypeError('`options._pagination.filter` must be implemented'); | ||
} | ||
if (!is_1.default.function_(pagination.paginate)) { | ||
throw new Error('`options._pagination.paginate` must be implemented'); | ||
throw new TypeError('`options._pagination.paginate` must be implemented'); | ||
} | ||
@@ -190,0 +184,0 @@ } |
{ | ||
"name": "got", | ||
"version": "10.5.4", | ||
"version": "10.5.5", | ||
"description": "Human-friendly and powerful HTTP request library for Node.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
162512
2376