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.
package/dist/api.mjs CHANGED
@@ -145,7 +145,7 @@ function swell(initStore = undefined, initKey, initOptions = {}) {
145
145
  const api = {};
146
146
 
147
147
  Object.assign(api, {
148
- version: '4.2.4',
148
+ version: '4.2.6',
149
149
  options,
150
150
  request,
151
151
 
@@ -228,6 +228,10 @@ function swell(initStore = undefined, initKey, initOptions = {}) {
228
228
  functions: methods(api),
229
229
 
230
230
  utils,
231
+
232
+ getCookie,
233
+
234
+ setCookie,
231
235
  });
232
236
 
233
237
  async function request(
package/dist/settings.mjs CHANGED
@@ -181,7 +181,11 @@ function methods(api, opt) {
181
181
  value: session,
182
182
  });
183
183
  } catch (err) {
184
- console.error(`Swell: unable to load settings (${err})`);
184
+ if (err instanceof Error) {
185
+ err.message = `Swell: unable to load settings (${err.message})`;
186
+ }
187
+
188
+ console.error(err);
185
189
  }
186
190
  },
187
191
  };
package/dist/swell.cjs CHANGED
@@ -6155,7 +6155,11 @@ function methods$4(api, opt) {
6155
6155
  value: session,
6156
6156
  });
6157
6157
  } catch (err) {
6158
- console.error(`Swell: unable to load settings (${err})`);
6158
+ if (err instanceof Error) {
6159
+ err.message = `Swell: unable to load settings (${err.message})`;
6160
+ }
6161
+
6162
+ console.error(err);
6159
6163
  }
6160
6164
  },
6161
6165
  };
@@ -10176,7 +10180,7 @@ function swell(initStore = undefined, initKey, initOptions = {}) {
10176
10180
  const api = {};
10177
10181
 
10178
10182
  Object.assign(api, {
10179
- version: '4.2.4',
10183
+ version: '4.2.6',
10180
10184
  options,
10181
10185
  request,
10182
10186
 
@@ -10259,6 +10263,10 @@ function swell(initStore = undefined, initKey, initOptions = {}) {
10259
10263
  functions: methods(api),
10260
10264
 
10261
10265
  utils,
10266
+
10267
+ getCookie,
10268
+
10269
+ setCookie,
10262
10270
  });
10263
10271
 
10264
10272
  async function request(