@swell/apps-sdk 1.0.187 → 1.0.189

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/src/api.d.ts CHANGED
@@ -32,6 +32,13 @@ export declare class Swell {
32
32
  * Checks if cache bypass is requested via X-Cache-Bypass header
33
33
  */
34
34
  private shouldBypassCache;
35
+ /**
36
+ * Returns fields from the current account that may affect requests.
37
+ * Currently, only the 'group' field is returned.
38
+ * It is preferable to use the account_id from storefrontContext rather than the swell-session cookie, as the cookie contains a lot of other data
39
+ * This increases the overall cache size
40
+ */
41
+ private getAccountCacheKey;
35
42
  /**
36
43
  * Fetches a resource.
37
44
  * First attempts to fetch from cache.
@@ -21,6 +21,7 @@ export interface SwellProductOption {
21
21
  }
22
22
  export interface SwellVariant {
23
23
  id: string;
24
+ sku?: string;
24
25
  name: string;
25
26
  option_value_ids: string[];
26
27
  selected_option_values: string[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swell/apps-sdk",
3
3
  "type": "module",
4
- "version": "1.0.187",
4
+ "version": "1.0.189",
5
5
  "description": "Swell SDK for building isomorphic apps.",
6
6
  "author": "Swell",
7
7
  "license": "MIT",