@rotorjs/dashboard 0.5.0 → 0.5.2

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/main.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './DashboardAction';
2
2
  export * from './DashboardEngine';
3
+ export * from './DashboardEnvironment';
3
4
  export * from './DashboardEventTarget';
4
5
  export * from './DashboardFact';
5
6
  export * from './DashboardState';
package/dist/main.js CHANGED
@@ -206,8 +206,9 @@ var p = class extends n {
206
206
  getLocale(e) {
207
207
  if (e?.locale) return e.locale;
208
208
  if (this.#e?.locale) return this.#e.locale;
209
+ this.#e?.reducer?.addInterest(f(_));
209
210
  let t = this.#e?.reducer?.engine.getFact(_)?.value;
210
- return this.#e?.reducer?.addInterest(f(_)), typeof t == "string" ? t : void 0;
211
+ return typeof t == "string" && t ? t : void 0;
211
212
  }
212
213
  getFormat(e) {
213
214
  return new Intl.NumberFormat(this.getLocale(e));
@@ -236,4 +237,4 @@ function y(e, t) {
236
237
  }
237
238
  }
238
239
  //#endregion
239
- export { p as DashboardEngine, m as DashboardEventTarget, h as DashboardStateConsumer, g as DashboardStateReducer, v as NumberFormatter, f as dashboardFactInterest, _ as dashboardLocaleFact, d as dashboardVarInterest };
240
+ export { p as DashboardEngine, c as DashboardEnvironment, m as DashboardEventTarget, h as DashboardStateConsumer, g as DashboardStateReducer, u as FactEvent, v as NumberFormatter, l as VarEvent, f as dashboardFactInterest, _ as dashboardLocaleFact, d as dashboardVarInterest };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rotorjs/dashboard",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Rotor",
5
5
  "author": {
6
6
  "name": "Aaron Burmeister"