@bigbinary/neeto-site-blocks 1.18.4 → 1.18.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.cjs.js CHANGED
@@ -13484,17 +13484,40 @@ var CtaClassic = function CtaClassic(_ref) {
13484
13484
  });
13485
13485
  };
13486
13486
 
13487
- //Ignoring PascalCase conventions since this is not react component and ignoring axios import outside /javascript/apis since this is a npm package
13488
- var subscribeForCtaWithInput = function subscribeForCtaWithInput(_ref) {
13489
- var apiEndpoint = _ref.apiEndpoint,
13490
- apiHeaders = _ref.apiHeaders,
13491
- email = _ref.email;
13492
- return axios__default["default"].post(apiEndpoint, {
13493
- email: email
13494
- }, {
13495
- headers: apiHeaders
13496
- });
13497
- };
13487
+ var subscribeForCtaWithInput = /*#__PURE__*/function () {
13488
+ var _ref2 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(_ref) {
13489
+ var apiEndpoint, apiHeaders, email, headers;
13490
+ return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
13491
+ while (1) switch (_context.prev = _context.next) {
13492
+ case 0:
13493
+ apiEndpoint = _ref.apiEndpoint, apiHeaders = _ref.apiHeaders, email = _ref.email;
13494
+ _context.prev = 1;
13495
+ headers = JSON.parse(apiHeaders);
13496
+ _context.next = 5;
13497
+ return axios__default["default"].post(apiEndpoint, {
13498
+ email: email
13499
+ }, {
13500
+ headers: headers
13501
+ });
13502
+ case 5:
13503
+ return _context.abrupt("return", _context.sent);
13504
+ case 8:
13505
+ _context.prev = 8;
13506
+ _context.t0 = _context["catch"](1);
13507
+ // eslint-disable-next-line no-console
13508
+ console.log(_context.t0);
13509
+ case 11:
13510
+ return _context.abrupt("return", {});
13511
+ case 12:
13512
+ case "end":
13513
+ return _context.stop();
13514
+ }
13515
+ }, _callee, null, [[1, 8]]);
13516
+ }));
13517
+ return function subscribeForCtaWithInput(_x) {
13518
+ return _ref2.apply(this, arguments);
13519
+ };
13520
+ }();
13498
13521
  var ctaApi = {
13499
13522
  subscribeForCtaWithInput: subscribeForCtaWithInput
13500
13523
  };