Comparing version 13.5.0 to 13.5.1
@@ -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 |
@@ -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> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
186343
1732
3
25
3613
6