Socket
Socket
Sign inDemoInstall

@abetomo/google-drive-cleaner

Package Overview
Dependencies
54
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.5 to 2.0.6

1

bin/google-drive-cleaner.js

@@ -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 => {

3

lib/google-drive-cleaner.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc