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

java-home

Package Overview
Dependencies
Maintainers
2
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 1.0.0 to 1.0.1

13

lib/java-home.js

@@ -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/

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