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

http-mockserver

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-mockserver - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

package.json
{
"name": "http-mockserver",
"description": "Testing made easy with mocked http servers",
"version": "1.1.3",
"version": "1.1.4",
"license": "MIT",

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

const Q = require('q');
const _ = require('lodash');
const { format } = require('url');

@@ -99,3 +100,8 @@ const request = Q.denodeify(require('request'));

return request(options).spread((response, error) => response);
return request(options).spread((response, body) => {
if (_.inRange(response.statusCode, 400, 600)) {
throw new Error(`Request failed: ${request.method} ${request.href} with status=${response.statusCode}, body=${body}`);
}
return response;
});
}

@@ -102,0 +108,0 @@ }

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