Comparing version 0.5.0 to 1.0.0
@@ -22,2 +22,7 @@ /* ================================================================ | ||
var JAVA_HOME = {}; | ||
var ERROR = { | ||
PATH_INVALID: '$JAVA_HOME path is invalid', | ||
PATH_NOTFOUND: '$JAVA_HOME is not found', | ||
PATH_NOTSET: '$JAVA_HOME not set' | ||
}; | ||
@@ -40,6 +45,6 @@ JAVA_HOME.getPath = function(callback) { | ||
} else { | ||
return callback('$JAVA_HOME path is invalid'); | ||
return callback(ERROR.PATH_INVALID); | ||
} | ||
} else { | ||
return callback('$JAVA_HOME path is invalid'); | ||
return callback(ERROR.PATH_INVALID); | ||
} | ||
@@ -49,3 +54,3 @@ } | ||
if (_.platform.isWindows) { | ||
return callback('please set $JAVA_HOME'); | ||
return callback(ERROR.PATH_NOTSET); | ||
} | ||
@@ -66,6 +71,6 @@ | ||
} else { | ||
return callback('$JAVA_HOME path is invalid'); | ||
return callback(ERROR.PATH_INVALID); | ||
} | ||
} else { | ||
return callback('$JAVA_HOME path is invalid'); | ||
return callback(ERROR.PATH_INVALID); | ||
} | ||
@@ -77,3 +82,3 @@ } | ||
if (!_.platform.isOSX) { | ||
return callback('$JAVA_HOME is not found'); | ||
return callback(ERROR.PATH_NOTFOUND); | ||
} | ||
@@ -87,3 +92,3 @@ | ||
callback('$JAVA_HOME is not found'); | ||
callback(ERROR.PATH_NOTFOUND); | ||
})(this); | ||
@@ -90,0 +95,0 @@ }; |
{ | ||
"name": "java-home", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"description": "java-home", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8769
155
0