@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/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +1 -1
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{sales-C0FMkN4m.d.ts → sales-DGSi7IqU.d.ts} +2 -0
- package/dist/{sales-KbTcowYa.d.mts → sales-J_ItVjgE.d.mts} +2 -0
- package/dist/sales.d.mts +1 -1
- package/dist/sales.d.ts +1 -1
- package/dist/sales.js +8 -1
- package/dist/sales.js.map +1 -1
- package/dist/sales.mjs +8 -1
- package/dist/sales.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
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;
|