@leofcoin/peernet 0.14.11 → 0.14.12

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.
@@ -459,8 +459,8 @@ class Peernet {
459
459
  if (!options.storePrefix) options.storePrefix = 'lfc';
460
460
  if (!options.port) options.port = 2000;
461
461
  if (!options.root) {
462
- if (parts[1]) options.root = `.${parts[0]}/peernet/${parts[1]}`;
463
- else options.root = `.${this.network}/peernet`;
462
+ if (parts[1]) options.root = `.${parts[0]}/${parts[1]}`;
463
+ else options.root = `.${this.network}`;
464
464
  }
465
465
  globalThis.peernet = this;
466
466
  this.bw = {
@@ -457,8 +457,8 @@ class Peernet {
457
457
  if (!options.storePrefix) options.storePrefix = 'lfc';
458
458
  if (!options.port) options.port = 2000;
459
459
  if (!options.root) {
460
- if (parts[1]) options.root = `.${parts[0]}/peernet/${parts[1]}`;
461
- else options.root = `.${this.network}/peernet`;
460
+ if (parts[1]) options.root = `.${parts[0]}/${parts[1]}`;
461
+ else options.root = `.${this.network}`;
462
462
  }
463
463
  globalThis.peernet = this;
464
464
  this.bw = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "0.14.11",
3
+ "version": "0.14.12",
4
4
  "description": "",
5
5
  "source": "src/peernet.js",
6
6
  "main": "dist/commonjs/peernet.js",
@@ -19,9 +19,7 @@
19
19
  "coveralls": "cat ./coverage/lcov.info | coveralls",
20
20
  "c": "rollup -c",
21
21
  "w": "rollup -c -w",
22
- "watch": "parcel watch",
23
- "parcel-build": "parcel build",
24
- "b": "browserify dist/module/peernet.js -o dist/module/peernet.js --standalone Peernet && rm browser.js"
22
+ "watch": "npm run w"
25
23
  },
26
24
  "keywords": [],
27
25
  "author": "",
@@ -43,7 +41,6 @@
43
41
  "node-fetch": "^2.6.1",
44
42
  "socket-request-client": "^1.5.0",
45
43
  "socket-request-server": "^1.5.0",
46
- "stream-browserify": "^3.0.0",
47
44
  "varint": "^6.0.0"
48
45
  },
49
46
  "devDependencies": {
@@ -56,6 +53,7 @@
56
53
  "path-browserify": "^1.0.1",
57
54
  "rollup": "^2.70.2",
58
55
  "rollup-plugin-modify": "^3.0.0",
56
+ "stream-browserify": "^3.0.0",
59
57
  "tape": "^5.2.2",
60
58
  "vm-browserify": "^1.1.2",
61
59
  "webpack": "^5.72.0",
package/src/peernet.js CHANGED
@@ -42,8 +42,8 @@ export default class Peernet {
42
42
  if (!options.storePrefix) options.storePrefix = 'lfc'
43
43
  if (!options.port) options.port = 2000
44
44
  if (!options.root) {
45
- if (parts[1]) options.root = `.${parts[0]}/peernet/${parts[1]}`
46
- else options.root = `.${this.network}/peernet`
45
+ if (parts[1]) options.root = `.${parts[0]}/${parts[1]}`
46
+ else options.root = `.${this.network}`
47
47
  }
48
48
  globalThis.peernet = this
49
49
  this.bw = {