@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 +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
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,
|
|
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
|
|
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,
|
|
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: () =>
|
|
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
|
|
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
|
|
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
|
-
|
|
363
|
+
createBetterStore as default
|
|
364
364
|
};
|