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.14.0 to 0.14.1

2

lib/intercept.js

@@ -7,3 +7,3 @@ var RequestOverrider = require('./request_overrider'),

http = require('http'),
parse = require('url').parse
parse = require('url').parse,
ClientRequest = http.ClientRequest;

@@ -10,0 +10,0 @@

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

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

@@ -39,13 +39,2 @@ # Nock [![Build Status](https://secure.travis-ci.org/flatiron/nock.png)](http://travis-ci.org/flatiron/nock)

## .persist()
You can make all the interceptors for a scope persist by calling `.persist()` on it:
```js
var scope = nock('http://persisssists.con')
.persist()
.get('/')
.reply(200, "Persisting all the way");
```
## Specifying request body

@@ -281,3 +270,13 @@

```
## .persist()
You can make all the interceptors for a scope persist by calling `.persist()` on it:
```js
var scope = nock('http://persisssists.con')
.persist()
.get('/')
.reply(200, "Persisting all the way");
```
# Logging

@@ -284,0 +283,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