logrocket-cli
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -184,4 +184,3 @@ 'use strict'; | ||
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(args) { | ||
var paths, release, apikey, apihost, verbose, urlPrefix, client, uploadFile, fileList, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, fileInfo; | ||
var paths, release, apikey, apihost, verbose, urlPrefix, client, uploadFile, fileList, CHUNK_SIZE, i; | ||
return _regenerator2.default.wrap(function _callee4$(_context4) { | ||
@@ -276,62 +275,24 @@ while (1) { | ||
_iteratorNormalCompletion2 = true; | ||
_didIteratorError2 = false; | ||
_iteratorError2 = undefined; | ||
_context4.prev = 15; | ||
_iterator2 = (0, _getIterator3.default)(fileList); | ||
CHUNK_SIZE = 10; | ||
i = 0; | ||
case 17: | ||
if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) { | ||
_context4.next = 24; | ||
case 14: | ||
if (!(i < fileList.length)) { | ||
_context4.next = 20; | ||
break; | ||
} | ||
fileInfo = _step2.value; | ||
_context4.next = 21; | ||
return uploadFile(fileInfo); | ||
case 21: | ||
_iteratorNormalCompletion2 = true; | ||
_context4.next = 17; | ||
break; | ||
return _promise2.default.all(fileList.slice(i, i + CHUNK_SIZE).map(uploadFile)); | ||
case 24: | ||
_context4.next = 30; | ||
case 17: | ||
i += CHUNK_SIZE; | ||
_context4.next = 14; | ||
break; | ||
case 26: | ||
_context4.prev = 26; | ||
_context4.t0 = _context4['catch'](15); | ||
_didIteratorError2 = true; | ||
_iteratorError2 = _context4.t0; | ||
case 20: | ||
case 30: | ||
_context4.prev = 30; | ||
_context4.prev = 31; | ||
if (!_iteratorNormalCompletion2 && _iterator2.return) { | ||
_iterator2.return(); | ||
} | ||
case 33: | ||
_context4.prev = 33; | ||
if (!_didIteratorError2) { | ||
_context4.next = 36; | ||
break; | ||
} | ||
throw _iteratorError2; | ||
case 36: | ||
return _context4.finish(33); | ||
case 37: | ||
return _context4.finish(30); | ||
case 38: | ||
console.info('Success!'); | ||
case 39: | ||
case 21: | ||
case 'end': | ||
@@ -341,3 +302,3 @@ return _context4.stop(); | ||
} | ||
}, _callee4, undefined, [[15, 26, 30, 38], [31,, 33, 37]]); | ||
}, _callee4, undefined); | ||
})); | ||
@@ -344,0 +305,0 @@ |
{ | ||
"name": "logrocket-cli", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "Command line tool for [LogRocket](https://logrocket.com/).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27564
609