Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nock

Package Overview
Dependencies
Maintainers
1
Versions
432
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nock - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

7

lib/request_overrider.js
var Piper = require('./piper'),
EventEmitter = require('events').EventEmitter;
function stringifyRequest(options) {
function stringifyRequest(options, body) {
var method = options.method || 'GET',
path = options.path,
body = options.body;
path = options.path;

@@ -122,3 +121,3 @@ if (body && typeof(body) !== 'string') {

if (interceptors.length < 1) { throw new Error("Nock: No match for HTTP request " + stringifyRequest(options)); }
if (interceptors.length < 1) { throw new Error("Nock: No match for HTTP request " + stringifyRequest(options, requestBody)); }
interceptor = interceptors.shift();

@@ -125,0 +124,0 @@

{ "name" : "nock"
, "description" : "HTTP Server mocking for Node.js"
, "tags" : ["Mock", "HTTP", "testing", "isolation"]
, "version" : "0.8.3"
, "version" : "0.8.4"
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com>"
, "contributors" :
[ {"name":"Roly Fentanes" }
, {"name":"Alexander Simmerl"}
, {"name":"Pedro Teixeira"}
, {"name":"Nuno Job"}
, {"name":"Ian Young"}
, {"name":"nilsbunger"}
[ {"name": "Roly Fentanes" }
, {"name": "Alexander Simmerl"}
, {"name": "Pedro Teixeira"}
, {"name": "Nuno Job"}
, {"name": "Ian Young"}
, {"name": "nilsbunger"}
, {"name": "bacchusrx", "email": "bacchusrx@eightstar.ca"}

@@ -14,0 +14,0 @@ , {"name": "Fabiano França"}

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