@miso.ai/server-commons 0.6.5-beta.8 → 0.6.5-beta.9
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/package.json +1 -1
- package/src/store.js +3 -2
package/package.json
CHANGED
package/src/store.js
CHANGED
|
@@ -69,9 +69,10 @@ export default class HashStore {
|
|
|
69
69
|
if (this._pending.length === 0) {
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
await fs.appendFile(this._file, this._pending.join('\n') + '\n');
|
|
72
|
+
const pending = this._pending;
|
|
74
73
|
this._pending = [];
|
|
74
|
+
await this._mkdir();
|
|
75
|
+
await fs.appendFile(this._file, pending.join('\n') + '\n');
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
exclusionStream() {
|