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

nock

Package Overview
Dependencies
Maintainers
1
Versions
436
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.13.4 to 0.13.5

2

lib/request_overrider.js

@@ -70,2 +70,4 @@ var EventEmitter = require('events').EventEmitter,

req.path = options.path;
options.getHeader = function(name) {

@@ -72,0 +74,0 @@ return getHeader(req, name);

2

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

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

@@ -1497,4 +1497,3 @@ var nock = require('../.')

.post('/claim', {some_data: "something"})
.reply(200)
.log(console.log);
.reply(200);

@@ -1512,1 +1511,20 @@ http.request({

});
tap.test('request has path', function(t) {
var scope = nock('http://haspath.com')
.get('/the/path/to/infinity')
.reply(200);
var req = http.request({
hostname: 'haspath.com',
port: 80,
method: "GET",
path: '/the/path/to/infinity'
}, function(res) {
scope.done();
t.equal(req.path, '/the/path/to/infinity', 'should have req.path set to /the/path/to/infinity');
t.end();
});
req.end();
});

Sorry, the diff of this file is not supported yet

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