Socket
Socket
Sign inDemoInstall

got

Package Overview
Dependencies
Maintainers
2
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

got - npm Package Compare versions

Comparing version 10.5.4 to 10.5.5

16

dist/source/normalize-arguments.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc