@chromahq/core 0.1.14 → 0.1.15
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/boot.cjs.js +8 -5
- package/dist/boot.cjs.js.map +1 -1
- package/dist/boot.es.js +8 -5
- package/dist/boot.es.js.map +1 -1
- package/package.json +1 -1
package/dist/boot.es.js
CHANGED
|
@@ -1243,7 +1243,7 @@ class ApplicationBootstrap {
|
|
|
1243
1243
|
this.logger.info(`Initializing ${this.storeDefinitions.length} store(s)...`);
|
|
1244
1244
|
let isFirstStore = true;
|
|
1245
1245
|
for (const store of this.storeDefinitions) {
|
|
1246
|
-
const diKey = `CentralStore:${store.name}`;
|
|
1246
|
+
const diKey = `CentralStore:${store.def.name}`;
|
|
1247
1247
|
const storeInstance = store.store;
|
|
1248
1248
|
const classes = store.classes;
|
|
1249
1249
|
container.bind(diKey).toConstantValue(storeInstance);
|
|
@@ -1251,10 +1251,13 @@ class ApplicationBootstrap {
|
|
|
1251
1251
|
container.bind(TOKENS.Store).toConstantValue(storeInstance);
|
|
1252
1252
|
isFirstStore = false;
|
|
1253
1253
|
}
|
|
1254
|
-
this.registerMessageClass(classes.GetStoreStateMessage, `store:${store.name}:getState`);
|
|
1255
|
-
this.registerMessageClass(classes.SetStoreStateMessage, `store:${store.name}:setState`);
|
|
1256
|
-
this.registerMessageClass(
|
|
1257
|
-
|
|
1254
|
+
this.registerMessageClass(classes.GetStoreStateMessage, `store:${store.def.name}:getState`);
|
|
1255
|
+
this.registerMessageClass(classes.SetStoreStateMessage, `store:${store.def.name}:setState`);
|
|
1256
|
+
this.registerMessageClass(
|
|
1257
|
+
classes.SubscribeToStoreMessage,
|
|
1258
|
+
`store:${store.def.name}:subscribe`
|
|
1259
|
+
);
|
|
1260
|
+
this.logger.debug(`\u2705 Initialized store: ${store.def.name}`);
|
|
1258
1261
|
}
|
|
1259
1262
|
this.logger.success(`\u2705 Initialized ${this.storeDefinitions.length} store(s)`);
|
|
1260
1263
|
} catch (error) {
|