Comparing version 0.0.3 to 0.1.0
@@ -33,2 +33,5 @@ #!/usr/bin/env node | ||
}) | ||
}, | ||
fixWhitespace: function(str) { | ||
return /\s/g.test(str) ? '"' + str + '"' : str | ||
} | ||
@@ -38,3 +41,7 @@ } | ||
chrome.isExist(function() { | ||
exeq([chrome.getCommand()]) | ||
exeq([chrome.getCommand()].concat(process.argv.slice(2)).map(chrome.fixWhitespace).join(' ')) | ||
.catch(function(err) { | ||
console.error('Failed to open Google Chrome as intended', err) | ||
process.exit(err.code || 13) | ||
}) | ||
}) |
{ | ||
"name": "chrome", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"description": "Open chrome in shell", | ||
@@ -19,4 +19,4 @@ "repository": { | ||
"dependencies": { | ||
"exeq": "^1.0.0", | ||
"plist": "^1.0.1" | ||
"exeq": "^2.2.0", | ||
"plist": "^1.1.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "maintainers": [ |
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
2520
65
+ Addedbluebird@3.7.2(transitive)
+ Addedexeq@2.4.0(transitive)
+ Addednative-or-bluebird@1.2.0(transitive)
- Removedarale@0.2.0(transitive)
- Removedexeq@1.0.2(transitive)
- Removedwin-spawn@2.0.0(transitive)
Updatedexeq@^2.2.0
Updatedplist@^1.1.0