@xh/hoist 74.0.0-SNAPSHOT.1748535979199 → 74.0.0-SNAPSHOT.1748626008777

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.
@@ -253,7 +253,9 @@ export const instance: ColumnSpec = {
253
253
  export const loadId: ColumnSpec = {
254
254
  field: {
255
255
  name: 'loadId',
256
- type: 'string'
256
+ type: 'string',
257
+ isDimension: true,
258
+ aggregator: 'UNIQUE'
257
259
  },
258
260
  chooserDescription:
259
261
  'A unique ID assigned to each load/init of the application. Refreshing the tab within your browser will result in a new Load ID.',
@@ -317,7 +319,9 @@ function getSeverityIcon(severity: TrackSeverity): ReactElement {
317
319
  export const tabId: ColumnSpec = {
318
320
  field: {
319
321
  name: 'tabId',
320
- type: 'string'
322
+ type: 'string',
323
+ isDimension: true,
324
+ aggregator: 'UNIQUE'
321
325
  },
322
326
  chooserDescription:
323
327
  'A new Tab ID is established within browser session storage and maintained for the lifetime of the tab. Refreshing the app within your browser will maintain the existing Tab ID',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "74.0.0-SNAPSHOT.1748535979199",
3
+ "version": "74.0.0-SNAPSHOT.1748626008777",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",
@@ -202,7 +202,9 @@ const enhancePromise = promisePrototype => {
202
202
  if (!options) return this;
203
203
 
204
204
  const startTime = Date.now(),
205
- doTrack = (isError: boolean) => {
205
+ doTrack = (exception: unknown = null) => {
206
+ if (exception && exception['isRoutine']) return;
207
+
206
208
  const endTime = Date.now(),
207
209
  opts: TrackOptions = isString(options) ? {message: options} : {...options};
208
210
  opts.timestamp = startTime;
@@ -220,18 +222,18 @@ const enhancePromise = promisePrototype => {
220
222
  ) {
221
223
  opts.elapsed = null;
222
224
  }
223
- if (isError) opts.severity = 'ERROR';
225
+ if (exception) opts.severity = 'ERROR';
224
226
 
225
227
  XH.track(opts);
226
228
  };
227
229
 
228
230
  return this.then(
229
231
  (v: T) => {
230
- doTrack(false);
232
+ doTrack();
231
233
  return v;
232
234
  },
233
235
  (t: unknown) => {
234
- doTrack(true);
236
+ doTrack(t);
235
237
  throw t;
236
238
  }
237
239
  );