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

webextension-rpc/ package.json
52 lines
1.2 KiB

  1. {
  2. "name": "webextension-rpc",
  3. "version": "0.3.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": [
  22. "lib"
  23. ],
  24. "scripts": {
  25. "prepare": "tsc",
  26. "test": "ava"
  27. },
  28. "homepage": "https://code.treora.com/gerben/webextension-rpc",
  29. "repository": {
  30. "type": "git",
  31. "url": "https://code.treora.com/gerben/webextension-rpc"
  32. },
  33. "author": "Gerben <gerben@treora.com>",
  34. "license": "CC0-1.0",
  35. "dependencies": {},
  36. "devDependencies": {
  37. "@types/firefox-webext-browser": "^94.0.1",
  38. "ava": "^4.3.1",
  39. "ts-node": "^10.9.1",
  40. "ts-sinon": "^2.0.2",
  41. "typescript": "^4.7.4"
  42. },
  43. "ava": {
  44. "extensions": [
  45. "ts"
  46. ],
  47. "require": [
  48. "ts-node/register"
  49. ]
  50. }
  51. }