@peerbit/server 5.8.7-94a82ff → 5.8.8-5da22a7
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/dist/src/peerbit.js +3 -3
- package/dist/src/peerbit.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/peerbit.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peerbit/server",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.8-5da22a7",
|
|
4
4
|
"author": "dao.xyz",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"lint": "aegir lint"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@peerbit/test-lib": "0.0.1-
|
|
70
|
-
"@peerbit/test-utils": "2.2.
|
|
69
|
+
"@peerbit/test-lib": "0.0.1-5da22a7",
|
|
70
|
+
"@peerbit/test-utils": "2.2.4-5da22a7",
|
|
71
71
|
"@types/yargs": "17.0.24",
|
|
72
72
|
"aws-sdk": "^2.1259.0",
|
|
73
73
|
"dotenv": "^16.1.4",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"axios": "^1.4.0",
|
|
80
80
|
"chalk": "^5.3.0",
|
|
81
|
-
"peerbit": "4.3.
|
|
81
|
+
"peerbit": "4.3.3-5da22a7",
|
|
82
82
|
"yargs": "^17.7.2",
|
|
83
83
|
"tar-stream": "^3.1.7",
|
|
84
84
|
"tmp": "^0.2.1",
|
package/src/peerbit.ts
CHANGED
|
@@ -33,7 +33,7 @@ export const create = (properties: {
|
|
|
33
33
|
? [
|
|
34
34
|
`/dns4/${properties.domain}/tcp/4002`,
|
|
35
35
|
`/dns4/${properties.domain}/tcp/4003/wss`,
|
|
36
|
-
`/dns4/${properties.domain}/udp/4004/webrtc-direct`,
|
|
36
|
+
/* `/dns4/${properties.domain}/udp/4004/webrtc-direct`, */ // TODO: add back when webrtc-direct is supported in browser
|
|
37
37
|
]
|
|
38
38
|
: undefined,
|
|
39
39
|
listen: (() => {
|
|
@@ -44,14 +44,14 @@ export const create = (properties: {
|
|
|
44
44
|
`/ip4/127.0.0.1/tcp/${
|
|
45
45
|
listenPort !== 0 ? listenPort + 1 : listenPort
|
|
46
46
|
}/ws`,
|
|
47
|
-
`/ip4/0.0.0.0/udp/4004/webrtc-direct`,
|
|
47
|
+
/* `/ip4/0.0.0.0/udp/4004/webrtc-direct`, */ // TODO: add back when webrtc-direct is supported in browser
|
|
48
48
|
];
|
|
49
49
|
}
|
|
50
50
|
// Local-only defaults (no domain)
|
|
51
51
|
return [
|
|
52
52
|
`/ip4/127.0.0.1/tcp/${listenPort}`,
|
|
53
53
|
`/ip4/127.0.0.1/tcp/${listenPort !== 0 ? listenPort + 1 : listenPort}/ws`,
|
|
54
|
-
`/ip4/127.0.0.1/udp/${listenPort !== 0 ? listenPort + 2 : listenPort}/webrtc-direct`,
|
|
54
|
+
/* `/ip4/127.0.0.1/udp/${listenPort !== 0 ? listenPort + 2 : listenPort}/webrtc-direct`, */ // TODO: add back when webrtc-direct is supported in browser
|
|
55
55
|
];
|
|
56
56
|
})(),
|
|
57
57
|
},
|