Socket
Socket
Sign inDemoInstall

nock

Package Overview
Dependencies
Maintainers
4
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 13.5.0 to 13.5.1

5

lib/common.js

@@ -73,6 +73,3 @@ 'use strict'

const moduleName = proto // 1 to 1 match of protocol and module is fortunate :)
const module = {
http: require('http'),
https: require('https'),
}[moduleName]
const module = require(proto)
const overriddenRequest = module.request

@@ -79,0 +76,0 @@ const overriddenGet = module.get

4

lib/intercept.js

@@ -373,4 +373,2 @@ 'use strict'

overrideClientRequest()
// ----- Overriding http.request and https.request:

@@ -439,2 +437,4 @@

})
overrideClientRequest()
}

@@ -441,0 +441,0 @@

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

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

@@ -45,2 +45,3 @@ "repository": {

"got": "^11.3.0",
"jest": "^29.7.0",
"mocha": "^9.1.3",

@@ -65,3 +66,4 @@ "npm-run-all": "^4.1.5",

"test": "nyc --reporter=lcov --reporter=text mocha --recursive tests",
"test:coverage": "open coverage/lcov-report/index.html"
"test:coverage": "open coverage/lcov-report/index.html",
"test:jest": "jest tests_jest --detectLeaks"
},

@@ -68,0 +70,0 @@ "license": "MIT",

@@ -69,2 +69,3 @@ # Nock

- [.isActive()](#isactive)
- [.clone()](#clone)
- [Restoring](#restoring)

@@ -93,2 +94,4 @@ - [Activating](#activating)

- [Modes](#modes)
- [Verifying recorded fixtures](#verifying-recorded-fixtures)
- [Example](#example-1)
- [Common issues](#common-issues)

@@ -1698,2 +1701,5 @@ - [Axios](#axios)

</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rsaryev"><img src="https://avatars.githubusercontent.com/u/70219513?v=4?s=100" width="100px;" alt="Saryev Rustam"/><br /><sub><b>Saryev Rustam</b></sub></a><br /><a href="https://github.com/nock/nock/commits?author=rsaryev" title="Code">💻</a> <a href="https://github.com/nock/nock/commits?author=rsaryev" title="Tests">⚠️</a></td>
</tr>
</tbody>

@@ -1700,0 +1706,0 @@ </table>

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