@source-repo/rpc 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +72 -72
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ A class is the contract: the server hands one live instance to `exposeClassInsta
|
|
|
23
23
|
npm install @source-repo/rpc
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
ESM only, Node
|
|
26
|
+
ESM only, Node 22 or later, and it runs in the browser.
|
|
27
27
|
|
|
28
28
|
**If all you need is a browser talking to a Node server, use [tRPC](https://trpc.io).** It is very good at that and far more widely used. This is for the case it does not cover: more than two parties, not all on the same kind of link, and commands where sending one twice is not free.
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
"name": "@source-repo/rpc",
|
|
3
|
+
"version": "3.3.0",
|
|
4
|
+
"description": "Source RPC: TypeScript RPC over socket.io and MQTT 5, using classes as contracts shared by client and server",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rpc",
|
|
7
|
+
"mqtt",
|
|
8
|
+
"websocket",
|
|
9
|
+
"socket.io",
|
|
10
|
+
"typescript",
|
|
11
|
+
"msgpack"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "anderswestberg",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/source-repo/rpc.git",
|
|
19
|
+
"directory": "packages/rpc"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=22"
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"browser": {
|
|
30
|
+
"types": "./dist/index-web.d.ts",
|
|
31
|
+
"default": "./dist/index-web.js"
|
|
32
|
+
},
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"default": "./dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
35
37
|
},
|
|
36
|
-
"./package.json": "./package.json"
|
|
37
|
-
},
|
|
38
|
-
"files": [
|
|
39
|
-
"dist",
|
|
40
|
-
"!dist/**/*.test.*"
|
|
41
|
-
],
|
|
42
|
-
"scripts": {
|
|
43
|
-
"build": "tsc -p tsconfig.json",
|
|
44
|
-
"clean": "rimraf dist",
|
|
45
|
-
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p examples/tsconfig.json",
|
|
46
|
-
"test": "npm run clean && npm run build && ava",
|
|
47
|
-
"prepack": "npm run clean && npm run build",
|
|
48
|
-
"build:examples": "tsc -p examples/tsconfig.json"
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"@msgpack/msgpack": "^3.1.2",
|
|
52
|
-
"@scure/bip39": "^2.2.0",
|
|
53
|
-
"events": "^3.3.0",
|
|
54
|
-
"mqtt": "^5.10.1",
|
|
55
|
-
"socket.io": "^4.8.1",
|
|
56
|
-
"socket.io-client": "^4.8.1",
|
|
57
|
-
"uint8array-extras": "^1.1.0",
|
|
58
|
-
"uuid": "^14.0.1"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@types/node": "^26.1.2",
|
|
62
|
-
"ava": "^8.0.1",
|
|
63
|
-
"rimraf": "^6.0.1",
|
|
64
|
-
"typescript": "^7.0.2"
|
|
65
|
-
},
|
|
66
|
-
"ava": {
|
|
67
38
|
"files": [
|
|
68
|
-
|
|
39
|
+
"dist",
|
|
40
|
+
"!dist/**/*.test.*"
|
|
69
41
|
],
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsc -p tsconfig.json",
|
|
44
|
+
"clean": "rimraf dist",
|
|
45
|
+
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p examples/tsconfig.json",
|
|
46
|
+
"test": "npm run clean && npm run build && ava",
|
|
47
|
+
"prepack": "npm run clean && npm run build",
|
|
48
|
+
"build:examples": "tsc -p examples/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@msgpack/msgpack": "^3.1.2",
|
|
52
|
+
"@scure/bip39": "^2.2.0",
|
|
53
|
+
"events": "^3.3.0",
|
|
54
|
+
"mqtt": "^5.10.1",
|
|
55
|
+
"socket.io": "^4.8.1",
|
|
56
|
+
"socket.io-client": "^4.8.1",
|
|
57
|
+
"uint8array-extras": "^1.1.0",
|
|
58
|
+
"uuid": "^14.0.1"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@types/node": "^26.1.2",
|
|
62
|
+
"ava": "^8.0.1",
|
|
63
|
+
"rimraf": "^6.0.1",
|
|
64
|
+
"typescript": "^7.0.2"
|
|
65
|
+
},
|
|
66
|
+
"ava": {
|
|
67
|
+
"files": [
|
|
68
|
+
"dist/**/*.test.js"
|
|
69
|
+
],
|
|
70
|
+
"workerThreads": false,
|
|
71
|
+
"concurrency": 1
|
|
72
|
+
},
|
|
73
|
+
"homepage": "https://github.com/source-repo/rpc/tree/main/packages/rpc#readme",
|
|
74
|
+
"bugs": {
|
|
75
|
+
"url": "https://github.com/source-repo/rpc/issues"
|
|
76
|
+
}
|
|
77
77
|
}
|