@leofcoin/peernet 0.11.30 → 0.11.31
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 +2 -4
- package/dist/commonjs/peernet.js +2 -4
- package/dist/module/peernet.js +2 -4
- package/package.json +1 -1
- package/src/peernet.js +2 -4
package/dist/browser/peernet.js
CHANGED
|
@@ -1968,12 +1968,10 @@ class Peernet {
|
|
|
1968
1968
|
// fixing account issue (string while needs to be a JSON)
|
|
1969
1969
|
// TODO: remove when on mainnet
|
|
1970
1970
|
try {
|
|
1971
|
-
accounts = JSON.parse(
|
|
1971
|
+
this.accounts = JSON.parse(account);
|
|
1972
1972
|
} catch (e) {
|
|
1973
|
-
accounts = [accounts.split(',')];
|
|
1973
|
+
this.accounts = [accounts.split(',')];
|
|
1974
1974
|
}
|
|
1975
|
-
|
|
1976
|
-
this.accounts = JSON.parse(new TextDecoder().decode(accounts));
|
|
1977
1975
|
} catch (e) {
|
|
1978
1976
|
if (e.code === 'ERR_NOT_FOUND') {
|
|
1979
1977
|
const {identity, accounts, config} = await generateAccount(this.network);
|
package/dist/commonjs/peernet.js
CHANGED
|
@@ -1860,12 +1860,10 @@ class Peernet {
|
|
|
1860
1860
|
// fixing account issue (string while needs to be a JSON)
|
|
1861
1861
|
// TODO: remove when on mainnet
|
|
1862
1862
|
try {
|
|
1863
|
-
accounts = JSON.parse(
|
|
1863
|
+
this.accounts = JSON.parse(account);
|
|
1864
1864
|
} catch (e) {
|
|
1865
|
-
accounts = [accounts.split(',')];
|
|
1865
|
+
this.accounts = [accounts.split(',')];
|
|
1866
1866
|
}
|
|
1867
|
-
|
|
1868
|
-
this.accounts = JSON.parse(new TextDecoder().decode(accounts));
|
|
1869
1867
|
} catch (e) {
|
|
1870
1868
|
if (e.code === 'ERR_NOT_FOUND') {
|
|
1871
1869
|
const {identity, accounts, config} = await generateAccount(this.network);
|
package/dist/module/peernet.js
CHANGED
|
@@ -1924,12 +1924,10 @@ class Peernet {
|
|
|
1924
1924
|
// fixing account issue (string while needs to be a JSON)
|
|
1925
1925
|
// TODO: remove when on mainnet
|
|
1926
1926
|
try {
|
|
1927
|
-
accounts = JSON.parse(
|
|
1927
|
+
this.accounts = JSON.parse(account);
|
|
1928
1928
|
} catch (e) {
|
|
1929
|
-
accounts = [accounts.split(',')];
|
|
1929
|
+
this.accounts = [accounts.split(',')];
|
|
1930
1930
|
}
|
|
1931
|
-
|
|
1932
|
-
this.accounts = JSON.parse(new TextDecoder().decode(accounts));
|
|
1933
1931
|
} catch (e) {
|
|
1934
1932
|
if (e.code === 'ERR_NOT_FOUND') {
|
|
1935
1933
|
const {identity, accounts, config} = await generateAccount(this.network);
|
package/package.json
CHANGED
package/src/peernet.js
CHANGED
|
@@ -196,12 +196,10 @@ export default class Peernet {
|
|
|
196
196
|
// fixing account issue (string while needs to be a JSON)
|
|
197
197
|
// TODO: remove when on mainnet
|
|
198
198
|
try {
|
|
199
|
-
accounts = JSON.parse(
|
|
199
|
+
this.accounts = JSON.parse(account)
|
|
200
200
|
} catch (e) {
|
|
201
|
-
accounts = [accounts.split(',')]
|
|
201
|
+
this.accounts = [accounts.split(',')]
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
this.accounts = JSON.parse(new TextDecoder().decode(accounts))
|
|
205
203
|
} catch (e) {
|
|
206
204
|
if (e.code === 'ERR_NOT_FOUND') {
|
|
207
205
|
const wallet = {}
|