@betterstore/sdk 0.3.20 → 0.3.21

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.21
4
+
5
+ ### Patch Changes
6
+
7
+ - params optimalization
8
+
3
9
  ## 0.3.20
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -237,10 +237,10 @@ declare function betterStore(config: {
237
237
  products: Products;
238
238
  customer: Customer;
239
239
  };
240
- declare function createStoreClient(config: {
240
+ declare function createStoreClient(config?: {
241
241
  proxy?: string;
242
242
  }): Client;
243
- declare function createStoreHelpers(config: {
243
+ declare function createStoreHelpers(config?: {
244
244
  proxy?: string;
245
245
  }): Helpers;
246
246
 
package/dist/index.d.ts CHANGED
@@ -237,10 +237,10 @@ declare function betterStore(config: {
237
237
  products: Products;
238
238
  customer: Customer;
239
239
  };
240
- declare function createStoreClient(config: {
240
+ declare function createStoreClient(config?: {
241
241
  proxy?: string;
242
242
  }): Client;
243
- declare function createStoreHelpers(config: {
243
+ declare function createStoreHelpers(config?: {
244
244
  proxy?: string;
245
245
  }): Helpers;
246
246
 
package/dist/index.js CHANGED
@@ -389,10 +389,10 @@ function betterStore(config) {
389
389
  };
390
390
  }
391
391
  function createStoreClient(config) {
392
- return new client_default(config.proxy);
392
+ return new client_default(config == null ? void 0 : config.proxy);
393
393
  }
394
394
  function createStoreHelpers(config) {
395
- return new helpers_default(config.proxy);
395
+ return new helpers_default(config == null ? void 0 : config.proxy);
396
396
  }
397
397
  // Annotate the CommonJS export names for ESM import in node:
398
398
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -350,10 +350,10 @@ function betterStore(config) {
350
350
  };
351
351
  }
352
352
  function createStoreClient(config) {
353
- return new client_default(config.proxy);
353
+ return new client_default(config == null ? void 0 : config.proxy);
354
354
  }
355
355
  function createStoreHelpers(config) {
356
- return new helpers_default(config.proxy);
356
+ return new helpers_default(config == null ? void 0 : config.proxy);
357
357
  }
358
358
  export {
359
359
  ProductStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {