@betterstore/react 0.3.19 → 0.3.20

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.20
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
3
9
  ## 0.3.19
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -94,10 +94,7 @@ function createJSONStorage(getStorage, options) {
94
94
  }
95
95
  return parse(str);
96
96
  },
97
- setItem: (name, newValue) => storage.setItem(
98
- name,
99
- JSON.stringify(newValue, void 0 )
100
- ),
97
+ setItem: (name, newValue) => storage.setItem(name, JSON.stringify(newValue, void 0 )),
101
98
  removeItem: (name) => storage.removeItem(name)
102
99
  };
103
100
  return persistStorage;
@@ -35057,7 +35054,7 @@ function DiscountCode({ applyDiscountCode, revalidateDiscounts, }) {
35057
35054
  setIsLoading(true);
35058
35055
  try {
35059
35056
  yield applyDiscountCode(discountCode);
35060
- yield revalidateDiscounts();
35057
+ // await revalidateDiscounts();
35061
35058
  setDiscountCode("");
35062
35059
  toast.success(t("CheckoutEmbed.Summary.discountCodeSuccess"));
35063
35060
  }
package/dist/index.mjs CHANGED
@@ -71,10 +71,7 @@ function createJSONStorage(getStorage, options) {
71
71
  }
72
72
  return parse(str);
73
73
  },
74
- setItem: (name, newValue) => storage.setItem(
75
- name,
76
- JSON.stringify(newValue, void 0 )
77
- ),
74
+ setItem: (name, newValue) => storage.setItem(name, JSON.stringify(newValue, void 0 )),
78
75
  removeItem: (name) => storage.removeItem(name)
79
76
  };
80
77
  return persistStorage;
@@ -35034,7 +35031,7 @@ function DiscountCode({ applyDiscountCode, revalidateDiscounts, }) {
35034
35031
  setIsLoading(true);
35035
35032
  try {
35036
35033
  yield applyDiscountCode(discountCode);
35037
- yield revalidateDiscounts();
35034
+ // await revalidateDiscounts();
35038
35035
  setDiscountCode("");
35039
35036
  toast.success(t("CheckoutEmbed.Summary.discountCodeSuccess"));
35040
35037
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {