Comparing version 1.1.0 to 1.1.1
@@ -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 @@ }, |
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
115082
94
4
+ Addedrun-applescript@^1.0.0
+ Addedescape-string-applescript@1.0.0(transitive)
+ Addedrun-applescript@1.0.1(transitive)
- Removedescape-string-applescript@0.1.1(transitive)
- Removedminimist@0.2.4(transitive)
Updatedminimist@^1.1.0