New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

get-it

Package Overview
Dependencies
Maintainers
5
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-it - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1

12

lib-node/request/node-request.js

@@ -131,2 +131,10 @@ 'use strict';

// On redirects, `responseUrl` is set
const reqUrl = response.responseUrl || options.url;
if (options.stream) {
callback(null, reduceResponse(res, reqUrl, reqOpts.method, resStream));
return;
}
// Concatenate the response body, then parse the response with middlewares

@@ -139,5 +147,3 @@ concat(resStream, (err, data) => {

const body = options.rawBody ? data : data.toString();
const reduced = reduceResponse(res, response.responseUrl || options.url, // On redirects, `responseUrl` is set
reqOpts.method, body);
const reduced = reduceResponse(res, reqUrl, reqOpts.method, body);
return callback(null, reduced);

@@ -144,0 +150,0 @@ });

@@ -138,2 +138,10 @@ 'use strict';

// On redirects, `responseUrl` is set
var reqUrl = response.responseUrl || options.url;
if (options.stream) {
callback(null, reduceResponse(res, reqUrl, reqOpts.method, resStream));
return;
}
// Concatenate the response body, then parse the response with middlewares

@@ -146,5 +154,3 @@ concat(resStream, function (err, data) {

var body = options.rawBody ? data : data.toString();
var reduced = reduceResponse(res, response.responseUrl || options.url, // On redirects, `responseUrl` is set
reqOpts.method, body);
var reduced = reduceResponse(res, reqUrl, reqOpts.method, body);
return callback(null, reduced);

@@ -151,0 +157,0 @@ });

{
"name": "get-it",
"version": "5.2.0",
"version": "5.2.1",
"description": "Generic HTTP request library for node and browsers",

@@ -41,3 +41,3 @@ "main": "index.js",

"posttest": "npm run lint",
"prepublish": "in-publish && npm run build && npm test || not-in-publish",
"prepublishOnly": "npm run build && npm test",
"test": "BABEL_ENV=node mocha"

@@ -59,3 +59,2 @@ },

"form-urlencoded": "^2.0.7",
"in-publish": "^2.0.0",
"into-stream": "^3.1.0",

@@ -62,0 +61,0 @@ "is-plain-object": "^2.0.4",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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