+4
-2
@@ -34,4 +34,6 @@ 'use strict'; | ||
| return close; | ||
| if (method === "$closed") | ||
| return closed; | ||
| if (method === "then" && !eventNames.includes("then") && !("then" in functions)) | ||
| return void 0; | ||
| return undefined; | ||
| const sendEvent = (...args) => { | ||
@@ -51,3 +53,3 @@ post(serialize({ m: method, a: args, t: TYPE_REQUEST })); | ||
| } finally { | ||
| _promise = void 0; | ||
| _promise = undefined; | ||
| } | ||
@@ -54,0 +56,0 @@ } |
+1
-0
@@ -99,2 +99,3 @@ type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never; | ||
| $close: (error?: Error) => void; | ||
| $closed: boolean; | ||
| }; | ||
@@ -101,0 +102,0 @@ type BirpcGroupReturn<RemoteFunctions> = { |
+1
-0
@@ -99,2 +99,3 @@ type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never; | ||
| $close: (error?: Error) => void; | ||
| $closed: boolean; | ||
| }; | ||
@@ -101,0 +102,0 @@ type BirpcGroupReturn<RemoteFunctions> = { |
+1
-0
@@ -99,2 +99,3 @@ type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never; | ||
| $close: (error?: Error) => void; | ||
| $closed: boolean; | ||
| }; | ||
@@ -101,0 +102,0 @@ type BirpcGroupReturn<RemoteFunctions> = { |
+4
-2
@@ -32,4 +32,6 @@ const TYPE_REQUEST = "q"; | ||
| return close; | ||
| if (method === "$closed") | ||
| return closed; | ||
| if (method === "then" && !eventNames.includes("then") && !("then" in functions)) | ||
| return void 0; | ||
| return undefined; | ||
| const sendEvent = (...args) => { | ||
@@ -49,3 +51,3 @@ post(serialize({ m: method, a: args, t: TYPE_REQUEST })); | ||
| } finally { | ||
| _promise = void 0; | ||
| _promise = undefined; | ||
| } | ||
@@ -52,0 +54,0 @@ } |
+1
-1
| { | ||
| "name": "birpc", | ||
| "type": "module", | ||
| "version": "2.3.0", | ||
| "version": "2.4.0", | ||
| "description": "Message based Two-way remote procedure call", | ||
@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", |
+1
-1
@@ -123,3 +123,3 @@ # birpc | ||
| await rpc.hi('Alice') // Hi Bob, I am Alice | ||
| await rpc.hi('Bob') // Hi Bob, I am Alice | ||
| ``` | ||
@@ -126,0 +126,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
32313
0.58%526
0.96%1
Infinity%