@gomusdev/web-components 1.22.0 → 1.22.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.
@@ -5693,6 +5693,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
5693
5693
  localStorage.setItem("go-auth", this.toString());
5694
5694
  }
5695
5695
  load() {
5696
+ if (!localStorage) {
5697
+ return;
5698
+ }
5696
5699
  const str = localStorage.getItem("go-auth");
5697
5700
  if (!str) {
5698
5701
  this.signOut();
@@ -31546,9 +31549,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31546
31549
  }
31547
31550
  function generateQuantityOptions(cart2, item) {
31548
31551
  const { min: min2, max: max2 } = selectOptions(cart2, item);
31549
- if (max2 < min2) {
31550
- throw new Error("(generateQuantityOptions) max must be greater than min");
31551
- }
31552
31552
  const options = [{ value: 0, label: "0" }];
31553
31553
  for (let quantity = min2; quantity <= max2; quantity++) {
31554
31554
  if (quantity == 0) continue;
@@ -5693,6 +5693,9 @@ class Auth {
5693
5693
  localStorage.setItem("go-auth", this.toString());
5694
5694
  }
5695
5695
  load() {
5696
+ if (!localStorage) {
5697
+ return;
5698
+ }
5696
5699
  const str = localStorage.getItem("go-auth");
5697
5700
  if (!str) {
5698
5701
  this.signOut();
@@ -31546,9 +31549,6 @@ function selectOptions(cart2, item) {
31546
31549
  }
31547
31550
  function generateQuantityOptions(cart2, item) {
31548
31551
  const { min: min2, max: max2 } = selectOptions(cart2, item);
31549
- if (max2 < min2) {
31550
- throw new Error("(generateQuantityOptions) max must be greater than min");
31551
- }
31552
31552
  const options = [{ value: 0, label: "0" }];
31553
31553
  for (let quantity = min2; quantity <= max2; quantity++) {
31554
31554
  if (quantity == 0) continue;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "1.22.0",
7
+ "version": "1.22.1",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",