swarm-pubsub 0.1.1 → 0.1.3
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 +4 -1
- package/dist/THIRD_PARTY_LICENSES.node.md +493 -0
- package/dist/index.js +5 -5
- package/dist/node.js +57680 -0
- package/package.json +10 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swarm-pubsub",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Swarm pubsub for browsers and Node.js: connect to a broker node over libp2p, no local Bee node required",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"swarm",
|
|
@@ -25,27 +25,31 @@
|
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
|
-
"
|
|
28
|
+
"node": "./dist/node.js",
|
|
29
|
+
"default": "./dist/index.js"
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
"files": [
|
|
32
33
|
"dist/index.js",
|
|
34
|
+
"dist/node.js",
|
|
33
35
|
"dist/index.d.ts",
|
|
34
|
-
"dist/THIRD_PARTY_LICENSES.md"
|
|
36
|
+
"dist/THIRD_PARTY_LICENSES.md",
|
|
37
|
+
"dist/THIRD_PARTY_LICENSES.node.md"
|
|
35
38
|
],
|
|
36
39
|
"sideEffects": false,
|
|
37
40
|
"engines": {
|
|
38
41
|
"node": ">=22"
|
|
39
42
|
},
|
|
40
43
|
"scripts": {
|
|
41
|
-
"build": "vite build && tsc --emitDeclarationOnly",
|
|
44
|
+
"build": "vite build && vite build --mode node && tsc --emitDeclarationOnly",
|
|
42
45
|
"typecheck": "tsc --noEmit",
|
|
43
46
|
"test": "node --test test/*.test.ts",
|
|
44
47
|
"prepare": "patch-package",
|
|
45
48
|
"chat": "vite examples/chat",
|
|
46
49
|
"bridge": "node scripts/ws-bridge.ts",
|
|
47
50
|
"test:live": "node test/live.ts && node test/live-game.ts",
|
|
48
|
-
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
51
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build && npm run test:e2e",
|
|
52
|
+
"test:e2e": "playwright install chromium-headless-shell && node test/browser-node.ts"
|
|
49
53
|
},
|
|
50
54
|
"devDependencies": {
|
|
51
55
|
"@chainsafe/libp2p-noise": "^17.0.0",
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
"@types/ws": "^8.18.2",
|
|
62
66
|
"libp2p": "^3.5.1",
|
|
63
67
|
"patch-package": "^8.0.1",
|
|
68
|
+
"playwright": "^1.65.1",
|
|
64
69
|
"typescript": "^7.0.2",
|
|
65
70
|
"uint8arraylist": "^3.0.2",
|
|
66
71
|
"vite": "^8.3.5",
|