Comparing version 7.1.1 to 7.2.0
@@ -51,7 +51,7 @@ 'use strict'; | ||
if (process.platform === 'darwin') { | ||
trash = require('./lib/macos'); | ||
trash = require('./lib/macos.js'); | ||
} else if (process.platform === 'win32') { | ||
trash = require('./lib/windows'); | ||
trash = require('./lib/windows.js'); | ||
} else { | ||
trash = require('./lib/linux'); | ||
trash = require('./lib/linux.js'); | ||
} | ||
@@ -58,0 +58,0 @@ |
@@ -60,4 +60,4 @@ 'use strict'; | ||
// TODO: Use the `fs.mkdir` with `recursive` option when targeting Node.js 12. | ||
await makeDir(paths.filesPath); | ||
await makeDir(paths.infoPath); | ||
await makeDir(paths.filesPath, {mode: 0o700}); | ||
await makeDir(paths.infoPath, {mode: 0o700}); | ||
return paths; | ||
@@ -64,0 +64,0 @@ })(); |
'use strict'; | ||
const os = require('os'); | ||
const path = require('path'); | ||
const chunkedExec = require('./chunked-exec'); | ||
const chunkedExec = require('./chunked-exec.js'); | ||
@@ -6,0 +6,0 @@ const isOlderThanMountainLion = Number(os.release().split('.')[0]) < 12; |
'use strict'; | ||
const path = require('path'); | ||
const chunkedExec = require('./chunked-exec'); | ||
const chunkedExec = require('./chunked-exec.js'); | ||
@@ -5,0 +5,0 @@ // Binary source: https://github.com/sindresorhus/recycle-bin |
{ | ||
"name": "trash", | ||
"version": "7.1.1", | ||
"version": "7.2.0", | ||
"description": "Move files and folders to the trash", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
2
48029
11