Comparing version 1.0.0 to 1.0.1
@@ -81,9 +81,10 @@ /* ================================================================ | ||
javaHome = yield exec('/usr/libexec/java_home'); | ||
if (javaHome.trim()) { | ||
return callback(null, javaHome); | ||
try { | ||
javaHome = yield exec('/usr/libexec/java_home'); | ||
if (javaHome.trim()) { | ||
return callback(null, javaHome); | ||
} | ||
} catch (e) { | ||
return callback(ERROR.PATH_NOTFOUND); | ||
} | ||
callback(ERROR.PATH_NOTFOUND); | ||
})(this); | ||
@@ -90,0 +91,0 @@ }; |
{ | ||
"name": "java-home", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "java-home", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -6,3 +6,2 @@ java-home | ||
[![build status][travis-image]][travis-url] | ||
[![Test coverage][coveralls-image]][coveralls-url] | ||
[![node version][node-image]][node-url] | ||
@@ -15,4 +14,2 @@ [![npm download][download-image]][download-url] | ||
[travis-url]: https://travis-ci.org/xudafeng/java-home | ||
[coveralls-image]: https://img.shields.io/coveralls/xudafeng/java-home.svg?style=flat-square | ||
[coveralls-url]: https://coveralls.io/r/xudafeng/java-home?branch=master | ||
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square | ||
@@ -19,0 +16,0 @@ [node-url]: http://nodejs.org/download/ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
158
8601
45
2