@xh/hoist 74.0.0-SNAPSHOT.1748547679578 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "74.0.0-SNAPSHOT.1748547679578",
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
  );