@leofcoin/peernet 0.14.25 → 0.14.26
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
|
@@ -9094,7 +9094,7 @@ class Peernet {
|
|
|
9094
9094
|
let accounts = await walletStore.get('accounts');
|
|
9095
9095
|
accounts = new TextDecoder().decode(accounts);
|
|
9096
9096
|
const selected = await walletStore.get('selected-account');
|
|
9097
|
-
globalThis.selectedAccount = new TextDecoder().decode(selected);
|
|
9097
|
+
globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
|
|
9098
9098
|
|
|
9099
9099
|
// fixing account issue (string while needs to be a JSON)
|
|
9100
9100
|
// TODO: remove when on mainnet
|
|
@@ -9115,7 +9115,7 @@ class Peernet {
|
|
|
9115
9115
|
await walletStore.put('selected-account', accounts[0][1]);
|
|
9116
9116
|
await walletStore.put('identity', JSON.stringify(identity));
|
|
9117
9117
|
|
|
9118
|
-
globalThis.selectedAccount = accounts[0][1];
|
|
9118
|
+
globalThis.peernet.selectedAccount = accounts[0][1];
|
|
9119
9119
|
this.id = identity.walletId;
|
|
9120
9120
|
}
|
|
9121
9121
|
this._peerHandler = new PeerDiscovery(this.id);
|
package/dist/browser/peernet.mjs
CHANGED
|
@@ -9064,7 +9064,7 @@ class Peernet {
|
|
|
9064
9064
|
let accounts = await walletStore.get('accounts');
|
|
9065
9065
|
accounts = new TextDecoder().decode(accounts);
|
|
9066
9066
|
const selected = await walletStore.get('selected-account');
|
|
9067
|
-
globalThis.selectedAccount = new TextDecoder().decode(selected);
|
|
9067
|
+
globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
|
|
9068
9068
|
|
|
9069
9069
|
// fixing account issue (string while needs to be a JSON)
|
|
9070
9070
|
// TODO: remove when on mainnet
|
|
@@ -9085,7 +9085,7 @@ class Peernet {
|
|
|
9085
9085
|
await walletStore.put('selected-account', accounts[0][1]);
|
|
9086
9086
|
await walletStore.put('identity', JSON.stringify(identity));
|
|
9087
9087
|
|
|
9088
|
-
globalThis.selectedAccount = accounts[0][1];
|
|
9088
|
+
globalThis.peernet.selectedAccount = accounts[0][1];
|
|
9089
9089
|
this.id = identity.walletId;
|
|
9090
9090
|
}
|
|
9091
9091
|
this._peerHandler = new PeerDiscovery(this.id);
|
package/dist/commonjs/peernet.js
CHANGED
|
@@ -627,7 +627,7 @@ class Peernet {
|
|
|
627
627
|
let accounts = await walletStore.get('accounts');
|
|
628
628
|
accounts = new TextDecoder().decode(accounts);
|
|
629
629
|
const selected = await walletStore.get('selected-account');
|
|
630
|
-
globalThis.selectedAccount = new TextDecoder().decode(selected);
|
|
630
|
+
globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
|
|
631
631
|
|
|
632
632
|
// fixing account issue (string while needs to be a JSON)
|
|
633
633
|
// TODO: remove when on mainnet
|
|
@@ -648,7 +648,7 @@ class Peernet {
|
|
|
648
648
|
await walletStore.put('selected-account', accounts[0][1]);
|
|
649
649
|
await walletStore.put('identity', JSON.stringify(identity));
|
|
650
650
|
|
|
651
|
-
globalThis.selectedAccount = accounts[0][1];
|
|
651
|
+
globalThis.peernet.selectedAccount = accounts[0][1];
|
|
652
652
|
this.id = identity.walletId;
|
|
653
653
|
}
|
|
654
654
|
this._peerHandler = new PeerDiscovery(this.id);
|
package/dist/module/peernet.js
CHANGED
|
@@ -601,7 +601,7 @@ class Peernet {
|
|
|
601
601
|
let accounts = await walletStore.get('accounts');
|
|
602
602
|
accounts = new TextDecoder().decode(accounts);
|
|
603
603
|
const selected = await walletStore.get('selected-account');
|
|
604
|
-
globalThis.selectedAccount = new TextDecoder().decode(selected);
|
|
604
|
+
globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
|
|
605
605
|
|
|
606
606
|
// fixing account issue (string while needs to be a JSON)
|
|
607
607
|
// TODO: remove when on mainnet
|
|
@@ -622,7 +622,7 @@ class Peernet {
|
|
|
622
622
|
await walletStore.put('selected-account', accounts[0][1]);
|
|
623
623
|
await walletStore.put('identity', JSON.stringify(identity));
|
|
624
624
|
|
|
625
|
-
globalThis.selectedAccount = accounts[0][1];
|
|
625
|
+
globalThis.peernet.selectedAccount = accounts[0][1];
|
|
626
626
|
this.id = identity.walletId;
|
|
627
627
|
}
|
|
628
628
|
this._peerHandler = new PeerDiscovery(this.id);
|
package/package.json
CHANGED
package/src/peernet.js
CHANGED
|
@@ -203,7 +203,7 @@ export default class Peernet {
|
|
|
203
203
|
let accounts = await walletStore.get('accounts')
|
|
204
204
|
accounts = new TextDecoder().decode(accounts)
|
|
205
205
|
const selected = await walletStore.get('selected-account')
|
|
206
|
-
globalThis.selectedAccount = new TextDecoder().decode(selected)
|
|
206
|
+
globalThis.peernet.selectedAccount = new TextDecoder().decode(selected)
|
|
207
207
|
|
|
208
208
|
// fixing account issue (string while needs to be a JSON)
|
|
209
209
|
// TODO: remove when on mainnet
|
|
@@ -224,7 +224,7 @@ export default class Peernet {
|
|
|
224
224
|
await walletStore.put('selected-account', accounts[0][1])
|
|
225
225
|
await walletStore.put('identity', JSON.stringify(identity))
|
|
226
226
|
|
|
227
|
-
globalThis.selectedAccount = accounts[0][1]
|
|
227
|
+
globalThis.peernet.selectedAccount = accounts[0][1]
|
|
228
228
|
this.id = identity.walletId
|
|
229
229
|
}
|
|
230
230
|
this._peerHandler = new PeerDiscovery(this.id)
|