@betterstore/sdk 0.3.21 → 0.3.22

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.22
4
+
5
+ ### Patch Changes
6
+
7
+ - formatting issue
8
+
3
9
  ## 0.3.21
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -229,7 +229,7 @@ declare class Products {
229
229
  retrieve(productId: string): Promise<Product>;
230
230
  }
231
231
 
232
- declare function betterStore(config: {
232
+ declare function createBetterStore(config: {
233
233
  apiKey: string;
234
234
  proxy?: string;
235
235
  }): {
@@ -244,4 +244,4 @@ declare function createStoreHelpers(config?: {
244
244
  proxy?: string;
245
245
  }): Helpers;
246
246
 
247
- export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type VariantOption, createStoreClient, createStoreHelpers, betterStore as default };
247
+ export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
package/dist/index.d.ts CHANGED
@@ -229,7 +229,7 @@ declare class Products {
229
229
  retrieve(productId: string): Promise<Product>;
230
230
  }
231
231
 
232
- declare function betterStore(config: {
232
+ declare function createBetterStore(config: {
233
233
  apiKey: string;
234
234
  proxy?: string;
235
235
  }): {
@@ -244,4 +244,4 @@ declare function createStoreHelpers(config?: {
244
244
  proxy?: string;
245
245
  }): Helpers;
246
246
 
247
- export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type VariantOption, createStoreClient, createStoreHelpers, betterStore as default };
247
+ export { type Address, type CheckoutCreateParams, type CheckoutSession, type CheckoutUpdateParams, type Currency, type Customer$1 as Customer, type CustomerCreateParams, type CustomerUpdateParams, type LineItem, type Product, type ProductOption, ProductStatus, type ProductVariant, type VariantOption, createStoreClient, createStoreHelpers, createBetterStore as default };
package/dist/index.js CHANGED
@@ -54,7 +54,7 @@ __export(index_exports, {
54
54
  ShippingRate: () => import_shippo.Rate,
55
55
  createStoreClient: () => createStoreClient,
56
56
  createStoreHelpers: () => createStoreHelpers,
57
- default: () => betterStore
57
+ default: () => createBetterStore
58
58
  });
59
59
  module.exports = __toCommonJS(index_exports);
60
60
 
@@ -378,7 +378,7 @@ var ProductStatus = /* @__PURE__ */ ((ProductStatus2) => {
378
378
  })(ProductStatus || {});
379
379
 
380
380
  // src/index.ts
381
- function betterStore(config) {
381
+ function createBetterStore(config) {
382
382
  if (!config.apiKey) {
383
383
  throw new Error("API key is required.");
384
384
  }
package/dist/index.mjs CHANGED
@@ -339,7 +339,7 @@ var ProductStatus = /* @__PURE__ */ ((ProductStatus2) => {
339
339
  })(ProductStatus || {});
340
340
 
341
341
  // src/index.ts
342
- function betterStore(config) {
342
+ function createBetterStore(config) {
343
343
  if (!config.apiKey) {
344
344
  throw new Error("API key is required.");
345
345
  }
@@ -360,5 +360,5 @@ export {
360
360
  Rate as ShippingRate,
361
361
  createStoreClient,
362
362
  createStoreHelpers,
363
- betterStore as default
363
+ createBetterStore as default
364
364
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {