@commercengine/storefront-sdk 0.4.3 → 0.4.4

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 CHANGED
@@ -2272,7 +2272,7 @@ var StorefrontSDK = class {
2272
2272
  /**
2273
2273
  * Client for store config-related endpoints
2274
2274
  */
2275
- storeConfig;
2275
+ store;
2276
2276
  /**
2277
2277
  * Create a new StorefrontSDK instance
2278
2278
  *
@@ -2301,7 +2301,7 @@ var StorefrontSDK = class {
2301
2301
  this.helpers = new HelpersClient(config);
2302
2302
  this.shipping = new ShippingClient(config);
2303
2303
  this.order = new OrderClient(config);
2304
- this.storeConfig = new StoreConfigClient(config);
2304
+ this.store = new StoreConfigClient(config);
2305
2305
  }
2306
2306
  /**
2307
2307
  * Set authentication tokens for all clients
@@ -2321,7 +2321,7 @@ var StorefrontSDK = class {
2321
2321
  await this.helpers.setTokens(accessToken, refreshToken);
2322
2322
  await this.shipping.setTokens(accessToken, refreshToken);
2323
2323
  await this.order.setTokens(accessToken, refreshToken);
2324
- await this.storeConfig.setTokens(accessToken, refreshToken);
2324
+ await this.store.setTokens(accessToken, refreshToken);
2325
2325
  }
2326
2326
  /**
2327
2327
  * Clear all authentication tokens from all clients
@@ -2338,7 +2338,7 @@ var StorefrontSDK = class {
2338
2338
  await this.helpers.clearTokens();
2339
2339
  await this.shipping.clearTokens();
2340
2340
  await this.order.clearTokens();
2341
- await this.storeConfig.clearTokens();
2341
+ await this.store.clearTokens();
2342
2342
  }
2343
2343
  /**
2344
2344
  * Set the API key for all clients
@@ -2353,7 +2353,7 @@ var StorefrontSDK = class {
2353
2353
  this.helpers.setApiKey(apiKey);
2354
2354
  this.shipping.setApiKey(apiKey);
2355
2355
  this.order.setApiKey(apiKey);
2356
- this.storeConfig.setApiKey(apiKey);
2356
+ this.store.setApiKey(apiKey);
2357
2357
  }
2358
2358
  /**
2359
2359
  * Clear the API key from all clients
@@ -2366,7 +2366,7 @@ var StorefrontSDK = class {
2366
2366
  this.helpers.clearApiKey();
2367
2367
  this.shipping.clearApiKey();
2368
2368
  this.order.clearApiKey();
2369
- this.storeConfig.clearApiKey();
2369
+ this.store.clearApiKey();
2370
2370
  }
2371
2371
  /**
2372
2372
  * Get the current access token if using token storage
@@ -2448,7 +2448,7 @@ var StorefrontSDK = class {
2448
2448
  this.helpers["config"] = newConfig;
2449
2449
  this.shipping["config"] = newConfig;
2450
2450
  this.order["config"] = newConfig;
2451
- this.storeConfig["config"] = newConfig;
2451
+ this.store["config"] = newConfig;
2452
2452
  }
2453
2453
  /**
2454
2454
  * Get current default headers