java-caller
Advanced tools
Comparing version 4.1.1-beta202408202050.0 to 4.1.1
@@ -277,7 +277,4 @@ #! /usr/bin/env node | ||
const njre = require("njre"); | ||
const njreOptions = { type: javaTypeToInstall }; | ||
const prevRequireMainFilename = require.main.filename; // hack require.main.filename to njre installs java where we want | ||
require.main.filename = packageJson; | ||
const njreOptions = { type: javaTypeToInstall, installPath: packageJson }; | ||
const installDir = await njre.install(javaVersionToInstall, njreOptions); | ||
require.main.filename = prevRequireMainFilename; // unhack require.main.filename | ||
console.log(`Installed Java ${javaTypeToInstall} ${javaVersionToInstall} in ${installDir}...`); | ||
@@ -284,0 +281,0 @@ |
{ | ||
"name": "java-caller", | ||
"version": "4.1.1-beta202408202050.0", | ||
"version": "4.1.1", | ||
"description": "Library to easily call java from node sources. Automatically installs java if not present", | ||
@@ -40,3 +40,3 @@ "main": "./lib/index.js", | ||
"fs-extra": "^11.1.1", | ||
"njre": "^1.2.1", | ||
"njre": "^1.4.0", | ||
"semver": "^7.5.4" | ||
@@ -43,0 +43,0 @@ }, |
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
0
35699
434
Updatednjre@^1.4.0