builder-util
Advanced tools
Comparing version
@@ -20,2 +20,8 @@ "use strict"; | ||
var _log; | ||
function _load_log() { | ||
return _log = require("./log"); | ||
} | ||
var _promise; | ||
@@ -27,8 +33,2 @@ | ||
var _util; | ||
function _load_util() { | ||
return _util = require("./util"); | ||
} | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -49,3 +49,3 @@ | ||
if (this.cancellationToken.cancelled) { | ||
(0, (_util || _load_util()).debug)(`Async task not added because cancelled: ${new Error().stack}`); | ||
(_log || _load_log()).log.debug({ reason: "cancelled", stack: new Error().stack }, "async task not added"); | ||
if ("cancel" in promise) { | ||
@@ -57,3 +57,3 @@ promise.cancel(); | ||
this.tasks.push(promise.catch(it => { | ||
(0, (_util || _load_util()).debug)(`Async task error: ${it.stack || it}`); | ||
(_log || _load_log()).log.debug({ error: it.message }, "async task error"); | ||
this.errors.push(it); | ||
@@ -60,0 +60,0 @@ return (_bluebirdLst2 || _load_bluebirdLst2()).default.resolve(null); |
@@ -29,8 +29,7 @@ "use strict"; | ||
const dirStat = yield (0, (_fs || _load_fs()).statOrNull)(dirPath); | ||
//noinspection ES6MissingAwait | ||
if (dirStat != null && dirStat.isDirectory()) { | ||
(_util || _load_util()).log.debug(logFlags, `found existing`); | ||
(_util || _load_util()).log.debug(logFlags, "found existing"); | ||
return dirPath; | ||
} | ||
(_util || _load_util()).log.info(Object.assign({}, logFlags, { url }), `downloading`); | ||
(_util || _load_util()).log.info(Object.assign({}, logFlags, { url }), "downloading"); | ||
// 7z cannot be extracted from the input stream, temp file is required | ||
@@ -37,0 +36,0 @@ const tempUnpackDir = _path.join(cachePath, (0, (_tempFile || _load_tempFile()).getTempName)()); |
{ | ||
"name": "builder-util", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"main": "out/util.js", | ||
@@ -5,0 +5,0 @@ "author": "Vladimir Krivosheev", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
200692
0.01%2476
-0.04%