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.3 to 0.0.4

9

dist/compile/httpMock.js

@@ -26,2 +26,9 @@ "use strict";

};
const isUTF8 = (headers) => {
if (headers['content-encoding']) {
return false;
}
const contentType = headers['content-type'] || '';
return contentType.match(/charset=utf-8/i) ? true : false;
};
exports.createMockResponse = (req) => {

@@ -51,3 +58,3 @@ const res = new http_1.ServerResponse(req);

body,
isUTF8: !!(headers['content-type'] || '').match(/charset=utf-8/i),
isUTF8: isUTF8(headers),
statusCode: res.statusCode,

@@ -54,0 +61,0 @@ headers,

2

package.json
{
"name": "in-process-request",
"version": "0.0.3",
"version": "0.0.4",
"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