This repository was archived by the owner on Nov 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export class DuplexJsonRpcEngine {
5151 *
5252 * @param middleware - The middleware function to add.
5353 */
54- pushReceiverMiddleware (
54+ addReceiverMiddleware (
5555 middleware : JsonRpcMiddleware < unknown , unknown > ,
5656 ) : void {
5757 this . #receiver. addMiddleware ( middleware as JsonRpcMiddleware < unknown , unknown > ) ;
@@ -62,12 +62,12 @@ export class DuplexJsonRpcEngine {
6262 *
6363 * @param middleware - The middleware function to add.
6464 */
65- pushSenderMiddleware ( middleware : JsonRpcMiddleware < unknown , unknown > ) : void {
65+ addSenderMiddleware ( middleware : JsonRpcMiddleware < unknown , unknown > ) : void {
6666 this . #sender. addMiddleware ( middleware as JsonRpcMiddleware < unknown , unknown > ) ;
6767 }
6868
6969 /**
70- * Returns the receiving pipeline as a middleware function that can be pushed
70+ * Returns the receiving pipeline as a middleware function that can be added
7171 * to other engines.
7272 *
7373 * @returns The receiving pipeline as a middleware function.
@@ -77,7 +77,7 @@ export class DuplexJsonRpcEngine {
7777 }
7878
7979 /**
80- * Returns the sending pipeline as a middleware function that can be pushed
80+ * Returns the sending pipeline as a middleware function that can be added
8181 * to other engines.
8282 *
8383 * @returns The sending pipeline as a middleware function.
Original file line number Diff line number Diff line change @@ -247,7 +247,6 @@ export class JsonRpcEngine extends SafeEventEmitter {
247247 await Promise . all (
248248 // 1. Begin executing each request in the order received
249249 reqs . map ( this . _promiseHandle . bind ( this ) ) ,
250- // Filter out falsy responses from notifications
251250 )
252251 ) . filter (
253252 // Filter out any notification responses.
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ export * from './getUniqueId';
44export * from './idRemapMiddleware' ;
55export * from './JsonRpcEngine' ;
66export * from './mergeMiddleware' ;
7+ export * from './DuplexJsonRpcEngine' ;
You can’t perform that action at this time.
0 commit comments