@commercengine/storefront-sdk 0.14.1 → 0.14.2
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/MIGRATION.md +3 -0
- package/README.md +41 -6
- package/dist/index.d.mts +8 -3
- package/dist/index.iife.js +8 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -506,7 +506,11 @@ function attachSessionAuth(client, sessionManager) {
|
|
|
506
506
|
}
|
|
507
507
|
/**
|
|
508
508
|
* Storefront API client that extends the generic BaseAPIClient
|
|
509
|
-
* Adds Commerce Engine specific authentication and token management
|
|
509
|
+
* Adds Commerce Engine specific authentication and token management.
|
|
510
|
+
*
|
|
511
|
+
* Session-only domain clients can extend this directly. Shared public/session
|
|
512
|
+
* read clients may instead extend a shared base class and call
|
|
513
|
+
* `attachSessionAuth()` explicitly in their concrete session wrapper.
|
|
510
514
|
*/
|
|
511
515
|
var SessionStorefrontAPIClient = class extends StorefrontAPIClientBase {
|
|
512
516
|
config;
|
|
@@ -1207,8 +1211,9 @@ var BaseCatalogClient = class extends StorefrontAPIClientBase {
|
|
|
1207
1211
|
/**
|
|
1208
1212
|
* Storefront API client that always authenticates with `X-Api-Key`.
|
|
1209
1213
|
*
|
|
1210
|
-
* This
|
|
1211
|
-
*
|
|
1214
|
+
* This class is kept as the advanced public transport client. Concrete public
|
|
1215
|
+
* domain clients can either extend this directly or extend a shared base class
|
|
1216
|
+
* and attach the same auth behavior via `attachPublicAuth()`.
|
|
1212
1217
|
*/
|
|
1213
1218
|
var PublicStorefrontAPIClient = class extends StorefrontAPIClientBase {
|
|
1214
1219
|
constructor(config) {
|