Update checked-in dependencies
This commit is contained in:
parent
e292db6207
commit
6b12e3d9d9
68 changed files with 714 additions and 202 deletions
11
node_modules/nock/README.md
generated
vendored
11
node_modules/nock/README.md
generated
vendored
|
|
@ -1066,6 +1066,17 @@ if (!nock.isActive()) {
|
|||
}
|
||||
```
|
||||
|
||||
### .clone()
|
||||
|
||||
You can clone a scope by calling `.clone()` on it:
|
||||
|
||||
```js
|
||||
const scope = nock('http://example.test')
|
||||
|
||||
const getScope = scope.get('/').reply(200)
|
||||
const postScope = scope.clone().post('/').reply(200)
|
||||
```
|
||||
|
||||
## Restoring
|
||||
|
||||
You can restore the HTTP interceptor to the normal unmocked behaviour by calling:
|
||||
|
|
|
|||
4
node_modules/nock/lib/scope.js
generated
vendored
4
node_modules/nock/lib/scope.js
generated
vendored
|
|
@ -286,6 +286,10 @@ class Scope extends EventEmitter {
|
|||
this.date = d || new Date()
|
||||
return this
|
||||
}
|
||||
|
||||
clone() {
|
||||
return new Scope(this.basePath, this.scopeOptions)
|
||||
}
|
||||
}
|
||||
|
||||
function loadDefs(path) {
|
||||
|
|
|
|||
4
node_modules/nock/package.json
generated
vendored
4
node_modules/nock/package.json
generated
vendored
|
|
@ -7,7 +7,7 @@
|
|||
"testing",
|
||||
"isolation"
|
||||
],
|
||||
"version": "13.4.0",
|
||||
"version": "13.5.0",
|
||||
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
"mocha": "^9.1.3",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"nyc": "^15.0.0",
|
||||
"prettier": "3.0.3",
|
||||
"prettier": "3.1.0",
|
||||
"proxyquire": "^2.1.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"semantic-release": "^22.0.5",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue