@leofcoin/chain 1.7.27 → 1.7.28
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.
|
@@ -187,23 +187,22 @@ class BrowerStore {
|
|
|
187
187
|
}
|
|
188
188
|
(await writeable).write(this.toKeyValue(value));
|
|
189
189
|
(await writeable).close();
|
|
190
|
+
this.runQueue();
|
|
190
191
|
resolve(true);
|
|
191
|
-
if (this.queue.length > 0 && !this.busy) {
|
|
192
|
-
this.runQueue();
|
|
193
|
-
}
|
|
194
192
|
});
|
|
195
193
|
this.queue.push(promise);
|
|
196
194
|
this.runQueue();
|
|
197
195
|
return promise;
|
|
198
196
|
}
|
|
199
197
|
async runQueue() {
|
|
200
|
-
if (this.queue.length > 0) {
|
|
198
|
+
if (this.queue.length > 0 && !this.busy) {
|
|
201
199
|
this.busy = true;
|
|
202
200
|
const next = this.queue.shift();
|
|
203
201
|
await next();
|
|
202
|
+
this.busy = false;
|
|
204
203
|
return this.runQueue();
|
|
205
204
|
}
|
|
206
|
-
else {
|
|
205
|
+
else if (this.queue.length === 0 && this.busy) {
|
|
207
206
|
this.busy = false;
|
|
208
207
|
}
|
|
209
208
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leofcoin/chain",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.28",
|
|
4
4
|
"description": "Official javascript implementation",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
@@ -56,26 +56,26 @@
|
|
|
56
56
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
57
57
|
"@types/semver": "^7.5.8",
|
|
58
58
|
"@vandeurenglenn/debug": "^1.2.5",
|
|
59
|
-
"rollup": "^4.
|
|
59
|
+
"rollup": "^4.21.0",
|
|
60
60
|
"rollup-plugin-modify": "^3.0.0",
|
|
61
61
|
"tape": "^5.8.1",
|
|
62
62
|
"tslib": "^2.6.3"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@leofcoin/addresses": "^1.0.
|
|
66
|
-
"@leofcoin/contracts": "^0.1.
|
|
65
|
+
"@leofcoin/addresses": "^1.0.24",
|
|
66
|
+
"@leofcoin/contracts": "^0.1.12",
|
|
67
67
|
"@leofcoin/crypto": "^0.2.12",
|
|
68
68
|
"@leofcoin/errors": "^1.0.7",
|
|
69
|
-
"@leofcoin/lib": "^1.2.
|
|
69
|
+
"@leofcoin/lib": "^1.2.44",
|
|
70
70
|
"@leofcoin/messages": "^1.4.15",
|
|
71
71
|
"@leofcoin/multi-wallet": "^3.1.8",
|
|
72
72
|
"@leofcoin/networks": "^1.1.6",
|
|
73
|
-
"@leofcoin/peernet": "^1.1.
|
|
74
|
-
"@leofcoin/storage": "^3.5.
|
|
73
|
+
"@leofcoin/peernet": "^1.1.79",
|
|
74
|
+
"@leofcoin/storage": "^3.5.30",
|
|
75
75
|
"@leofcoin/utils": "^1.1.18",
|
|
76
76
|
"@leofcoin/workers": "^1.5.2",
|
|
77
77
|
"@vandeurenglenn/base58": "^1.1.9",
|
|
78
78
|
"@vandeurenglenn/easy-worker": "^1.0.2",
|
|
79
|
-
"semver": "^7.6.
|
|
79
|
+
"semver": "^7.6.3"
|
|
80
80
|
}
|
|
81
81
|
}
|