Showing 162 of 333 total issues
Function value
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function () {
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) {
Function value
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function _callee
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
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) {
case 0:
Function _callee$
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!request.customize) {
_context.next = 6;
Function _callee$
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!request.customize) {
_context.next = 6;
Function _callee
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
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:
Function value
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function _callee$
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!request.customize) {
_context.next = 6;
Function _callee
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
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:
Function value
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function _callee
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
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:
Function _callee
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
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:
Function _callee$
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!request.customize) {
_context.next = 6;
Function _callee
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
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:
Function _callee$
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!request.customize) {
_context.next = 6;
Function _callee
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
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:
Function _callee$
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Function _callee$
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function _callee$
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (!request.customize) {
_context.next = 6;
Function _callee
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
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: