java-portable
Advanced tools
+11
| { | ||
| "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", | ||
| } | ||
| } | ||
| } |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
3001985
0.02%22
4.76%397
6.43%0
-100%