Socket
Socket
Sign inDemoInstall

nock

Package Overview
Dependencies
Maintainers
1
Versions
430
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.10.4 to 0.10.5

2

lib/recorder.js

@@ -20,3 +20,3 @@ var http = require('http');

ret = [];
var ret = [];
ret.push('\nnock(\'');

@@ -23,0 +23,0 @@ if (options._https_) { ret.push('https://'); }

@@ -189,3 +189,3 @@ var path = require('path')

function isDone() {
keys = Object.keys(interceptors);
var keys = Object.keys(interceptors);
if (keys.length === 0) {

@@ -192,0 +192,0 @@ return true;

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

@@ -18,2 +18,3 @@ , "contributors" :

, {"name": "James Herdman"}
, {"name": "David Björklund"}
]

@@ -20,0 +21,0 @@ , "repository" :

@@ -377,2 +377,3 @@ var nock = require('../.')

t.test("post", function(t) {
var dataCalled;
var req = http.request({

@@ -402,2 +403,3 @@ host: "www.spiffy.com"

t.test("get", function(t) {
var dataCalled;
var req = http.request({

@@ -404,0 +406,0 @@ host: "www.spiffy.com"

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