🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

birpc

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

birpc - npm Package Compare versions

Comparing version
2.3.0
to
2.4.0
+4
-2
dist/index.cjs

@@ -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 @@ }

@@ -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> = {

@@ -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> = {

@@ -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> = {

@@ -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 @@ }

{
"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>",

@@ -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 @@