diff --git a/lib/build.js b/lib/build.js index ad8603d..32f8cb4 100644 --- a/lib/build.js +++ b/lib/build.js @@ -14,9 +14,9 @@ const patchesPath = path.resolve(__dirname, '../patches'); const nodeRepo = 'https://github.com/nodejs/node'; const gitCloneThresholds = { - 'objects: 0% ': 0, 'objects: 1% ': 1, 'objects: 5% ': 5, // eslint-disable-line key-spacing - 'objects: 10% ': 10, 'objects: 20% ': 20, 'objects: 40% ': 40, - 'objects: 60% ': 60, 'objects: 80% ': 80 + 'ving objects: 0%': 0, 'ving objects: 1%': 1, 'ving objects: 5%': 5, // eslint-disable-line key-spacing + 'ving objects: 10%': 10, 'ving objects: 20%': 20, 'ving objects: 40%': 40, + 'ving objects: 61%': 60, 'ving objects: 81%': 80, 'deltas: 0%': 98 }; // TODO try cloning bare repo diff --git a/lib/github.js b/lib/github.js index 9f5b7c1..a21f3a1 100644 --- a/lib/github.js +++ b/lib/github.js @@ -77,7 +77,7 @@ export function uploadAsset (file, release, name) { export function downloadAsset (asset, file) { log.enableProgress(); - log.showProgress('', 0); + log.showProgress('0%', 0); return new Promise((resolve, reject) => { const headers = { Accept: 'application/octet-stream' }; const ws = fs.createWriteStream(file); diff --git a/lib/spawn.js b/lib/spawn.js index f0ffbc9..fc5ce5e 100644 --- a/lib/spawn.js +++ b/lib/spawn.js @@ -16,7 +16,7 @@ export function spawn (cmd, args, opts) { export function progress (child, thresholds) { log.enableProgress(); - log.showProgress('', 0); + log.showProgress('0%', 0); const onData = (data) => { for (const key in thresholds) { if (data.indexOf(key) >= 0) {