@leofcoin/peernet 0.13.0 → 0.13.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/dist/browser/peernet-swarm.js +1 -1
- package/dist/browser/wrtc.js +1 -1
- package/package.json +1 -1
- package/test.js +2 -2
|
@@ -597,7 +597,7 @@ class Client {
|
|
|
597
597
|
this.starsConfig = stars
|
|
598
598
|
// reconnectJob()
|
|
599
599
|
|
|
600
|
-
if (!globalThis.RTCPeerConnection) globalThis.wrtc = await __webpack_require__.e(/* import() | wrtc */ 228).then(__webpack_require__.t.bind(__webpack_require__,
|
|
600
|
+
if (!globalThis.RTCPeerConnection) globalThis.wrtc = await __webpack_require__.e(/* import() | wrtc */ 228).then(__webpack_require__.t.bind(__webpack_require__, 9347, 19))
|
|
601
601
|
else globalThis.wrtc = {
|
|
602
602
|
RTCPeerConnection,
|
|
603
603
|
RTCSessionDescription,
|
package/dist/browser/wrtc.js
CHANGED
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -6,10 +6,10 @@ const Client = require('./dist/commonjs/peernet.js');
|
|
|
6
6
|
|
|
7
7
|
peernet.addFolder([{
|
|
8
8
|
path: 'assets/asset.png',
|
|
9
|
-
content: 'png'
|
|
9
|
+
content: Buffer.from('png')
|
|
10
10
|
}, {
|
|
11
11
|
path: 'index.html',
|
|
12
|
-
content: 'html'
|
|
12
|
+
content: Buffer.from('html')
|
|
13
13
|
}]).then(hash => peernet.ls(hash).then(paths => peernet.cat(paths[0].hash).then(content => console.log(content))))
|
|
14
14
|
|
|
15
15
|
pubsub.subscribe('peer:connected', async peer => {
|