Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

trash

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trash - npm Package Compare versions

Comparing version 7.1.1 to 7.2.0

6

index.js

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc