notifme/notifme-sdk

View on GitHub

Showing 152 of 316 total issues

Function value has 74 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, text, to, type, ttl, messageClass, params, response, _yield$response$json, messages, message;
        return _regenerator["default"].wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
Severity: Major
Found in lib/providers/sms/seven.js - About 2 hrs to fix

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

          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) {
                case 0:
    Severity: Major
    Found in lib/providers/sms/clickatell.js - About 2 hrs to fix

      Function _callee$ has 73 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/sms/infobip.js - About 2 hrs to fix

        Function value has 73 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, from, to, text, type, ttl, messageClass, response, responseBody, message;
                return _regenerator["default"].wrap(function _callee$(_context) {
                  while (1) switch (_context.prev = _context.next) {
        Severity: Major
        Found in lib/providers/sms/nexmo.js - About 2 hrs to fix

          Function value has 71 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, id, userId, from, to, text, type, nature, response, responseBody, error;
                  return _regenerator["default"].wrap(function _callee$(_context) {
                    while (1) switch (_context.prev = _context.next) {
          Severity: Major
          Found in lib/providers/sms/callr.js - About 2 hrs to fix

            Function _callee$ has 71 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/voice/twilio.js - About 2 hrs to fix

              Function _callee has 71 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;
                      return _regenerator["default"].wrap(function _callee$(_context) {
                        while (1) switch (_context.prev = _context.next) {
                          case 0:
              Severity: Major
              Found in lib/providers/sms/plivo.js - About 2 hrs to fix

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

                      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) {
                            case 0:
                Severity: Major
                Found in lib/providers/sms/ovh.js - About 2 hrs to fix

                  Function _callee$ has 70 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/sms/clickatell.js - About 2 hrs to fix

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

                          var _send = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                            var region, host, raw, body, apiRequest, signer, response, responseText;
                            return _regenerator["default"].wrap(function _callee$(_context) {
                              while (1) switch (_context.prev = _context.next) {
                                case 0:
                    Severity: Major
                    Found in lib/providers/email/ses.js - About 2 hrs to fix

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

                            var _send = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                              var _ref2, from, text, to, type, ttl, messageClass, params, response, _yield$response$json, messages, message;
                              return _regenerator["default"].wrap(function _callee$(_context) {
                                while (1) switch (_context.prev = _context.next) {
                                  case 0:
                      Severity: Major
                      Found in lib/providers/sms/seven.js - About 2 hrs to fix

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

                              var _send = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(request) {
                                var _ref, from, to, text, type, ttl, messageClass, 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/sms/nexmo.js - About 2 hrs to fix

                          Function _callee$ has 68 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/sms/plivo.js - About 2 hrs to fix

                            Function _callee$ has 68 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:
                                          _this$credentials2 = this.credentials, appKey = _this$credentials2.appKey, consumerKey = _this$credentials2.consumerKey, account = _this$credentials2.account, host = _this$credentials2.host;
                                          timestamp = Math.round((0, _now["default"])() / 1000); // Documentation: https://api.ovh.com/console/#/sms/%7BserviceName%7D/jobs#POST
                            Severity: Major
                            Found in lib/providers/sms/ovh.js - About 2 hrs to fix

                              Function _callee$ has 67 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.text && typeof request.text !== 'string' && !(request.text instanceof Buffer) && !(request.text instanceof Uint8Array))) {
                                              _context.next = 2;
                              Severity: Major
                              Found in lib/providers/email/ses.js - About 2 hrs to fix

                                Function _callee$ has 66 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/sms/seven.js - About 2 hrs to fix

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

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

                                    Function _callee$ has 65 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/sms/nexmo.js - About 2 hrs to fix

                                      Function _callee$ has 63 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/sms/callr.js - About 2 hrs to fix

                                        Function value has 62 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/46elks.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language