@commercengine/storefront-sdk 0.4.3 → 0.4.5

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.d.cts CHANGED
@@ -10388,7 +10388,7 @@ declare class StorefrontSDK {
10388
10388
  /**
10389
10389
  * Client for store config-related endpoints
10390
10390
  */
10391
- readonly storeConfig: StoreConfigClient;
10391
+ readonly store: StoreConfigClient;
10392
10392
  /**
10393
10393
  * Create a new StorefrontSDK instance
10394
10394
  *
package/dist/index.d.ts CHANGED
@@ -10388,7 +10388,7 @@ declare class StorefrontSDK {
10388
10388
  /**
10389
10389
  * Client for store config-related endpoints
10390
10390
  */
10391
- readonly storeConfig: StoreConfigClient;
10391
+ readonly store: StoreConfigClient;
10392
10392
  /**
10393
10393
  * Create a new StorefrontSDK instance
10394
10394
  *
@@ -39,7 +39,7 @@ var CE_SDK = (() => {
39
39
  default: () => index_default
40
40
  });
41
41
 
42
- // ../../node_modules/.pnpm/openapi-fetch@0.13.8/node_modules/openapi-fetch/dist/index.js
42
+ // ../../node_modules/.pnpm/openapi-fetch@0.14.0/node_modules/openapi-fetch/dist/index.mjs
43
43
  var PATH_PARAM_RE = /\{[^{}]+\}/g;
44
44
  var supportsRequestInitExt = () => {
45
45
  return typeof process === "object" && Number.parseInt(process?.versions?.node?.substring(0, 2)) >= 18 && process.versions.undici;
@@ -501,12 +501,12 @@ var CE_SDK = (() => {
501
501
  return url;
502
502
  }
503
503
 
504
- // ../../node_modules/.pnpm/jose@6.0.11/node_modules/jose/dist/webapi/lib/buffer_utils.js
504
+ // ../../node_modules/.pnpm/jose@6.0.13/node_modules/jose/dist/webapi/lib/buffer_utils.js
505
505
  var encoder = new TextEncoder();
506
506
  var decoder = new TextDecoder();
507
507
  var MAX_INT32 = 2 ** 32;
508
508
 
509
- // ../../node_modules/.pnpm/jose@6.0.11/node_modules/jose/dist/webapi/lib/base64.js
509
+ // ../../node_modules/.pnpm/jose@6.0.13/node_modules/jose/dist/webapi/lib/base64.js
510
510
  function decodeBase64(encoded) {
511
511
  if (Uint8Array.fromBase64) {
512
512
  return Uint8Array.fromBase64(encoded);
@@ -519,7 +519,7 @@ var CE_SDK = (() => {
519
519
  return bytes;
520
520
  }
521
521
 
522
- // ../../node_modules/.pnpm/jose@6.0.11/node_modules/jose/dist/webapi/util/base64url.js
522
+ // ../../node_modules/.pnpm/jose@6.0.13/node_modules/jose/dist/webapi/util/base64url.js
523
523
  function decode(input) {
524
524
  if (Uint8Array.fromBase64) {
525
525
  return Uint8Array.fromBase64(typeof input === "string" ? input : decoder.decode(input), {
@@ -538,7 +538,7 @@ var CE_SDK = (() => {
538
538
  }
539
539
  }
540
540
 
541
- // ../../node_modules/.pnpm/jose@6.0.11/node_modules/jose/dist/webapi/util/errors.js
541
+ // ../../node_modules/.pnpm/jose@6.0.13/node_modules/jose/dist/webapi/util/errors.js
542
542
  var JOSEError = class extends Error {
543
543
  static code = "ERR_JOSE_GENERIC";
544
544
  code = "ERR_JOSE_GENERIC";
@@ -553,7 +553,7 @@ var CE_SDK = (() => {
553
553
  code = "ERR_JWT_INVALID";
554
554
  };
555
555
 
556
- // ../../node_modules/.pnpm/jose@6.0.11/node_modules/jose/dist/webapi/lib/is_object.js
556
+ // ../../node_modules/.pnpm/jose@6.0.13/node_modules/jose/dist/webapi/lib/is_object.js
557
557
  function isObjectLike(value) {
558
558
  return typeof value === "object" && value !== null;
559
559
  }
@@ -571,7 +571,7 @@ var CE_SDK = (() => {
571
571
  return Object.getPrototypeOf(input) === proto;
572
572
  };
573
573
 
574
- // ../../node_modules/.pnpm/jose@6.0.11/node_modules/jose/dist/webapi/util/decode_jwt.js
574
+ // ../../node_modules/.pnpm/jose@6.0.13/node_modules/jose/dist/webapi/util/decode_jwt.js
575
575
  function decodeJwt(jwt) {
576
576
  if (typeof jwt !== "string")
577
577
  throw new JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");
@@ -2818,7 +2818,7 @@ var CE_SDK = (() => {
2818
2818
  /**
2819
2819
  * Client for store config-related endpoints
2820
2820
  */
2821
- storeConfig;
2821
+ store;
2822
2822
  /**
2823
2823
  * Create a new StorefrontSDK instance
2824
2824
  *
@@ -2847,7 +2847,7 @@ var CE_SDK = (() => {
2847
2847
  this.helpers = new HelpersClient(config);
2848
2848
  this.shipping = new ShippingClient(config);
2849
2849
  this.order = new OrderClient(config);
2850
- this.storeConfig = new StoreConfigClient(config);
2850
+ this.store = new StoreConfigClient(config);
2851
2851
  }
2852
2852
  /**
2853
2853
  * Set authentication tokens for all clients
@@ -2867,7 +2867,7 @@ var CE_SDK = (() => {
2867
2867
  await this.helpers.setTokens(accessToken, refreshToken);
2868
2868
  await this.shipping.setTokens(accessToken, refreshToken);
2869
2869
  await this.order.setTokens(accessToken, refreshToken);
2870
- await this.storeConfig.setTokens(accessToken, refreshToken);
2870
+ await this.store.setTokens(accessToken, refreshToken);
2871
2871
  }
2872
2872
  /**
2873
2873
  * Clear all authentication tokens from all clients
@@ -2884,7 +2884,7 @@ var CE_SDK = (() => {
2884
2884
  await this.helpers.clearTokens();
2885
2885
  await this.shipping.clearTokens();
2886
2886
  await this.order.clearTokens();
2887
- await this.storeConfig.clearTokens();
2887
+ await this.store.clearTokens();
2888
2888
  }
2889
2889
  /**
2890
2890
  * Set the API key for all clients
@@ -2899,7 +2899,7 @@ var CE_SDK = (() => {
2899
2899
  this.helpers.setApiKey(apiKey);
2900
2900
  this.shipping.setApiKey(apiKey);
2901
2901
  this.order.setApiKey(apiKey);
2902
- this.storeConfig.setApiKey(apiKey);
2902
+ this.store.setApiKey(apiKey);
2903
2903
  }
2904
2904
  /**
2905
2905
  * Clear the API key from all clients
@@ -2912,7 +2912,7 @@ var CE_SDK = (() => {
2912
2912
  this.helpers.clearApiKey();
2913
2913
  this.shipping.clearApiKey();
2914
2914
  this.order.clearApiKey();
2915
- this.storeConfig.clearApiKey();
2915
+ this.store.clearApiKey();
2916
2916
  }
2917
2917
  /**
2918
2918
  * Get the current access token if using token storage
@@ -2994,7 +2994,7 @@ var CE_SDK = (() => {
2994
2994
  this.helpers["config"] = newConfig;
2995
2995
  this.shipping["config"] = newConfig;
2996
2996
  this.order["config"] = newConfig;
2997
- this.storeConfig["config"] = newConfig;
2997
+ this.store["config"] = newConfig;
2998
2998
  }
2999
2999
  /**
3000
3000
  * Get current default headers