core-3nweb-client-lib 0.40.0 → 0.40.1
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/build/core/index.js +8 -3
- package/package.json +1 -1
package/build/core/index.js
CHANGED
|
@@ -302,7 +302,6 @@ class Core {
|
|
|
302
302
|
await this.storages.migrateCoreAppDataOnFirstRun('synced', `${constants_1.ASMAIL_APP_NAME}/config/anonymous/invites.json`, `${constants_1.ASMAIL_APP_NAME}/sending-params/anonymous-invites.json`);
|
|
303
303
|
}
|
|
304
304
|
async initCoreApps(emitBootEvent) {
|
|
305
|
-
// XXX push events to this.bootProcObserver
|
|
306
305
|
var _a;
|
|
307
306
|
try {
|
|
308
307
|
const address = this.idManager.getId();
|
|
@@ -322,6 +321,7 @@ class Core {
|
|
|
322
321
|
emitBootEvent({ isError: true, message: (_a = err.message) !== null && _a !== void 0 ? _a : (0, error_1.stringifyErr)(err) });
|
|
323
322
|
throw (0, error_1.errWithCause)(err, 'Failed to initialize core apps');
|
|
324
323
|
}
|
|
324
|
+
emitBootEvent(true);
|
|
325
325
|
}
|
|
326
326
|
getStorages() {
|
|
327
327
|
return this.storages.wrap();
|
|
@@ -344,8 +344,13 @@ function makeForBootEvents() {
|
|
|
344
344
|
};
|
|
345
345
|
},
|
|
346
346
|
emitBootEvent(ev) {
|
|
347
|
-
var _a;
|
|
348
|
-
(
|
|
347
|
+
var _a, _b;
|
|
348
|
+
if (ev === true) {
|
|
349
|
+
(_a = bootProcObserver === null || bootProcObserver === void 0 ? void 0 : bootProcObserver.complete) === null || _a === void 0 ? void 0 : _a.call(bootProcObserver);
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
(_b = bootProcObserver === null || bootProcObserver === void 0 ? void 0 : bootProcObserver.next) === null || _b === void 0 ? void 0 : _b.call(bootProcObserver, ev);
|
|
353
|
+
}
|
|
349
354
|
}
|
|
350
355
|
};
|
|
351
356
|
}
|