Socket
Socket
Sign inDemoInstall

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 1.1.0 to 1.1.1

9

index.js

@@ -5,2 +5,3 @@ 'use strict';

var escapeStringApplescript = require('escape-string-applescript');
var runApplescript = require('run-applescript');

@@ -17,5 +18,6 @@ function osx(paths, cb) {

execFile('osascript', ['-e', script], function (err) {
runApplescript(script, function (err) {
if (err && /10010/.test(err.message)) {
return cb(new Error('Item doesn\'t exist'));
cb(new Error('Item doesn\'t exist'));
return;
}

@@ -32,3 +34,4 @@

if (err && /cannot trash non existent/.test(err.message)) {
return cb(new Error('Item doesn\'t exist'));
cb(new Error('Item doesn\'t exist'));
return;
}

@@ -35,0 +38,0 @@

{
"name": "trash",
"version": "1.1.0",
"version": "1.1.1",
"description": "Cross-platform command-line app for moving files and directories to the trash - A safer alternative to `rm`",

@@ -45,4 +45,5 @@ "license": "MIT",

"dependencies": {
"escape-string-applescript": "^0.1.1",
"minimist": "^0.2.0",
"escape-string-applescript": "^1.0.0",
"minimist": "^1.1.0",
"run-applescript": "^1.0.0",
"update-notifier": "^0.2.0"

@@ -49,0 +50,0 @@ },

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