Socket
Socket
Sign inDemoInstall

birpc

Package Overview
Dependencies
Maintainers
1
Versions
25
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 0.2.15 to 0.2.16

10

dist/index.d.ts

@@ -58,3 +58,3 @@ type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never;

*/
asEvent(...args: ArgumentsType<T>): void;
asEvent: (...args: ArgumentsType<T>) => void;
};

@@ -69,3 +69,3 @@ interface BirpcGroupFn<T> {

*/
asEvent(...args: ArgumentsType<T>): void;
asEvent: (...args: ArgumentsType<T>) => void;
}

@@ -84,9 +84,9 @@ type BirpcReturn<RemoteFunctions, LocalFunctions = Record<string, never>> = {

readonly broadcast: BirpcGroupReturn<RemoteFunctions>;
updateChannels(fn?: ((channels: ChannelOptions[]) => void)): BirpcReturn<RemoteFunctions, LocalFunctions>[];
updateChannels: (fn?: ((channels: ChannelOptions[]) => void)) => BirpcReturn<RemoteFunctions, LocalFunctions>[];
}
declare const DEFAULT_TIMEOUT = 60000;
declare function createBirpc<RemoteFunctions = Record<string, never>, LocalFunctions = Record<string, never>>(functions: LocalFunctions, options: BirpcOptions<RemoteFunctions>): BirpcReturn<RemoteFunctions, LocalFunctions>;
declare function createBirpc<RemoteFunctions = Record<string, never>, LocalFunctions extends object = Record<string, never>>(functions: LocalFunctions, options: BirpcOptions<RemoteFunctions>): BirpcReturn<RemoteFunctions, LocalFunctions>;
declare function cachedMap<T, R>(items: T[], fn: ((i: T) => R)): R[];
declare function createBirpcGroup<RemoteFunctions = Record<string, never>, LocalFunctions = Record<string, never>>(functions: LocalFunctions, channels: ChannelOptions[] | (() => ChannelOptions[]), options?: EventOptions<RemoteFunctions>): BirpcGroup<RemoteFunctions, LocalFunctions>;
declare function createBirpcGroup<RemoteFunctions = Record<string, never>, LocalFunctions extends object = Record<string, never>>(functions: LocalFunctions, channels: ChannelOptions[] | (() => ChannelOptions[]), options?: EventOptions<RemoteFunctions>): BirpcGroup<RemoteFunctions, LocalFunctions>;
export { type ArgumentsType, type BirpcFn, type BirpcGroup, type BirpcGroupFn, type BirpcGroupReturn, type BirpcOptions, type BirpcResolver, type BirpcReturn, type ChannelOptions, DEFAULT_TIMEOUT, type EventOptions, type PromisifyFn, type ReturnType, cachedMap, createBirpc, createBirpcGroup };
{
"name": "birpc",
"type": "module",
"version": "0.2.15",
"packageManager": "pnpm@8.14.3",
"version": "0.2.16",
"packageManager": "pnpm@8.15.3",
"description": "Message based Two-way remote procedure call",

@@ -37,5 +37,5 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

"devDependencies": {
"@antfu/eslint-config": "^2.6.3",
"@antfu/eslint-config": "^2.6.4",
"@antfu/ni": "^0.21.12",
"@types/node": "^20.11.7",
"@types/node": "^20.11.19",
"bumpp": "^9.3.0",

@@ -46,4 +46,4 @@ "eslint": "^8.56.0",

"unbuild": "^2.0.0",
"vite": "^5.0.12",
"vitest": "^1.2.1"
"vite": "^5.1.3",
"vitest": "^1.3.0"
},

@@ -50,0 +50,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc