@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.
@@ -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__, 9326, 19))
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,
@@ -1,6 +1,6 @@
1
1
  (self["webpackChunk_leofcoin_peernet"] = self["webpackChunk_leofcoin_peernet"] || []).push([[228],{
2
2
 
3
- /***/ 9326:
3
+ /***/ 9347:
4
4
  /***/ (function(__unused_webpack_module, exports) {
5
5
 
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "0.13.0",
3
+ "version": "0.13.3",
4
4
  "description": "",
5
5
  "main": "dist/commonjs/peernet.js",
6
6
  "module": "src/module/peernet.js",
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 => {