swell-js 4.2.4 → 4.2.6

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.
@@ -11600,7 +11600,11 @@
11600
11600
  value: session,
11601
11601
  });
11602
11602
  } catch (err) {
11603
- console.error(`Swell: unable to load settings (${err})`);
11603
+ if (err instanceof Error) {
11604
+ err.message = `Swell: unable to load settings (${err.message})`;
11605
+ }
11606
+
11607
+ console.error(err);
11604
11608
  }
11605
11609
  },
11606
11610
  };
@@ -15621,7 +15625,7 @@
15621
15625
  const api = {};
15622
15626
 
15623
15627
  Object.assign(api, {
15624
- version: '4.2.4',
15628
+ version: '4.2.6',
15625
15629
  options,
15626
15630
  request,
15627
15631
 
@@ -15704,6 +15708,10 @@
15704
15708
  functions: methods(api),
15705
15709
 
15706
15710
  utils,
15711
+
15712
+ getCookie,
15713
+
15714
+ setCookie,
15707
15715
  });
15708
15716
 
15709
15717
  async function request(