@depict-ai/utilishared 2.1.6 → 2.1.7

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.1.7";
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]";
@@ -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.1.7";
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.1.7";
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]";
@@ -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.1.7";
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]";
@@ -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.1.7";
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.1.7";
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]";
@@ -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.1.7",
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.1.5",
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.1.7";
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]";
@@ -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.1.7";
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.1.7";
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]";
@@ -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.1.7";
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]";
@@ -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.1.7";
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.1.7";
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]";
@@ -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);