Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
axuj committed Jul 2, 2024
1 parent 362b12c commit efb0818
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 62 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# webext-rpc

This is a library for making RPC calls to a web extension from a web page. It uses the `webextension-polyfill` API to communicate with the extension.
A type-safe RPC for all webextension, client side code does not contain the actual called code, supports async generator functions

Supports normal functions, async functions, generator functions, and async generator functions.
This is a library for making RPC calls to a web extension from a web page. It uses the `webextension-polyfill` API to communicate with the extension, supports all browsers (Chrome, Firefox, Safari).

Supports `normal functions`, `async functions`, `generator functions`, and `async generator functions`.

## Usage

Expand Down
10 changes: 5 additions & 5 deletions demo/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 23 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "webext-rpc",
"version": "1.0.0",
"description": "",
"version": "1.0.1",
"description": "A type-safe RPC for all webextension, client side code does not contain the actual called code, supports async generator functions",
"type": "module",
"publishConfig": {
"access": "public"
Expand All @@ -23,18 +23,33 @@
"test": "vitest",
"buildWhithDemo": "pnpm run build && cd demo && pnpm install && pnpm run dev"
},
"keywords": [],
"author": "",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/axuj/webext-rpc"
},
"keywords": [
"webextension",
"extension",
"browser-extension",
"chrome-extension",
"firefox-extension",
"safari-extension",
"rpc",
"type-safe",
"webext",
"web-ext",
"chrome",
"firefox",
"safari",
"browser"
],
"license": "MIT",
"dependencies": {
"@trpc/client": "11.0.0-rc.433",
"@trpc/server": "11.0.0-rc.433",
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
"@types/webextension-polyfill": "^0.10.7",
"tsup": "^8.1.0",
"tsx": "^4.16.0",
"typescript": "^5.5.2",
"vitest": "^1.6.0",
"@vitest/coverage-v8": "^1.6.0"
Expand Down
47 changes: 0 additions & 47 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit efb0818

Please sign in to comment.