@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.js CHANGED
@@ -13465,17 +13465,40 @@ var CtaClassic = function CtaClassic(_ref) {
13465
13465
  });
13466
13466
  };
13467
13467
 
13468
- //Ignoring PascalCase conventions since this is not react component and ignoring axios import outside /javascript/apis since this is a npm package
13469
- var subscribeForCtaWithInput = function subscribeForCtaWithInput(_ref) {
13470
- var apiEndpoint = _ref.apiEndpoint,
13471
- apiHeaders = _ref.apiHeaders,
13472
- email = _ref.email;
13473
- return axios.post(apiEndpoint, {
13474
- email: email
13475
- }, {
13476
- headers: apiHeaders
13477
- });
13478
- };
13468
+ var subscribeForCtaWithInput = /*#__PURE__*/function () {
13469
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref) {
13470
+ var apiEndpoint, apiHeaders, email, headers;
13471
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
13472
+ while (1) switch (_context.prev = _context.next) {
13473
+ case 0:
13474
+ apiEndpoint = _ref.apiEndpoint, apiHeaders = _ref.apiHeaders, email = _ref.email;
13475
+ _context.prev = 1;
13476
+ headers = JSON.parse(apiHeaders);
13477
+ _context.next = 5;
13478
+ return axios.post(apiEndpoint, {
13479
+ email: email
13480
+ }, {
13481
+ headers: headers
13482
+ });
13483
+ case 5:
13484
+ return _context.abrupt("return", _context.sent);
13485
+ case 8:
13486
+ _context.prev = 8;
13487
+ _context.t0 = _context["catch"](1);
13488
+ // eslint-disable-next-line no-console
13489
+ console.log(_context.t0);
13490
+ case 11:
13491
+ return _context.abrupt("return", {});
13492
+ case 12:
13493
+ case "end":
13494
+ return _context.stop();
13495
+ }
13496
+ }, _callee, null, [[1, 8]]);
13497
+ }));
13498
+ return function subscribeForCtaWithInput(_x) {
13499
+ return _ref2.apply(this, arguments);
13500
+ };
13501
+ }();
13479
13502
  var ctaApi = {
13480
13503
  subscribeForCtaWithInput: subscribeForCtaWithInput
13481
13504
  };