@thefittingroom/shop-ui 4.3.6 → 4.3.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/dist/index.js CHANGED
@@ -20657,7 +20657,10 @@ class FittingRoomAPI {
20657
20657
  }
20658
20658
  async GetCachedOrRequestUserColorwaySizeAssetFrames(firestoreUserController, colorwaySizeAssetSKU, skipCache) {
20659
20659
  console.debug("GetCachedOrRequestUserColorwaySizeAssetFrames", colorwaySizeAssetSKU, "skipCache:", skipCache);
20660
- if (!skipCache) {
20660
+ if (skipCache) {
20661
+ console.debug("clearing cache for fresh VTO request", colorwaySizeAssetSKU);
20662
+ this.vtoFramesPromiseCache.delete(colorwaySizeAssetSKU);
20663
+ } else {
20661
20664
  const cached = this.vtoFramesPromiseCache.get(colorwaySizeAssetSKU);
20662
20665
  if (cached) {
20663
20666
  console.debug("returning cached frames", colorwaySizeAssetSKU);
@@ -20661,7 +20661,10 @@ This typically indicates that your device does not have a healthy Internet conne
20661
20661
  }
20662
20662
  async GetCachedOrRequestUserColorwaySizeAssetFrames(firestoreUserController, colorwaySizeAssetSKU, skipCache) {
20663
20663
  console.debug("GetCachedOrRequestUserColorwaySizeAssetFrames", colorwaySizeAssetSKU, "skipCache:", skipCache);
20664
- if (!skipCache) {
20664
+ if (skipCache) {
20665
+ console.debug("clearing cache for fresh VTO request", colorwaySizeAssetSKU);
20666
+ this.vtoFramesPromiseCache.delete(colorwaySizeAssetSKU);
20667
+ } else {
20665
20668
  const cached = this.vtoFramesPromiseCache.get(colorwaySizeAssetSKU);
20666
20669
  if (cached) {
20667
20670
  console.debug("returning cached frames", colorwaySizeAssetSKU);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thefittingroom/shop-ui",
3
- "version": "4.3.6",
3
+ "version": "4.3.7",
4
4
  "description": "the fitting room UI library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",