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
28
node_modules/nock/lib/interceptor.js
generated
vendored
28
node_modules/nock/lib/interceptor.js
generated
vendored
|
|
@ -39,13 +39,13 @@ module.exports = class Interceptor {
|
|||
!uri.startsWith('*')
|
||||
) {
|
||||
throw Error(
|
||||
`Non-wildcard URL path strings must begin with a slash (otherwise they won't match anything) (got: ${uri})`
|
||||
`Non-wildcard URL path strings must begin with a slash (otherwise they won't match anything) (got: ${uri})`,
|
||||
)
|
||||
}
|
||||
|
||||
if (!method) {
|
||||
throw new Error(
|
||||
'The "method" parameter is required for an intercept call.'
|
||||
'The "method" parameter is required for an intercept call.',
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -67,10 +67,10 @@ module.exports = class Interceptor {
|
|||
// We use lower-case header field names throughout Nock.
|
||||
this.reqheaders = common.headersFieldNamesToLowerCase(
|
||||
scope.scopeOptions.reqheaders || {},
|
||||
true
|
||||
true,
|
||||
)
|
||||
this.badheaders = common.headersFieldsArrayToLowerCase(
|
||||
scope.scopeOptions.badheaders || []
|
||||
scope.scopeOptions.badheaders || [],
|
||||
)
|
||||
|
||||
this.delayBodyInMs = 0
|
||||
|
|
@ -118,7 +118,7 @@ module.exports = class Interceptor {
|
|||
// It's not very Javascript-y to throw an error for extra args to a function, but because
|
||||
// of legacy behavior, this error was added to reduce confusion for those migrating.
|
||||
throw Error(
|
||||
'Invalid arguments. When providing a function for the first argument, .reply does not accept other arguments.'
|
||||
'Invalid arguments. When providing a function for the first argument, .reply does not accept other arguments.',
|
||||
)
|
||||
}
|
||||
this.statusCode = null
|
||||
|
|
@ -152,7 +152,7 @@ module.exports = class Interceptor {
|
|||
// Including all the default headers is safe for our purposes because of the specific headers we introspect.
|
||||
// A more thoughtful process is used to merge the default headers when the response headers are finally computed.
|
||||
this.headers = common.headersArrayToObject(
|
||||
this.rawHeaders.concat(this.scope._defaultReplyHeaders)
|
||||
this.rawHeaders.concat(this.scope._defaultReplyHeaders),
|
||||
)
|
||||
|
||||
// If the content is not encoded we may need to transform the response body.
|
||||
|
|
@ -236,7 +236,7 @@ module.exports = class Interceptor {
|
|||
"request header field doesn't match:",
|
||||
key,
|
||||
header,
|
||||
reqHeader
|
||||
reqHeader,
|
||||
)
|
||||
return false
|
||||
}
|
||||
|
|
@ -247,7 +247,7 @@ module.exports = class Interceptor {
|
|||
this.scope.logger(
|
||||
'attempting match %s, body = %s',
|
||||
stringify(options),
|
||||
stringify(body)
|
||||
stringify(body),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -259,7 +259,7 @@ module.exports = class Interceptor {
|
|||
|
||||
if (this.method !== method) {
|
||||
this.scope.logger(
|
||||
`Method did not match. Request ${method} Interceptor ${this.method}`
|
||||
`Method did not match. Request ${method} Interceptor ${this.method}`,
|
||||
)
|
||||
return false
|
||||
}
|
||||
|
|
@ -286,7 +286,7 @@ module.exports = class Interceptor {
|
|||
}
|
||||
|
||||
const reqHeadersMatch = Object.keys(this.reqheaders).every(key =>
|
||||
this.reqheaderMatches(options, key)
|
||||
this.reqheaderMatches(options, key),
|
||||
)
|
||||
|
||||
if (!reqHeadersMatch) {
|
||||
|
|
@ -299,13 +299,13 @@ module.exports = class Interceptor {
|
|||
!this.scope.scopeOptions.conditionally()
|
||||
) {
|
||||
this.scope.logger(
|
||||
'matching failed because Scope.conditionally() did not validate'
|
||||
'matching failed because Scope.conditionally() did not validate',
|
||||
)
|
||||
return false
|
||||
}
|
||||
|
||||
const badHeaders = this.badheaders.filter(
|
||||
header => header in options.headers
|
||||
header => header in options.headers,
|
||||
)
|
||||
|
||||
if (badHeaders.length) {
|
||||
|
|
@ -322,7 +322,7 @@ module.exports = class Interceptor {
|
|||
const matchQueries = this.matchQuery({ search })
|
||||
|
||||
this.scope.logger(
|
||||
matchQueries ? 'query matching succeeded' : 'query matching failed'
|
||||
matchQueries ? 'query matching succeeded' : 'query matching failed',
|
||||
)
|
||||
|
||||
if (!matchQueries) {
|
||||
|
|
@ -369,7 +369,7 @@ module.exports = class Interceptor {
|
|||
"bodies don't match: \n",
|
||||
this._requestBody,
|
||||
'\n',
|
||||
body
|
||||
body,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue