@abetomo/google-drive-cleaner
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -12,2 +12,3 @@ #!/usr/bin/env node | ||
program | ||
.showSuggestionAfterError() | ||
.option('-a, --auth [AUTH_JSON_FILE_PATH]', 'JSON path for Google\'s authentication') | ||
@@ -14,0 +15,0 @@ .option('-q, --query [QUERY]', 'Query string for searching delete files.', '') |
@@ -83,3 +83,3 @@ 'use strict' | ||
const tests = [{ | ||
expected: 'n/a', | ||
expected: '0 Bytes', | ||
actual: 0 | ||
@@ -101,2 +101,8 @@ }, { | ||
actual: 1024 * 1024 * 1024 * 1024 * 10.3 | ||
}, { | ||
expected: '0 Bytes', | ||
actual: '0' // string | ||
}, { | ||
expected: '10 Bytes', | ||
actual: '10' // string | ||
}] | ||
@@ -103,0 +109,0 @@ tests.forEach(test => { |
@@ -74,3 +74,4 @@ 'use strict' | ||
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'] | ||
if (bytes === 0) return 'n/a' | ||
bytes = Number(bytes) | ||
if (bytes === 0) return '0 Bytes' | ||
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10) | ||
@@ -77,0 +78,0 @@ if (Number.isNaN(i)) return i |
{ | ||
"name": "@abetomo/google-drive-cleaner", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "A tool to remove files on Google Drive.", | ||
@@ -31,8 +31,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"commander": "^7.0.0", | ||
"commander": "^8.2.0", | ||
"full-width-of-terminal": "^2.0.0", | ||
"googleapis": "^78.0.0" | ||
"googleapis": "^87.0.0" | ||
}, | ||
"devDependencies": { | ||
"jest": "^26.6.3", | ||
"jest": "^27.2.0", | ||
"standard": "^16.0.3" | ||
@@ -39,0 +39,0 @@ }, |
13967
374
+ Addedcommander@8.3.0(transitive)
+ Addedgoogleapis@87.0.0(transitive)
- Removedcommander@7.2.0(transitive)
- Removedgoogleapis@78.0.0(transitive)
Updatedcommander@^8.2.0
Updatedgoogleapis@^87.0.0