Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Aug 12, 2022
1 parent e29d451 commit 9420bdf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/DuplexJsonRpcEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class DuplexJsonRpcEngine {
*
* @param middleware - The middleware function to add.
*/
pushReceiverMiddleware(
addReceiverMiddleware(
middleware: JsonRpcMiddleware<unknown, unknown>,
): void {
this.#receiver.addMiddleware(middleware as JsonRpcMiddleware<unknown, unknown>);
Expand All @@ -62,12 +62,12 @@ export class DuplexJsonRpcEngine {
*
* @param middleware - The middleware function to add.
*/
pushSenderMiddleware(middleware: JsonRpcMiddleware<unknown, unknown>): void {
addSenderMiddleware(middleware: JsonRpcMiddleware<unknown, unknown>): void {
this.#sender.addMiddleware(middleware as JsonRpcMiddleware<unknown, unknown>);
}

/**
* Returns the receiving pipeline as a middleware function that can be pushed
* Returns the receiving pipeline as a middleware function that can be added
* to other engines.
*
* @returns The receiving pipeline as a middleware function.
Expand All @@ -77,7 +77,7 @@ export class DuplexJsonRpcEngine {
}

/**
* Returns the sending pipeline as a middleware function that can be pushed
* Returns the sending pipeline as a middleware function that can be added
* to other engines.
*
* @returns The sending pipeline as a middleware function.
Expand Down
1 change: 0 additions & 1 deletion src/JsonRpcEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ export class JsonRpcEngine extends SafeEventEmitter {
await Promise.all(
// 1. Begin executing each request in the order received
reqs.map(this._promiseHandle.bind(this)),
// Filter out falsy responses from notifications
)
).filter(
// Filter out any notification responses.
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './getUniqueId';
export * from './idRemapMiddleware';
export * from './JsonRpcEngine';
export * from './mergeMiddleware';
export * from './DuplexJsonRpcEngine';

0 comments on commit 9420bdf

Please sign in to comment.