@depict-ai/utilishared 2.1.6 → 2.2.0

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/ES10/index.cjs CHANGED
@@ -276,7 +276,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
276
276
  $parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
277
277
  $parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
278
278
  $parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
279
- const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.1.6";
279
+ const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.2.0";
280
280
  const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
281
281
  const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
282
282
  let $7f95f77417d06249$var$browser_prefix = "[Depict]";
@@ -1313,7 +1313,7 @@ function $a13f25507f352177$export$656831b7e9c341c3() {
1313
1313
  function $a13f25507f352177$export$a6db784f019668ba() {
1314
1314
  return "x" + $a13f25507f352177$export$656831b7e9c341c3().replaceAll(".", "");
1315
1315
  }
1316
- const $62869a3ed703f236$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
1316
+ const $62869a3ed703f236$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1317
1317
  const $49880c4ce4bb7db2$var$c = (0, $3b52ccc10510b32a$export$b3bbfd758f11cfa9);
1318
1318
  const $49880c4ce4bb7db2$var$ws_instance = /*@__PURE__*/$49880c4ce4bb7db2$var$c(() => new (0, $bd0a305620de4c2a$export$1d9c6fddbff3441f)("wss://ws.v2.depict.ai/ws/create-events"))();
1319
1319
  const $49880c4ce4bb7db2$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
@@ -3495,6 +3495,9 @@ async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
3495
3495
  return result;
3496
3496
  }
3497
3497
  async function $8f0b9bb45dd059c3$var$send_sentry_4xx(response, body, stack) {
3498
+ if (process.env.TENANT === "shopify-config" && response.status === 403)
3499
+ // Don't send requests in the shopify admin that say we need to re-authorize to sentry
3500
+ return;
3498
3501
  const msg = "Validation error: got 4XX from API";
3499
3502
  const text = await response.clone().text();
3500
3503
  $7f95f77417d06249$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
package/ES10/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { JSX, Accessor } from "solid-js";
2
- export const version = "2.1.6";
2
+ export const version = "2.2.0";
3
3
  export const is_debug: boolean;
4
4
  /**
5
5
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
package/ES10/index.js CHANGED
@@ -16,7 +16,7 @@ function $parcel$export(e, n, v, s) {
16
16
  function $parcel$interopDefault(a) {
17
17
  return a && a.__esModule ? a.default : a;
18
18
  }
19
- const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.1.6";
19
+ const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.2.0";
20
20
  const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
21
21
  const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
22
22
  let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
@@ -1053,7 +1053,7 @@ function $6cb4d83127e468ea$export$656831b7e9c341c3() {
1053
1053
  function $6cb4d83127e468ea$export$a6db784f019668ba() {
1054
1054
  return "x" + $6cb4d83127e468ea$export$656831b7e9c341c3().replaceAll(".", "");
1055
1055
  }
1056
- const $9e4bee2e3b4b5753$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
1056
+ const $9e4bee2e3b4b5753$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1057
1057
  const $814c3bf8e175fa59$var$c = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9);
1058
1058
  const $814c3bf8e175fa59$var$ws_instance = /*@__PURE__*/$814c3bf8e175fa59$var$c(() => new (0, $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f)("wss://ws.v2.depict.ai/ws/create-events"))();
1059
1059
  const $814c3bf8e175fa59$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
@@ -3235,6 +3235,9 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
3235
3235
  return result;
3236
3236
  }
3237
3237
  async function $c95f8181bad32e8d$var$send_sentry_4xx(response, body, stack) {
3238
+ if (process.env.TENANT === "shopify-config" && response.status === 403)
3239
+ // Don't send requests in the shopify admin that say we need to re-authorize to sentry
3240
+ return;
3238
3241
  const msg = "Validation error: got 4XX from API";
3239
3242
  const text = await response.clone().text();
3240
3243
  $241f2f02cc612a49$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
package/latest/index.cjs CHANGED
@@ -273,7 +273,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
273
273
  $parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
274
274
  $parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
275
275
  $parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
276
- const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.1.6";
276
+ const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.2.0";
277
277
  const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
278
278
  const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
279
279
  let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
@@ -1162,7 +1162,7 @@ function $650b64c1b384c895$export$656831b7e9c341c3() {
1162
1162
  function $650b64c1b384c895$export$a6db784f019668ba() {
1163
1163
  return "x" + $650b64c1b384c895$export$656831b7e9c341c3().replaceAll(".", "");
1164
1164
  }
1165
- const $4c6861fbcd3a0611$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
1165
+ const $4c6861fbcd3a0611$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1166
1166
  const $0c84f8e99aac5765$var$c = (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9);
1167
1167
  const $0c84f8e99aac5765$var$ws_instance = /*@__PURE__*/$0c84f8e99aac5765$var$c(() => new (0, $d10801050840d92b$export$1d9c6fddbff3441f)("wss://ws.v2.depict.ai/ws/create-events"))();
1168
1168
  const $0c84f8e99aac5765$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
@@ -3165,6 +3165,9 @@ async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retri
3165
3165
  return result;
3166
3166
  }
3167
3167
  async function $d2fc3fb450961938$var$send_sentry_4xx(response, body, stack) {
3168
+ if (process.env.TENANT === "shopify-config" && response.status === 403)
3169
+ // Don't send requests in the shopify admin that say we need to re-authorize to sentry
3170
+ return;
3168
3171
  const msg = `Validation error: got 4XX from API`;
3169
3172
  const text = await response.clone().text();
3170
3173
  $e6c6e7929ea385ae$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
package/latest/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { JSX, Accessor } from "solid-js";
2
- export const version = "2.1.6";
2
+ export const version = "2.2.0";
3
3
  export const is_debug: boolean;
4
4
  /**
5
5
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
package/latest/index.js CHANGED
@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {
13
13
  function $parcel$interopDefault(a) {
14
14
  return a && a.__esModule ? a.default : a;
15
15
  }
16
- const $0766c85d387a9765$export$83d89fbfd8236492 = "2.1.6";
16
+ const $0766c85d387a9765$export$83d89fbfd8236492 = "2.2.0";
17
17
  const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
18
18
  const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
19
19
  let $649f456f663da9fc$var$browser_prefix = "[Depict]";
@@ -902,7 +902,7 @@ function $460df8550f9d084d$export$656831b7e9c341c3() {
902
902
  function $460df8550f9d084d$export$a6db784f019668ba() {
903
903
  return "x" + $460df8550f9d084d$export$656831b7e9c341c3().replaceAll(".", "");
904
904
  }
905
- const $6c2b49f3f564b0d1$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
905
+ const $6c2b49f3f564b0d1$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
906
906
  const $cafa1ff1049985c2$var$c = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9);
907
907
  const $cafa1ff1049985c2$var$ws_instance = /*@__PURE__*/$cafa1ff1049985c2$var$c(() => new (0, $4ce764ddfee055ef$export$1d9c6fddbff3441f)("wss://ws.v2.depict.ai/ws/create-events"))();
908
908
  const $cafa1ff1049985c2$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
@@ -2905,6 +2905,9 @@ async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retri
2905
2905
  return result;
2906
2906
  }
2907
2907
  async function $2d1ffbfaa1c2d9e3$var$send_sentry_4xx(response, body, stack) {
2908
+ if (process.env.TENANT === "shopify-config" && response.status === 403)
2909
+ // Don't send requests in the shopify admin that say we need to re-authorize to sentry
2910
+ return;
2908
2911
  const msg = `Validation error: got 4XX from API`;
2909
2912
  const text = await response.clone().text();
2910
2913
  $649f456f663da9fc$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/utilishared",
3
- "version": "2.1.6",
3
+ "version": "2.2.0",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "types": "ES10/index.d.ts",
@@ -139,7 +139,7 @@
139
139
  ],
140
140
  "devDependencies": {
141
141
  "@babel/core": "latest",
142
- "@depict-ai/types": "^5.1.4",
142
+ "@depict-ai/types": "^5.2.0",
143
143
  "@parcel/resolver-default": "^2.10.3",
144
144
  "@sentry/cli": "^2.21.2",
145
145
  "@sentry/types": "^7.75.1",
@@ -276,7 +276,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
276
276
  $parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
277
277
  $parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
278
278
  $parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
279
- const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.1.6";
279
+ const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.2.0";
280
280
  const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
281
281
  const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
282
282
  let $7f95f77417d06249$var$browser_prefix = "[Depict]";
@@ -1313,7 +1313,7 @@ function $a13f25507f352177$export$656831b7e9c341c3() {
1313
1313
  function $a13f25507f352177$export$a6db784f019668ba() {
1314
1314
  return "x" + $a13f25507f352177$export$656831b7e9c341c3().replaceAll(".", "");
1315
1315
  }
1316
- const $62869a3ed703f236$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
1316
+ const $62869a3ed703f236$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1317
1317
  const $49880c4ce4bb7db2$var$c = (0, $3b52ccc10510b32a$export$b3bbfd758f11cfa9);
1318
1318
  const $49880c4ce4bb7db2$var$ws_instance = /*@__PURE__*/$49880c4ce4bb7db2$var$c(() => new (0, $bd0a305620de4c2a$export$1d9c6fddbff3441f)("wss://ws.v2.depict.ai/ws/create-events"))();
1319
1319
  const $49880c4ce4bb7db2$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
@@ -3495,6 +3495,9 @@ async function $8f0b9bb45dd059c3$export$bcd70d5ed1cf6313(url, options) {
3495
3495
  return result;
3496
3496
  }
3497
3497
  async function $8f0b9bb45dd059c3$var$send_sentry_4xx(response, body, stack) {
3498
+ if (process.env.TENANT === "shopify-config" && response.status === 403)
3499
+ // Don't send requests in the shopify admin that say we need to re-authorize to sentry
3500
+ return;
3498
3501
  const msg = "Validation error: got 4XX from API";
3499
3502
  const text = await response.clone().text();
3500
3503
  $7f95f77417d06249$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
@@ -1,5 +1,5 @@
1
1
  import { JSX, Accessor } from "solid-js";
2
- export const version = "2.1.6";
2
+ export const version = "2.2.0";
3
3
  export const is_debug: boolean;
4
4
  /**
5
5
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
@@ -16,7 +16,7 @@ function $parcel$export(e, n, v, s) {
16
16
  function $parcel$interopDefault(a) {
17
17
  return a && a.__esModule ? a.default : a;
18
18
  }
19
- const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.1.6";
19
+ const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.2.0";
20
20
  const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
21
21
  const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
22
22
  let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
@@ -1053,7 +1053,7 @@ function $6cb4d83127e468ea$export$656831b7e9c341c3() {
1053
1053
  function $6cb4d83127e468ea$export$a6db784f019668ba() {
1054
1054
  return "x" + $6cb4d83127e468ea$export$656831b7e9c341c3().replaceAll(".", "");
1055
1055
  }
1056
- const $9e4bee2e3b4b5753$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
1056
+ const $9e4bee2e3b4b5753$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1057
1057
  const $814c3bf8e175fa59$var$c = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9);
1058
1058
  const $814c3bf8e175fa59$var$ws_instance = /*@__PURE__*/$814c3bf8e175fa59$var$c(() => new (0, $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f)("wss://ws.v2.depict.ai/ws/create-events"))();
1059
1059
  const $814c3bf8e175fa59$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
@@ -3235,6 +3235,9 @@ async function $c95f8181bad32e8d$export$bcd70d5ed1cf6313(url, options) {
3235
3235
  return result;
3236
3236
  }
3237
3237
  async function $c95f8181bad32e8d$var$send_sentry_4xx(response, body, stack) {
3238
+ if (process.env.TENANT === "shopify-config" && response.status === 403)
3239
+ // Don't send requests in the shopify admin that say we need to re-authorize to sentry
3240
+ return;
3238
3241
  const msg = "Validation error: got 4XX from API";
3239
3242
  const text = await response.clone().text();
3240
3243
  $241f2f02cc612a49$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
@@ -273,7 +273,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
273
273
  $parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
274
274
  $parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
275
275
  $parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
276
- const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.1.6";
276
+ const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.2.0";
277
277
  const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
278
278
  const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
279
279
  let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
@@ -1162,7 +1162,7 @@ function $650b64c1b384c895$export$656831b7e9c341c3() {
1162
1162
  function $650b64c1b384c895$export$a6db784f019668ba() {
1163
1163
  return "x" + $650b64c1b384c895$export$656831b7e9c341c3().replaceAll(".", "");
1164
1164
  }
1165
- const $4c6861fbcd3a0611$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
1165
+ const $4c6861fbcd3a0611$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1166
1166
  const $0c84f8e99aac5765$var$c = (0, $268cbd9e4ade92db$export$b3bbfd758f11cfa9);
1167
1167
  const $0c84f8e99aac5765$var$ws_instance = /*@__PURE__*/$0c84f8e99aac5765$var$c(() => new (0, $d10801050840d92b$export$1d9c6fddbff3441f)("wss://ws.v2.depict.ai/ws/create-events"))();
1168
1168
  const $0c84f8e99aac5765$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
@@ -3165,6 +3165,9 @@ async function $d2fc3fb450961938$export$bcd70d5ed1cf6313(url, options, max_retri
3165
3165
  return result;
3166
3166
  }
3167
3167
  async function $d2fc3fb450961938$var$send_sentry_4xx(response, body, stack) {
3168
+ if (process.env.TENANT === "shopify-config" && response.status === 403)
3169
+ // Don't send requests in the shopify admin that say we need to re-authorize to sentry
3170
+ return;
3168
3171
  const msg = `Validation error: got 4XX from API`;
3169
3172
  const text = await response.clone().text();
3170
3173
  $e6c6e7929ea385ae$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);
@@ -1,5 +1,5 @@
1
1
  import { JSX, Accessor } from "solid-js";
2
- export const version = "2.1.6";
2
+ export const version = "2.2.0";
3
3
  export const is_debug: boolean;
4
4
  /**
5
5
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {
13
13
  function $parcel$interopDefault(a) {
14
14
  return a && a.__esModule ? a.default : a;
15
15
  }
16
- const $0766c85d387a9765$export$83d89fbfd8236492 = "2.1.6";
16
+ const $0766c85d387a9765$export$83d89fbfd8236492 = "2.2.0";
17
17
  const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
18
18
  const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
19
19
  let $649f456f663da9fc$var$browser_prefix = "[Depict]";
@@ -902,7 +902,7 @@ function $460df8550f9d084d$export$656831b7e9c341c3() {
902
902
  function $460df8550f9d084d$export$a6db784f019668ba() {
903
903
  return "x" + $460df8550f9d084d$export$656831b7e9c341c3().replaceAll(".", "");
904
904
  }
905
- const $6c2b49f3f564b0d1$export$362abebb4b313340 = process.env.BASE_URL || "https://api.depict.ai";
905
+ const $6c2b49f3f564b0d1$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
906
906
  const $cafa1ff1049985c2$var$c = (0, $b04e44fad5ea42c7$export$b3bbfd758f11cfa9);
907
907
  const $cafa1ff1049985c2$var$ws_instance = /*@__PURE__*/$cafa1ff1049985c2$var$c(() => new (0, $4ce764ddfee055ef$export$1d9c6fddbff3441f)("wss://ws.v2.depict.ai/ws/create-events"))();
908
908
  const $cafa1ff1049985c2$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
@@ -2905,6 +2905,9 @@ async function $2d1ffbfaa1c2d9e3$export$bcd70d5ed1cf6313(url, options, max_retri
2905
2905
  return result;
2906
2906
  }
2907
2907
  async function $2d1ffbfaa1c2d9e3$var$send_sentry_4xx(response, body, stack) {
2908
+ if (process.env.TENANT === "shopify-config" && response.status === 403)
2909
+ // Don't send requests in the shopify admin that say we need to re-authorize to sentry
2910
+ return;
2908
2911
  const msg = `Validation error: got 4XX from API`;
2909
2912
  const text = await response.clone().text();
2910
2913
  $649f456f663da9fc$export$de56f1198d121036(msg, "body", body, "response", response, "text", text, "stack", stack);