trac-peer 0.1.75 → 0.1.77

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/index.js +14 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trac-peer",
3
3
  "main": "src/index.js",
4
- "version": "0.1.75",
4
+ "version": "0.1.77",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "assert": "npm:bare-node-assert",
@@ -37,7 +37,7 @@
37
37
  "child_process": "npm:bare-node-child-process",
38
38
  "compact-encoding": "2.16.1",
39
39
  "console": "npm:bare-node-console",
40
- "corestore": "^7.4.2",
40
+ "corestore": "7.4.1",
41
41
  "crypto": "npm:bare-node-crypto",
42
42
  "debounceify": "1.1.0",
43
43
  "events": "npm:bare-node-events",
@@ -46,8 +46,8 @@
46
46
  "fs": "npm:bare-node-fs",
47
47
  "http": "npm:bare-node-http",
48
48
  "https": "npm:bare-node-https",
49
- "hyperbee": "^2.24.2",
50
- "hypercore": "^11.6.3",
49
+ "hyperbee": "2.24.2",
50
+ "hypercore": "11.6.2",
51
51
  "hypercore-crypto": "^3.4.0",
52
52
  "hyperdht": "^6.20.5",
53
53
  "hyperswarm": "^4.11.5",
package/src/index.js CHANGED
@@ -570,6 +570,20 @@ export class Peer extends ReadyResource {
570
570
  this.tx_pool[msg.tx] = msg;
571
571
  }
572
572
  });
573
+
574
+
575
+
576
+
577
+ /*
578
+ const fullStream = this.base.view.core;
579
+ const partialStream = core.createReadStream({ start: 0 })
580
+
581
+ for await (const data of fullStream) {
582
+ console.log('data:', data)
583
+ }
584
+ */
585
+
586
+
573
587
  }
574
588
 
575
589
  async initContract(){