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

java-caller

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-caller - npm Package Compare versions

Comparing version 4.1.1-beta202408202050.0 to 4.1.1

5

lib/java-caller.js

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

4

package.json
{
"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 @@ },

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