notifme/notifme-sdk

View on GitHub

Showing 162 of 333 total issues

Function value has 118 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    value: function () {
      var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
        var _ref, id, userId, from, replyTo, subject, html, text, headers, to, cc, bcc, attachments, generatedId, response, responseBody, _responseBody$errors, firstError, message;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
Severity: Major
Found in lib/providers/email/sendgrid.js - About 4 hrs to fix

    Function value has 114 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        value: function () {
          var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
            var _ref, id, userId, from, replyTo, subject, html, text, headers, to, cc, bcc, attachments, response, responseBody, _responseBody$errors, firstError, message;
            return _regenerator["default"].wrap(function _callee$(_context) {
              while (1) switch (_context.prev = _context.next) {
    Severity: Major
    Found in lib/providers/email/sparkpost.js - About 4 hrs to fix

      Function _callee has 113 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
              var _ref, id, userId, from, replyTo, subject, html, text, headers, to, cc, bcc, attachments, generatedId, response, responseBody, _responseBody$errors, firstError, message;
              return _regenerator["default"].wrap(function _callee$(_context) {
                while (1) switch (_context.prev = _context.next) {
                  case 0:
      Severity: Major
      Found in lib/providers/email/sendgrid.js - About 4 hrs to fix

        Function _callee$ has 110 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                return _regenerator["default"].wrap(function _callee$(_context) {
                  while (1) switch (_context.prev = _context.next) {
                    case 0:
                      if (!request.customize) {
                        _context.next = 6;
        Severity: Major
        Found in lib/providers/email/sendgrid.js - About 4 hrs to fix

          Function _callee has 109 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                  var _ref, id, userId, from, replyTo, subject, html, text, headers, to, cc, bcc, attachments, response, responseBody, _responseBody$errors, firstError, message;
                  return _regenerator["default"].wrap(function _callee$(_context) {
                    while (1) switch (_context.prev = _context.next) {
                      case 0:
          Severity: Major
          Found in lib/providers/email/sparkpost.js - About 4 hrs to fix

            Function value has 107 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                value: function () {
                  var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                    var _ref, id, userId, from, replyTo, subject, html, text, headers, to, cc, bcc, attachments, response, responseBody, message;
                    return _regenerator["default"].wrap(function _callee$(_context) {
                      while (1) switch (_context.prev = _context.next) {
            Severity: Major
            Found in lib/providers/email/mandrill.js - About 4 hrs to fix

              Function _callee$ has 106 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      return _regenerator["default"].wrap(function _callee$(_context) {
                        while (1) switch (_context.prev = _context.next) {
                          case 0:
                            if (!request.customize) {
                              _context.next = 6;
              Severity: Major
              Found in lib/providers/email/sparkpost.js - About 4 hrs to fix

                Function _callee has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                        var _ref, id, userId, from, replyTo, subject, html, text, headers, to, cc, bcc, attachments, response, responseBody, message;
                        return _regenerator["default"].wrap(function _callee$(_context) {
                          while (1) switch (_context.prev = _context.next) {
                            case 0:
                Severity: Major
                Found in lib/providers/email/mandrill.js - About 4 hrs to fix

                  Function _callee$ has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          return _regenerator["default"].wrap(function _callee$(_context) {
                            while (1) switch (_context.prev = _context.next) {
                              case 0:
                                if (!request.customize) {
                                  _context.next = 6;
                  Severity: Major
                  Found in lib/providers/email/mandrill.js - About 3 hrs to fix

                    Function value has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        value: function () {
                          var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                            var _ref, id, userId, from, replyTo, subject, html, text, headers, to, cc, bcc, attachments, form, response, responseBody;
                            return _regenerator["default"].wrap(function _callee$(_context) {
                              while (1) switch (_context.prev = _context.next) {
                    Severity: Major
                    Found in lib/providers/email/mailgun.js - About 3 hrs to fix

                      Function _callee has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                              var _ref, id, userId, from, replyTo, subject, html, text, headers, to, cc, bcc, attachments, form, response, responseBody;
                              return _regenerator["default"].wrap(function _callee$(_context) {
                                while (1) switch (_context.prev = _context.next) {
                                  case 0:
                      Severity: Major
                      Found in lib/providers/email/mailgun.js - About 3 hrs to fix

                        Function _callee$ has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                return _regenerator["default"].wrap(function _callee$(_context) {
                                  while (1) switch (_context.prev = _context.next) {
                                    case 0:
                                      if (!request.customize) {
                                        _context.next = 6;
                        Severity: Major
                        Found in lib/providers/email/mailgun.js - About 3 hrs to fix

                          Function value has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              value: function () {
                                var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                                  var _ref2, from, to, type, messageId, text, mediaUrl, templateName, templateData, rest, payload, response, responseBody, _ref3, _ref4, message, error, _message;
                                  return _regenerator["default"].wrap(function _callee$(_context) {
                                    while (1) switch (_context.prev = _context.next) {
                          Severity: Major
                          Found in lib/providers/whatsapp/infobip.js - About 3 hrs to fix

                            Function value has 81 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                value: (function () {
                                  var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                                    var _ref2, from, to, text, response, responseBody, message, error, _error, _message;
                                    return _regenerator["default"].wrap(function _callee$(_context) {
                                      while (1) switch (_context.prev = _context.next) {
                            Severity: Major
                            Found in lib/providers/sms/infobip.js - About 3 hrs to fix

                              Function value has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  value: function () {
                                    var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                                      var _ref2, from, to, url, method, fallbackUrl, fallbackMethod, statusCallback, statusCallbackEvent, sendDigits, machineDetection, machineDetectionTimeout, timeout, form, response, responseBody;
                                      return _regenerator["default"].wrap(function _callee$(_context) {
                                        while (1) switch (_context.prev = _context.next) {
                              Severity: Major
                              Found in lib/providers/voice/twilio.js - About 3 hrs to fix

                                Function value has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    value: (function () {
                                      var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                                        var _ref, id, to, text, type, ttl, response, responseBody;
                                        return _regenerator["default"].wrap(function _callee$(_context) {
                                          while (1) switch (_context.prev = _context.next) {
                                Severity: Major
                                Found in lib/providers/sms/clickatell.js - About 3 hrs to fix

                                  Function _callee has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                                          var _ref2, from, to, type, messageId, text, mediaUrl, templateName, templateData, rest, payload, response, responseBody, _ref3, _ref4, message, error, _message;
                                          return _regenerator["default"].wrap(function _callee$(_context) {
                                            while (1) switch (_context.prev = _context.next) {
                                              case 0:
                                  Severity: Major
                                  Found in lib/providers/whatsapp/infobip.js - About 3 hrs to fix

                                    Function _callee has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                                            var _ref2, from, to, text, response, responseBody, message, error, _error, _message;
                                            return _regenerator["default"].wrap(function _callee$(_context) {
                                              while (1) switch (_context.prev = _context.next) {
                                                case 0:
                                    Severity: Major
                                    Found in lib/providers/sms/infobip.js - About 3 hrs to fix

                                      Function value has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          value: (function () {
                                            var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                                              var _this$credentials2, appKey, consumerKey, account, host, timestamp, _ref2, from, to, text, type, ttl, messageClass, body, reqBody, url, response, responseBody;
                                              return _regenerator["default"].wrap(function _callee$(_context) {
                                                while (1) switch (_context.prev = _context.next) {
                                      Severity: Major
                                      Found in lib/providers/sms/ovh.js - About 3 hrs to fix

                                        Function value has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            value: (function () {
                                              var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                                                var _ref2, from, to, text, response, responseBody;
                                                return _regenerator["default"].wrap(function _callee$(_context) {
                                                  while (1) switch (_context.prev = _context.next) {
                                        Severity: Major
                                        Found in lib/providers/sms/plivo.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language