Update checked-in dependencies
This commit is contained in:
parent
99c9f6a498
commit
e266801e21
242 changed files with 2638 additions and 9296 deletions
5
node_modules/nock/README.md
generated
vendored
5
node_modules/nock/README.md
generated
vendored
|
|
@ -9,6 +9,9 @@
|
|||
[npmjs]: https://www.npmjs.com/package/nock
|
||||
[build]: https://travis-ci.org/nock/nock
|
||||
|
||||
> **Warning**
|
||||
> nock is currently not compatible with Node's experimental native `fetch` implementation. See [#2397](https://github.com/nock/nock/issues/2397)
|
||||
|
||||
HTTP server mocking and expectations library for Node.js
|
||||
|
||||
Nock can be used to test modules that perform HTTP requests in isolation.
|
||||
|
|
@ -1002,7 +1005,7 @@ const scope = nock('http://example.com')
|
|||
.reply(200, 'Persisting all the way')
|
||||
```
|
||||
|
||||
Note that while a persisted scope will always intercept the requests, it is considered "done" after the first interception.
|
||||
Note that while a persisted scope will always intercept the requests, it is considered "done" after the first interception, and they are pushed to the bottom of the stack after consumption.
|
||||
|
||||
If you want to stop persisting an individual persisted mock you can call `persist(false)`:
|
||||
|
||||
|
|
|
|||
14
node_modules/nock/lib/intercept.js
generated
vendored
14
node_modules/nock/lib/intercept.js
generated
vendored
|
|
@ -110,7 +110,7 @@ function addInterceptor(key, interceptor, scope, scopeOptions, host) {
|
|||
}
|
||||
|
||||
function remove(interceptor) {
|
||||
if (interceptor.__nock_scope.shouldPersist() || --interceptor.counter > 0) {
|
||||
if (--interceptor.counter > 0) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -122,6 +122,12 @@ function remove(interceptor) {
|
|||
// matching instance. I'm also not sure why we couldn't delete _all_
|
||||
// matching instances.
|
||||
interceptors.some(function (thisInterceptor, i) {
|
||||
if (interceptor.__nock_scope.shouldPersist()) {
|
||||
return thisInterceptor === interceptor
|
||||
? interceptors.push(interceptors.splice(i, 1)[0])
|
||||
: false
|
||||
}
|
||||
|
||||
return thisInterceptor === interceptor ? interceptors.splice(i, 1) : false
|
||||
})
|
||||
}
|
||||
|
|
@ -218,7 +224,11 @@ function removeInterceptor(options) {
|
|||
) {
|
||||
for (let i = 0; i < allInterceptors[baseUrl].interceptors.length; i++) {
|
||||
const interceptor = allInterceptors[baseUrl].interceptors[i]
|
||||
if (interceptor._key === key) {
|
||||
if (
|
||||
options instanceof Interceptor
|
||||
? interceptor === options
|
||||
: interceptor._key === key
|
||||
) {
|
||||
allInterceptors[baseUrl].interceptors.splice(i, 1)
|
||||
interceptor.scope.remove(key, interceptor)
|
||||
break
|
||||
|
|
|
|||
10
node_modules/nock/package.json
generated
vendored
10
node_modules/nock/package.json
generated
vendored
|
|
@ -7,7 +7,7 @@
|
|||
"testing",
|
||||
"isolation"
|
||||
],
|
||||
"version": "13.3.1",
|
||||
"version": "13.3.2",
|
||||
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
"propagate": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@definitelytyped/dtslint": "^0.0.159",
|
||||
"@definitelytyped/dtslint": "^0.0.163",
|
||||
"@sinonjs/fake-timers": "^10.0.0",
|
||||
"assert-rejects": "^1.0.0",
|
||||
"chai": "^4.1.2",
|
||||
|
|
@ -45,13 +45,13 @@
|
|||
"mocha": "^9.1.3",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"nyc": "^15.0.0",
|
||||
"prettier": "2.7.1",
|
||||
"prettier": "2.8.8",
|
||||
"proxyquire": "^2.1.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"semantic-release": "^19.0.2",
|
||||
"semantic-release": "^21.0.2",
|
||||
"sinon": "^15.0.1",
|
||||
"sinon-chai": "^3.7.0",
|
||||
"typescript": "^4.2.2"
|
||||
"typescript": "^5.0.4"
|
||||
},
|
||||
"scripts": {
|
||||
"format:fix": "prettier --write '**/*.{js,json,md,ts,yml,yaml}'",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue