Bump the npm group with 5 updates (#1951)
* Bump the npm group with 5 updates Bumps the npm group with 5 updates: | Package | From | To | | --- | --- | --- | | [@types/js-yaml](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/js-yaml) | `4.0.6` | `4.0.7` | | [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) | `10.0.17` | `10.0.19` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `6.7.5` | `6.8.0` | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `6.7.5` | `6.8.0` | | [nock](https://github.com/nock/nock) | `13.3.3` | `13.3.4` | Updates `@types/js-yaml` from 4.0.6 to 4.0.7 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/js-yaml) Updates `@types/sinon` from 10.0.17 to 10.0.19 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon) Updates `@typescript-eslint/eslint-plugin` from 6.7.5 to 6.8.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.8.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 6.7.5 to 6.8.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.8.0/packages/parser) Updates `nock` from 13.3.3 to 13.3.4 - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.3.3...v13.3.4) --- updated-dependencies: - dependency-name: "@types/js-yaml" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm - dependency-name: "@types/sinon" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: nock dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm ... Signed-off-by: dependabot[bot] <support@github.com> * Update checked-in dependencies --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
d859d17bdb
commit
1d83e52e9a
282 changed files with 1307 additions and 2954 deletions
18
node_modules/nock/lib/scope.js
generated
vendored
18
node_modules/nock/lib/scope.js
generated
vendored
|
|
@ -35,7 +35,7 @@ function normalizeUrl(u) {
|
|||
|
||||
if (!/https?:/.test(u.protocol)) {
|
||||
throw new TypeError(
|
||||
`Protocol '${u.protocol}' not recognized. This commonly occurs when a hostname and port are included without a protocol, producing a URL that is valid but confusing, and probably not what you want.`
|
||||
`Protocol '${u.protocol}' not recognized. This commonly occurs when a hostname and port are included without a protocol, producing a URL that is valid but confusing, and probably not what you want.`,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ class Scope extends EventEmitter {
|
|||
interceptor,
|
||||
this,
|
||||
this.scopeOptions,
|
||||
this.urlParts.hostname
|
||||
this.urlParts.hostname,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ class Scope extends EventEmitter {
|
|||
uri,
|
||||
method,
|
||||
requestBody,
|
||||
interceptorOptions
|
||||
interceptorOptions,
|
||||
)
|
||||
|
||||
this.interceptors.push(ic)
|
||||
|
|
@ -182,7 +182,7 @@ class Scope extends EventEmitter {
|
|||
this.keyedInterceptors[key].some(({ interceptionCounter, optional }) => {
|
||||
const persistedAndUsed = this._persist && interceptionCounter > 0
|
||||
return !persistedAndUsed && !optional
|
||||
})
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -204,7 +204,7 @@ class Scope extends EventEmitter {
|
|||
done() {
|
||||
assert.ok(
|
||||
this.isDone(),
|
||||
`Mocks not yet satisfied:\n${this.pendingMocks().join('\n')}`
|
||||
`Mocks not yet satisfied:\n${this.pendingMocks().join('\n')}`,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -220,7 +220,7 @@ class Scope extends EventEmitter {
|
|||
// However the code used to contain a truthiness test of `candidate`.
|
||||
// The check is being preserved for now.
|
||||
throw Error(
|
||||
`Nock internal assertion failed: typeof candidate is ${typeof candidate}. If you encounter this error, please report it as a bug.`
|
||||
`Nock internal assertion failed: typeof candidate is ${typeof candidate}. If you encounter this error, please report it as a bug.`,
|
||||
)
|
||||
}
|
||||
return candidate.replace(filteringArguments[0], filteringArguments[1])
|
||||
|
|
@ -234,7 +234,7 @@ class Scope extends EventEmitter {
|
|||
this.transformPathFunction = this.buildFilter.apply(this, arguments)
|
||||
if (!this.transformPathFunction) {
|
||||
throw new Error(
|
||||
'Invalid arguments: filtering path should be a function or a regular expression'
|
||||
'Invalid arguments: filtering path should be a function or a regular expression',
|
||||
)
|
||||
}
|
||||
return this
|
||||
|
|
@ -244,7 +244,7 @@ class Scope extends EventEmitter {
|
|||
this.transformRequestBodyFunction = this.buildFilter.apply(this, arguments)
|
||||
if (!this.transformRequestBodyFunction) {
|
||||
throw new Error(
|
||||
'Invalid arguments: filtering request body should be a function or a regular expression'
|
||||
'Invalid arguments: filtering request body should be a function or a regular expression',
|
||||
)
|
||||
}
|
||||
return this
|
||||
|
|
@ -326,7 +326,7 @@ function getScopeFromDefinition(nockDef) {
|
|||
} else {
|
||||
if (parseInt(options.port) !== parseInt(nockDef.port)) {
|
||||
throw new Error(
|
||||
'Mismatched port numbers in scope and port properties of nock definition.'
|
||||
'Mismatched port numbers in scope and port properties of nock definition.',
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue