bundle-name
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
var execFile = require('child_process').execFile; | ||
var runApplescript = require('run-applescript'); | ||
@@ -7,9 +7,10 @@ module.exports = function (bundleId, cb) { | ||
execFile('osascript', ['-e', script], function (err, stdout) { | ||
runApplescript(script, function (err, res) { | ||
if (err) { | ||
return cb(err); | ||
cb(err); | ||
return; | ||
} | ||
cb(err, stdout.trim()); | ||
cb(null, res); | ||
}); | ||
}; |
{ | ||
"name": "bundle-name", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Get bundle name from a bundle identifier (OS X): com.apple.Safari => Safari", | ||
@@ -44,2 +44,5 @@ "license": "MIT", | ||
], | ||
"dependencies": { | ||
"run-applescript": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -46,0 +49,0 @@ "mocha": "*" |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
3057
45
0
1
+ Addedrun-applescript@^1.0.0
+ Addedrun-applescript@1.0.1(transitive)