@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/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
|
|
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;
|