New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@remote-ui/rpc

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remote-ui/rpc - npm Package Compare versions

Comparing version

to
0.0.13

build/esm/adaptors/index.mjs

2

build/ts/index.d.ts

@@ -7,3 +7,3 @@ export { createEndpoint } from './endpoint';

export type { Retainer, MemoryManageable } from './memory';
export type { FunctionStrategy, FunctionStrategyOptions, RemoteCallable, SafeRpcArgument, MessageEndpoint, } from './types';
export type { FunctionStrategy, FunctionStrategyOptions, RemoteCallable, SafeRpcArgument, MessageEndpoint, MaybePromise, } from './types';
//# sourceMappingURL=index.d.ts.map

@@ -11,2 +11,3 @@ export interface MessageEndpoint {

declare type RemoteCallableField<T> = T extends (...args: infer Args) => infer TypeReturned ? (...args: Args) => AlwaysAsync<TypeReturned> : never;
export declare type MaybePromise<T> = T extends Promise<any> ? T : T | Promise<T>;
declare type AlwaysAsync<T> = T extends Promise<any> ? T : T extends infer U | Promise<infer U> ? Promise<U> : T extends (...args: infer Args) => infer TypeReturned ? (...args: Args) => AlwaysAsync<TypeReturned> : T extends (infer ArrayElement)[] ? AlwaysAsync<ArrayElement>[] : T extends readonly (infer ArrayElement)[] ? readonly AlwaysAsync<ArrayElement>[] : T extends object ? {

@@ -13,0 +14,0 @@ [K in keyof T]: AlwaysAsync<T[K]>;

{
"name": "@remote-ui/rpc",
"description": "An RPC library with strong support for simulating the transfer of functions via postMessage",
"version": "0.0.12",
"version": "0.0.13",
"publishConfig": {

@@ -6,0 +6,0 @@ "access": "public"

@@ -23,2 +23,3 @@ export {createEndpoint} from './endpoint';

MessageEndpoint,
MaybePromise,
} from './types';

@@ -22,2 +22,4 @@ export interface MessageEndpoint {

export type MaybePromise<T> = T extends Promise<any> ? T : T | Promise<T>;
type AlwaysAsync<T> = T extends Promise<any>

@@ -24,0 +26,0 @@ ? T

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