@leofcoin/peernet 0.14.11 → 0.14.13
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.js +4055 -275
- package/dist/commonjs/peernet.js +2 -2
- package/dist/module/peernet.js +2 -2
- package/package.json +3 -5
- package/src/peernet.js +2 -2
package/dist/commonjs/peernet.js
CHANGED
|
@@ -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]}
|
|
463
|
-
else options.root = `.${this.network}
|
|
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 = {
|
package/dist/module/peernet.js
CHANGED
|
@@ -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]}
|
|
461
|
-
else options.root = `.${this.network}
|
|
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.
|
|
3
|
+
"version": "0.14.13",
|
|
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": "
|
|
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]}
|
|
46
|
-
else options.root = `.${this.network}
|
|
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 = {
|