@plasmicpkgs/commerce 0.0.207 → 0.0.209
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/commerce.esm.js
CHANGED
|
@@ -533,7 +533,7 @@ var CommerceError = /*#__PURE__*/function (_Error) {
|
|
|
533
533
|
return _this;
|
|
534
534
|
}
|
|
535
535
|
return CommerceError;
|
|
536
|
-
}(
|
|
536
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
537
537
|
// Used for errors that come from a bad implementation of the hooks
|
|
538
538
|
var ValidationError = /*#__PURE__*/function (_CommerceError) {
|
|
539
539
|
_inheritsLoose(ValidationError, _CommerceError);
|
|
@@ -559,7 +559,7 @@ var FetcherError = /*#__PURE__*/function (_CommerceError2) {
|
|
|
559
559
|
var useData = function useData(options, input, fetcherFn, swrOptions, provider) {
|
|
560
560
|
var hookInput = Array.isArray(input) ? input : Object.entries(input);
|
|
561
561
|
var fetcher = /*#__PURE__*/function () {
|
|
562
|
-
var _ref = _asyncToGenerator(
|
|
562
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, query, method) {
|
|
563
563
|
var _len,
|
|
564
564
|
args,
|
|
565
565
|
_key,
|
|
@@ -894,7 +894,7 @@ function AddToCartButton(props) {
|
|
|
894
894
|
var form = useFormContext();
|
|
895
895
|
var addItem = useAddItem();
|
|
896
896
|
var addToCart = /*#__PURE__*/function () {
|
|
897
|
-
var _ref = _asyncToGenerator(
|
|
897
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
898
898
|
var _form$getValues$Produ;
|
|
899
899
|
var quantity, _form$getValues$Produ2, variantId;
|
|
900
900
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -947,7 +947,7 @@ function registerAddToCartButton(loader, customAddToCartButtonMeta) {
|
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
var fetcher$3 = /*#__PURE__*/function () {
|
|
950
|
-
var _ref2 = /*#__PURE__*/_asyncToGenerator(
|
|
950
|
+
var _ref2 = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
951
951
|
var options, cartId, fetch;
|
|
952
952
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
953
953
|
while (1) switch (_context.prev = _context.next) {
|