UNPKG

@vgerbot/web-rpc

Version:

A TypeScript library that provides type-safe Remote Procedure Call (RPC) communication between different JavaScript contexts using various transport mechanisms

87 lines 2.36 kB
{ "name": "@vgerbot/web-rpc", "private": false, "version": "2.0.1", "description": "A TypeScript library that provides type-safe Remote Procedure Call (RPC) communication between different JavaScript contexts using various transport mechanisms", "repository": "https://github.com/vgerbot-libraries/web-rpc.git", "homepage": "https://github.com/vgerbot-libraries/web-rpc/tree/master/packages/webrpc", "keywords": [ "rpc", "channel", "jsrpc", "tsrpc", "webrpc", "postmessage", "webworker", "serviceworker", "broadcastchannel", "transport", "typescript", "javascript", "communication", "ipc", "messaging", "browser", "cross-origin", "iframe", "api", "remote", "proxy", "client-server", "async", "promise", "serialization", "type-safe", "types" ], "author": { "name": "Chienhsin Yang", "email": "y1j2x345@gmail.com" }, "files": [ "lib" ], "main": "./lib/index.js", "module": "./lib/index.mjs", "types": "./lib/index.d.ts", "browser": "./lib/index.global.js", "unpkg": "./lib/index.global.js", "jsdelivr": "./lib/index.global.js", "exports": { ".": { "browser": "./lib/index.global.js", "import": { "@vgerbot/source": "./src/index.ts", "types": "./lib/index.d.mts", "default": "./lib/index.mjs" }, "require": { "@vgerbot/source": "./src/index.ts", "types": "./lib/index.d.ts", "default": "./lib/index.js" } }, "./package.json": "./package.json" }, "devDependencies": { "@types/webextension-polyfill": "^0.12.3" }, "peerDependencies": { "webextension-polyfill": "^0.12.0" }, "peerDependenciesMeta": { "webextension-polyfill": { "optional": true } }, "scripts": { "build": "tsup ./src/index.ts --config ../../tsup.config.ts --tsconfig ../../tsconfig.build.json", "build:watch": "pnpm build --watch", "check:exports": "attw --pack .", "test": "vitest --config ../../vitest.config.ts run", "test:unit": "vitest --config ../../vitest.config.ts --project unit run", "test:integration": "vitest --config ../../vitest.config.ts --project integration run", "test:debug": "vitest --config ../../vitest.config.ts dev", "docs:api": "typedoc ./src/index.ts" } }