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 11.1.1 to 11.1.2

5

dist/source/core/index.js

@@ -305,2 +305,5 @@ "use strict";

}
if (options.dnsCache === false) {
options.dnsCache = undefined;
}
// Nice type assertions

@@ -446,3 +449,3 @@ is_1.assert.any([is_1.default.string, is_1.default.undefined], options.method);

}
else if (!is_1.default.undefined(options.dnsCache) && options.dnsCache !== false && !(options.dnsCache instanceof cacheable_lookup_1.default)) {
else if (!is_1.default.undefined(options.dnsCache) && !(options.dnsCache instanceof cacheable_lookup_1.default)) {
throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${is_1.default(options.dnsCache)}`);

@@ -449,0 +452,0 @@ }

3

dist/source/index.js

@@ -7,3 +7,2 @@ "use strict";

const url_1 = require("url");
const cacheable_lookup_1 = require("cacheable-lookup");
const create_1 = require("./create");

@@ -61,3 +60,3 @@ const defaults = {

cache: undefined,
dnsCache: new cacheable_lookup_1.default(),
dnsCache: undefined,
decompress: true,

@@ -64,0 +63,0 @@ throwHttpErrors: true,

{
"name": "got",
"version": "11.1.1",
"version": "11.1.2",
"description": "Human-friendly and powerful HTTP request library for Node.js",

@@ -46,11 +46,11 @@ "license": "MIT",

"dependencies": {
"@sindresorhus/is": "^2.1.0",
"@szmarczak/http-timer": "^4.0.0",
"@sindresorhus/is": "^2.1.1",
"@szmarczak/http-timer": "^4.0.5",
"@types/cacheable-request": "^6.0.1",
"@types/responselike": "^1.0.0",
"cacheable-lookup": "^4.1.1",
"cacheable-lookup": "^4.3.0",
"cacheable-request": "^7.0.1",
"decompress-response": "^5.0.0",
"get-stream": "^5.0.0",
"http2-wrapper": "^1.0.0-beta.4.4",
"get-stream": "^5.1.0",
"http2-wrapper": "^1.0.0-beta.4.5",
"lowercase-keys": "^2.0.0",

@@ -57,0 +57,0 @@ "p-cancelable": "^2.0.0",

Sorry, the diff of this file is too big to display

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