Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

java-home

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-home - npm Package Compare versions

Comparing version 0.5.0 to 1.0.0

19

lib/java-home.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc