Socket
Socket
Sign inDemoInstall

nock

Package Overview
Dependencies
5
Maintainers
4
Versions
422
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.0.11 to 13.1.0

1

lib/socket.js

@@ -95,2 +95,3 @@ 'use strict'

this.readable = this.writable = false
this.readableEnded = this.writableFinished = true

@@ -97,0 +98,0 @@ process.nextTick(() => {

4

package.json

@@ -10,3 +10,3 @@ {

],
"version": "13.0.11",
"version": "13.1.0",
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>",

@@ -54,3 +54,3 @@ "repository": {

"semantic-release": "^17.0.2",
"sinon": "^9.0.0",
"sinon": "^10.0.0",
"sinon-chai": "^3.3.0",

@@ -57,0 +57,0 @@ "typescript": "^4.2.2"

@@ -643,2 +643,4 @@ # Nock

**NOTE:** When request times is more than the number you specified, you will get an error before cleaning this interceptor.
```js

@@ -651,3 +653,11 @@ nock('http://zombo.com').get('/').times(4).reply(200, 'Ok')

http.get('http://zombo.com/') // respond body "Ok"
http.get('http://zombo.com/') // respond with zombo.com result
// This code will get an error with message:
// Nock: No match for request
http.get('http://zombo.com/')
// clean your interceptor
nock.cleanAll()
http.get('http://zombo.com/') // real respond with zombo.com result
```

@@ -654,0 +664,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc