Remote Procedure Call implementation for WebExtensions, to easily call functions across content scripts and background script.

webextension-rpc/ package.json
50 lines
1.2 KiB

  1. {
  2. "name": "webextension-rpc",
  3. "version": "0.2.0",
  4. "description": "Remote Procedure Call implementation for WebExtensions, to easily call functions across content scripts and background script.",
  5. "main": "./lib/index.js",
  6. "types": "./lib/index.d.ts",
  7. "exports": {
  8. ".": {
  9. "import": "./lib/index.js",
  10. "types": "./lib/index.d.ts"
  11. },
  12. "./RpcClient": {
  13. "import": "./lib/RpcClient.js",
  14. "types": "./lib/RpcClient.d.ts"
  15. },
  16. "./RpcServer": {
  17. "import": "./lib/RpcServer.js",
  18. "types": "./lib/RpcServer.d.ts"
  19. }
  20. },
  21. "files": ["lib"],
  22. "scripts": {
  23. "prepare": "tsc",
  24. "test": "ava"
  25. },
  26. "homepage": "https://code.treora.com/gerben/webextension-rpc",
  27. "repository": {
  28. "type": "git",
  29. "url": "https://code.treora.com/gerben/webextension-rpc"
  30. },
  31. "author": "Gerben <gerben@treora.com>",
  32. "license": "CC0-1.0",
  33. "dependencies": {},
  34. "devDependencies": {
  35. "@types/firefox-webext-browser": "^94.0.1",
  36. "ava": "^4.3.1",
  37. "ts-node": "^10.9.1",
  38. "ts-sinon": "^2.0.2",
  39. "typescript": "^4.7.4"
  40. },
  41. "ava": {
  42. "extensions": [
  43. "ts"
  44. ],
  45. "require": [
  46. "ts-node/register"
  47. ]
  48. }
  49. }