@aranova/tracking-react 1.16.0 → 1.16.1

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/index.mjs CHANGED
@@ -1992,9 +1992,16 @@ function timeWindow(start, end, label) {
1992
1992
  }
1993
1993
 
1994
1994
  // ../tracking-core/src/resources/http/errors.ts
1995
- var AranovaApiError = class extends Error {
1995
+ var API_ERROR_BRAND = /* @__PURE__ */ Symbol.for("aranova.api_error");
1996
+ var AranovaApiError = class _AranovaApiError extends Error {
1997
+ /** `instanceof` checks the brand, so an error from another entry's copy of this class passes. */
1998
+ static [Symbol.hasInstance](value) {
1999
+ if (this !== _AranovaApiError) return Function.prototype[Symbol.hasInstance].call(this, value);
2000
+ return typeof value === "object" && value !== null && value[API_ERROR_BRAND] === true;
2001
+ }
1996
2002
  constructor(message, options) {
1997
2003
  super(message);
2004
+ Object.defineProperty(this, API_ERROR_BRAND, { value: true });
1998
2005
  this.name = "AranovaApiError";
1999
2006
  this.status = options.status;
2000
2007
  this.code = options.code;