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

nock

Package Overview
Dependencies
Maintainers
1
Versions
433
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.11.4 to 0.11.5

11

lib/intercept.js

@@ -51,11 +51,2 @@ var RequestOverrider = require('./request_overrider'),

// if (
// options.port && options.host.indexOf(':') < 0 &&
// (options.port !== 80 || options.proto !== 'http') &&
// (options.port !== 443 || options.proto !== 'https')
// ) {
// options.host += ":" + options.port;
// delete options.port;
// }
basePath = options.proto + '://' + options.host;

@@ -70,4 +61,2 @@ if (

console.log('basePath:', basePath)
return allInterceptors[basePath] || [];

@@ -74,0 +63,0 @@ }

2

package.json
{ "name" : "nock"
, "description" : "HTTP Server mocking for Node.js"
, "tags" : ["Mock", "HTTP", "testing", "isolation"]
, "version" : "0.11.4"
, "version" : "0.11.5"
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com>"

@@ -6,0 +6,0 @@ , "contributors" :

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