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

pbkit

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pbkit - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

6

core/runtime/rpc.d.ts

@@ -1,2 +0,2 @@

export declare type RpcClientImpl<TReqMetadata = any, TResMetadata = any> = <TReq, TRes>(methodDescriptor: MethodDescriptor<TReq, TRes>) => (req: AsyncGenerator<TReq>, metadata?: TReqMetadata) => [AsyncGenerator<TRes>, Promise<TResMetadata>];
export declare type RpcClientImpl<TMetadata = any, THeader = any, TTrailer = any> = <TReq, TRes>(methodDescriptor: MethodDescriptor<TReq, TRes>) => (req: AsyncGenerator<TReq>, metadata?: TMetadata) => [AsyncGenerator<TRes>, Promise<THeader>, Promise<TTrailer>];
export interface MethodDescriptor<TReq, TRes> {

@@ -18,4 +18,6 @@ methodName: string;

}
export declare type RpcReturnType<TRes, TResArgs extends any[]> = (TResArgs extends [] ? TRes : [TRes, ...TResArgs]);
declare type ThenArg<T> = T extends Promise<infer U> ? U : T;
export declare type RpcReturnType<TRes, TResArgs extends any[]> = (Promise<TResArgs extends [] ? ThenArg<TRes> : [ThenArg<TRes>, ...TResArgs]>);
export declare function singleValueToAsyncGenerator<T>(value: T): AsyncGenerator<T>;
export declare function getFirstValueFromAsyncGenerator<T>(generator: AsyncGenerator<T>): Promise<T>;
export {};
{
"name": "pbkit",
"version": "0.0.16",
"version": "0.0.17",
"author": "JongChan Choi <jong@chan.moe>",

@@ -5,0 +5,0 @@ "license": "(MIT OR Apache-2.0)",

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