@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/index.cjs +25 -4
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +25 -4
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +25 -4
- package/dist/index.mjs.map +2 -2
- package/dist/src/api.d.ts +7 -0
- package/dist/src/resources/swell_types.d.ts +1 -0
- package/package.json +1 -1
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.
|