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

in-process-request

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

in-process-request - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

18

dist/compile/getHeaders.js

@@ -7,9 +7,23 @@ "use strict";

};
const fixHeaders = (headers) => {
const headersCopy = {};
Object.keys(headers).forEach(k => {
if (typeof headers[k] === 'number') {
headersCopy[k] = headers[k].toString();
}
else {
headersCopy[k] = headers[k];
}
});
return headersCopy;
};
exports.default = (res) => {
let headers;
if (typeof res.getHeaders === 'function') {
return res.getHeaders();
headers = res.getHeaders();
}
else {
return getHeadersLegacy(res);
headers = getHeadersLegacy(res);
}
return fixHeaders(headers);
};

2

dist/compile/httpMock.js

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

const body = Buffer.concat(chunks);
const headers = Object.assign({}, getHeaders_1.default(res));
const headers = getHeaders_1.default(res);
const response = {

@@ -40,0 +40,0 @@ body,

{
"name": "in-process-request",
"version": "0.0.1",
"version": "0.0.2",
"license": "(MIT OR Apache-2.0)",

@@ -5,0 +5,0 @@ "scripts": {

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