UNPKG

@webext-core/messaging

Version:

Light weight, type-safe wrapper around the web extension messaging APIs. Supports all browsers (Chrome, Firefox, Safari)

81 lines (80 loc) 2.24 kB
{ "name": "@webext-core/messaging", "version": "2.3.0", "description": "Light weight, type-safe wrapper around the web extension messaging APIs. Supports all browsers (Chrome, Firefox, Safari)", "license": "MIT", "keywords": [ "web-extension", "browser-extension", "chrome-extension", "webext", "web-ext", "chrome", "firefox", "safari", "browser", "extension", "message", "messaging" ], "homepage": "https://github.com/aklinker1/webext-core/tree/main/packages/messaging", "repository": { "type": "git", "url": "git+https://github.com/aklinker1/webext-core.git", "directory": "packages/messaging" }, "type": "module", "publishConfig": { "access": "public" }, "files": [ "lib" ], "main": "./lib/index.cjs", "module": "./lib/index.js", "types": "./lib/index.d.ts", "exports": { ".": { "import": { "types": "./lib/index.d.ts", "default": "./lib/index.js" }, "require": { "types": "./lib/index.d.ts", "default": "./lib/index.cjs" } }, "./page": { "import": { "types": "./lib/page.d.ts", "default": "./lib/page.js" }, "require": { "types": "./lib/page.d.ts", "default": "./lib/page.cjs" } } }, "scripts": { "build": "buildc -- tsup src/index.ts src/page.ts --clean --out-dir lib --dts --format esm,cjs,iife --global-name webExtCoreMessaging", "test": "buildc --deps-only -- bun run test:node && bun run test:browser", "test:node": "buildc --deps-only -- vitest -r src --config ../vitest.config.node.ts", "test:browser": "buildc --deps-only -- vitest -r src --config ../vitest.config.browser.ts", "test:coverage": "buildc --deps-only -- bun run test:node --coverage && bun run test:browser --coverage", "check": "buildc --deps-only -- tsc --noEmit" }, "dependencies": { "serialize-error": "^11.0.0", "uid": "^2.0.2", "webextension-polyfill": "^0.10.0" }, "devDependencies": { "@types/webextension-polyfill": "^0.9.1", "@webext-core/fake-browser": "workspace:*", "publint": "^0.2.11", "tsconfig": "workspace:*" }, "buildc": { "outDir": "lib" } }