Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@akiroz/pubsub-rpc

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@akiroz/pubsub-rpc - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

dist/main.d.ts

@@ -27,2 +27,2 @@ export declare type RPCRequest = {

};
export declare function call(client: PubSubClient, topic: string, params?: RPCParamResult, opt?: Partial<typeof defaultCallOptions>): Promise<any>;
export declare function call<P extends RPCParamResult, R extends RPCParamResult>(client: PubSubClient, topic: string, params?: P, opt?: Partial<typeof defaultCallOptions>): Promise<R>;
{
"name": "@akiroz/pubsub-rpc",
"version": "0.0.8",
"version": "0.0.9",
"main": "dist/main.js",

@@ -5,0 +5,0 @@ "types": "dist/main.d.ts",

@@ -51,8 +51,8 @@ import { EventEmitter } from "events";

export async function call(
export async function call<P extends RPCParamResult, R extends RPCParamResult>(
client: PubSubClient,
topic: string,
params: RPCParamResult = {},
params: P = {} as P,
opt: Partial<typeof defaultCallOptions> = defaultCallOptions
): Promise<any> {
): Promise<R> {
opt = Object.assign({}, defaultCallOptions, opt);

@@ -59,0 +59,0 @@ const id = generateCallId(opt.idSize);

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