New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

java-portable

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-portable - npm Package Compare versions

Comparing version
1.0.0-snapshot.5
to
1.1.0
+11
flavio.json
{
"name": "java-portable",
"version": "1.1.0",
"dependencies": {},
"tag": {
"commit": "957ea8d3f280323ba0b4e85dda46d8208179dc64",
"target": {
"branch": "master"
}
}
}
+17
-1

@@ -12,2 +12,3 @@ const fs = require( 'fs' );

* @property {boolean} [noprebuilt=false] - If the version of java, node.js etc isn't matched, don't copy over a prebuilt version of node-java and just fail instead
* @property {boolean} [nowritejvmfile=false] - Do not overwrite the jvm_dll_path.json file if you don't want to do it write now (e.g. in a multithreaded application). Call writeJvmDllPathFile() to do this separately.
* @property {string} [versionsJsonPath] - Use this versions.json file path

@@ -63,4 +64,7 @@ * @property {string} [nodeJavaPath] - Use this as the path to the node-java package

*/
function start( options = {} ) {
function writeJvmDllPathFile( options ) {
options = getOptions( options );
if ( options.nowritejvmfile ) {
return Promise.resolve();
}
return getVersions( options.nodeJavaPath )

@@ -96,2 +100,9 @@ .then( currentVersions => {

} )
}
/**
* @param {javaPortable#Options} options
*/
function start( options = {} ) {
return writeJvmDllPathFile( options )
.then( () => {

@@ -113,2 +124,7 @@ return require( 'java' );

/**
* @param {javaPortable#Options} options
*/
start.writeJvmDllPathFile = writeJvmDllPathFile;
module.exports = start;
+2
-2
{
"name": "java-portable",
"version": "1.0.0-snapshot.5",
"version": "1.1.0",
"description": "Wrapper for the node-java npm package that improves locating the JRE on the target machine and can support multiple prebuilt platform builds",

@@ -37,2 +37,2 @@ "main": "index.js",

}
}
}