@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/sales.mjs CHANGED
@@ -1355,9 +1355,16 @@ function optionKeys(value) {
1355
1355
  }
1356
1356
 
1357
1357
  // ../tracking-core/src/resources/http/errors.ts
1358
- var AranovaApiError = class extends Error {
1358
+ var API_ERROR_BRAND = /* @__PURE__ */ Symbol.for("aranova.api_error");
1359
+ var AranovaApiError = class _AranovaApiError extends Error {
1360
+ /** `instanceof` checks the brand, so an error from another entry's copy of this class passes. */
1361
+ static [Symbol.hasInstance](value) {
1362
+ if (this !== _AranovaApiError) return Function.prototype[Symbol.hasInstance].call(this, value);
1363
+ return typeof value === "object" && value !== null && value[API_ERROR_BRAND] === true;
1364
+ }
1359
1365
  constructor(message, options) {
1360
1366
  super(message);
1367
+ Object.defineProperty(this, API_ERROR_BRAND, { value: true });
1361
1368
  this.name = "AranovaApiError";
1362
1369
  this.status = options.status;
1363
1370
  this.code = options.code;