Skip to content

Commit 41a47bf

Browse files
authored
Update dependencies
* Update dev dependencies * Update XO * Update dependencies * Rebuild lockfile
1 parent 5c9dbb9 commit 41a47bf

File tree

5 files changed

+398
-367
lines changed

5 files changed

+398
-367
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export interface CbExecutionContext<Context = unknown> extends ExecutionContext<
433433
end(error?: any): void;
434434
}
435435

436-
export type ImplementationResult = PromiseLike<void> | Subscribable | void; // eslint-disable-line @typescript-eslint/no-invalid-void-type
436+
export type ImplementationResult = PromiseLike<void> | Subscribable | void;
437437
export type Implementation<Context = unknown> = (t: ExecutionContext<Context>) => ImplementationResult;
438438
export type CbImplementation<Context = unknown> = (t: CbExecutionContext<Context>) => ImplementationResult;
439439

lib/provider-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function load(providerModule, projectDir) {
2121
let level;
2222
const provider = makeProvider({
2323
negotiateProtocol(identifiers, {version}) {
24-
const [identifier] = identifiers.filter(identifier => Reflect.has(levelsByProtocol, identifier));
24+
const identifier = identifiers.find(identifier => Reflect.has(levelsByProtocol, identifier));
2525

2626
if (identifier === undefined) {
2727
fatal = new Error(`This version of AVA (${ava.version}) is not compatible with ${providerModule}@${version}`);

0 commit comments

Comments
 (0)