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.6.1 to 11.6.2

18

dist/source/core/index.js

@@ -344,3 +344,3 @@ "use strict";

static normalizeArguments(url, options, defaults) {
var _a, _b, _c, _d;
var _a, _b, _c, _d, _e;
const rawOptions = options;

@@ -457,3 +457,6 @@ if (is_1.default.object(url) && !is_1.default.urlInstance(url)) {

// `options.prefixUrl` & `options.url`
if (options.prefixUrl) {
if (is_1.default.undefined(options.prefixUrl)) {
options.prefixUrl = (_d = defaults === null || defaults === void 0 ? void 0 : defaults.prefixUrl) !== null && _d !== void 0 ? _d : '';
}
else {
options.prefixUrl = options.prefixUrl.toString();

@@ -464,5 +467,2 @@ if (options.prefixUrl !== '' && !options.prefixUrl.endsWith('/')) {

}
else {
options.prefixUrl = '';
}
if (is_1.default.string(options.url)) {

@@ -666,3 +666,3 @@ if (options.url.startsWith('/')) {

}
options.maxRedirects = (_d = options.maxRedirects) !== null && _d !== void 0 ? _d : 0;
options.maxRedirects = (_e = options.maxRedirects) !== null && _e !== void 0 ? _e : 0;
// Set non-enumerable properties

@@ -1189,5 +1189,5 @@ exports.setNonEnumerableProperties([defaults, rawOptions], options);

response.rawBody = await get_buffer_1.default(response);
response.body = response.rawBody.toString();
}
catch (_a) { }
response.body = response.rawBody.toString();
}

@@ -1288,2 +1288,6 @@ if (this.listenerCount('retry') !== 0) {

_writeRequest(chunk, encoding, callback) {
if (this[kRequest].destroyed) {
// Probably the `ClientRequest` instance will throw
return;
}
this._progressCallbacks.push(() => {

@@ -1290,0 +1294,0 @@ this[kUploadedSize] += Buffer.byteLength(chunk, encoding);

{
"name": "got",
"version": "11.6.1",
"version": "11.6.2",
"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

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