@leofcoin/peernet 0.11.16 → 0.11.17
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
CHANGED
|
@@ -2231,7 +2231,6 @@ class MessageHandler {
|
|
|
2231
2231
|
let identity = await walletStore.get('identity');
|
|
2232
2232
|
identity = JSON.parse(new TextDecoder().decode(identity));
|
|
2233
2233
|
const wallet = new MultiWallet(this.network);
|
|
2234
|
-
console.log(identity);
|
|
2235
2234
|
wallet.recover(identity.mnemonic);
|
|
2236
2235
|
return wallet.sign(Buffer.from(hasher.hash).slice(0, 32))
|
|
2237
2236
|
}
|
|
@@ -2336,7 +2335,7 @@ class Peernet {
|
|
|
2336
2335
|
if (this.hasDaemon) {
|
|
2337
2336
|
Storage = LeofcoinStorageClient;
|
|
2338
2337
|
} else {
|
|
2339
|
-
Storage = globalThis.LeofcoinStorage
|
|
2338
|
+
Storage = globalThis.LeofcoinStorage ? globalThis.LeofcoinStorage : LeofcoinStorage__default["default"];
|
|
2340
2339
|
}
|
|
2341
2340
|
globalThis[`${name}Store`] = globalThis[`${name}Store`] ||
|
|
2342
2341
|
await new Storage(name, root);
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var PubSub__default = /*#__PURE__*/_interopDefaultLegacy(PubSub);
|
|
11
11
|
var Koa__default = /*#__PURE__*/_interopDefaultLegacy(Koa);
|
|
12
12
|
|
|
13
|
-
var version = "0.11.
|
|
13
|
+
var version = "0.11.16";
|
|
14
14
|
|
|
15
15
|
var api$1 = {
|
|
16
16
|
version: ({send}) => send({client: '@peernet/api/http', version}),
|
package/dist/commonjs/peernet.js
CHANGED
|
@@ -1589,7 +1589,6 @@ class MessageHandler {
|
|
|
1589
1589
|
let identity = await walletStore.get('identity');
|
|
1590
1590
|
identity = JSON.parse(new TextDecoder().decode(identity));
|
|
1591
1591
|
const wallet = new MultiWallet(this.network);
|
|
1592
|
-
console.log(identity);
|
|
1593
1592
|
wallet.recover(identity.mnemonic);
|
|
1594
1593
|
return wallet.sign(Buffer.from(hasher.hash).slice(0, 32))
|
|
1595
1594
|
}
|
|
@@ -1694,7 +1693,7 @@ class Peernet {
|
|
|
1694
1693
|
if (this.hasDaemon) {
|
|
1695
1694
|
Storage = LeofcoinStorageClient;
|
|
1696
1695
|
} else {
|
|
1697
|
-
Storage = globalThis.LeofcoinStorage
|
|
1696
|
+
Storage = globalThis.LeofcoinStorage ? globalThis.LeofcoinStorage : LeofcoinStorage__default["default"];
|
|
1698
1697
|
}
|
|
1699
1698
|
globalThis[`${name}Store`] = globalThis[`${name}Store`] ||
|
|
1700
1699
|
await new Storage(name, root);
|
|
@@ -1796,7 +1795,7 @@ class Peernet {
|
|
|
1796
1795
|
protocol: 'peernet-v0.1.0', host: '127.0.0.1', port: options.port
|
|
1797
1796
|
});
|
|
1798
1797
|
} else {
|
|
1799
|
-
const http = await Promise.resolve().then(function () { return require('./http-
|
|
1798
|
+
const http = await Promise.resolve().then(function () { return require('./http-feac1075.js'); });
|
|
1800
1799
|
if (environment !== 'browser') http.default(options);
|
|
1801
1800
|
}
|
|
1802
1801
|
|
package/dist/module/peernet.js
CHANGED
|
@@ -2185,7 +2185,6 @@ class MessageHandler {
|
|
|
2185
2185
|
let identity = await walletStore.get('identity');
|
|
2186
2186
|
identity = JSON.parse(new TextDecoder().decode(identity));
|
|
2187
2187
|
const wallet = new MultiWallet(this.network);
|
|
2188
|
-
console.log(identity);
|
|
2189
2188
|
wallet.recover(identity.mnemonic);
|
|
2190
2189
|
return wallet.sign(Buffer.from(hasher.hash).slice(0, 32))
|
|
2191
2190
|
}
|
|
@@ -2290,7 +2289,7 @@ class Peernet {
|
|
|
2290
2289
|
if (this.hasDaemon) {
|
|
2291
2290
|
Storage = LeofcoinStorageClient;
|
|
2292
2291
|
} else {
|
|
2293
|
-
Storage = globalThis.LeofcoinStorage
|
|
2292
|
+
Storage = globalThis.LeofcoinStorage ? globalThis.LeofcoinStorage : LeofcoinStorage;
|
|
2294
2293
|
}
|
|
2295
2294
|
globalThis[`${name}Store`] = globalThis[`${name}Store`] ||
|
|
2296
2295
|
await new Storage(name, root);
|
package/package.json
CHANGED
package/src/peernet.js
CHANGED
|
@@ -86,7 +86,7 @@ export default class Peernet {
|
|
|
86
86
|
if (this.hasDaemon) {
|
|
87
87
|
Storage = LeofcoinStorageClient
|
|
88
88
|
} else {
|
|
89
|
-
Storage = globalThis.LeofcoinStorage
|
|
89
|
+
Storage = globalThis.LeofcoinStorage ? globalThis.LeofcoinStorage : LeofcoinStorage
|
|
90
90
|
}
|
|
91
91
|
globalThis[`${name}Store`] = globalThis[`${name}Store`] ||
|
|
92
92
|
await new Storage(name, root)
|