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
1.0.5

LICENSE.md

5

build/ts/endpoint.d.ts
import type { MessageEndpoint, RemoteCallable, EncodingStrategy, EncodingStrategyApi } from './types';
interface Options<T = unknown> {
export interface CreateEndpointOptions<T = unknown> {
uuid?(): string;

@@ -39,4 +39,3 @@ createEncoder?(api: EncodingStrategyApi): EncodingStrategy;

*/
export declare function createEndpoint<T>(initialMessenger: MessageEndpoint, { uuid, createEncoder, callable, }?: Options<T>): Endpoint<T>;
export {};
export declare function createEndpoint<T>(initialMessenger: MessageEndpoint, { uuid, createEncoder, callable, }?: CreateEndpointOptions<T>): Endpoint<T>;
//# sourceMappingURL=endpoint.d.ts.map

2

build/ts/index.d.ts
export { createEndpoint } from './endpoint';
export type { Endpoint } from './endpoint';
export type { Endpoint, CreateEndpointOptions } from './endpoint';
export { createBasicEncoder } from './encoding';

@@ -4,0 +4,0 @@ export { fromMessagePort, fromWebWorker } from './adaptors';

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

@@ -25,3 +25,4 @@ "access": "public"

"uuid": "^8.2.0"
}
},
"gitHead": "dca8fc3a4e29b8a95b23845a0f4fdd3bc2a6e1b6"
}

@@ -28,3 +28,3 @@ import {createBasicEncoder} from './encoding';

interface Options<T = unknown> {
export interface CreateEndpointOptions<T = unknown> {
uuid?(): string;

@@ -72,3 +72,3 @@ createEncoder?(api: EncodingStrategyApi): EncodingStrategy;

callable,
}: Options<T> = {},
}: CreateEndpointOptions<T> = {},
): Endpoint<T> {

@@ -75,0 +75,0 @@ let terminated = false;

export {createEndpoint} from './endpoint';
export type {Endpoint} from './endpoint';
export type {Endpoint, CreateEndpointOptions} from './endpoint';
export {createBasicEncoder} from './encoding';

@@ -4,0 +4,0 @@ export {fromMessagePort, fromWebWorker} from './adaptors';

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