@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 CHANGED
@@ -1245,7 +1245,7 @@ class ApplicationBootstrap {
1245
1245
  this.logger.info(`Initializing ${this.storeDefinitions.length} store(s)...`);
1246
1246
  let isFirstStore = true;
1247
1247
  for (const store of this.storeDefinitions) {
1248
- const diKey = `CentralStore:${store.name}`;
1248
+ const diKey = `CentralStore:${store.def.name}`;
1249
1249
  const storeInstance = store.store;
1250
1250
  const classes = store.classes;
1251
1251
  IJob.container.bind(diKey).toConstantValue(storeInstance);
@@ -1253,10 +1253,13 @@ class ApplicationBootstrap {
1253
1253
  IJob.container.bind(IJob.TOKENS.Store).toConstantValue(storeInstance);
1254
1254
  isFirstStore = false;
1255
1255
  }
1256
- this.registerMessageClass(classes.GetStoreStateMessage, `store:${store.name}:getState`);
1257
- this.registerMessageClass(classes.SetStoreStateMessage, `store:${store.name}:setState`);
1258
- this.registerMessageClass(classes.SubscribeToStoreMessage, `store:${store.name}:subscribe`);
1259
- this.logger.debug(`\u2705 Initialized store: ${store.name}`);
1256
+ this.registerMessageClass(classes.GetStoreStateMessage, `store:${store.def.name}:getState`);
1257
+ this.registerMessageClass(classes.SetStoreStateMessage, `store:${store.def.name}:setState`);
1258
+ this.registerMessageClass(
1259
+ classes.SubscribeToStoreMessage,
1260
+ `store:${store.def.name}:subscribe`
1261
+ );
1262
+ this.logger.debug(`\u2705 Initialized store: ${store.def.name}`);
1260
1263
  }
1261
1264
  this.logger.success(`\u2705 Initialized ${this.storeDefinitions.length} store(s)`);
1262
1265
  } catch (error) {