java-caller 4.0.1-beta202405081245.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/java-caller)
|
|
5
5
|
[](https://npmjs.org/package/java-caller)
|
|
6
6
|
[](https://npmjs.org/package/java-caller)<!-- gh-dependents-info-used-by-start -->
|
|
7
|
-
[](https://github.com/nvuillam/node-java-caller/blob/main/docs/github-dependents-info.md)<!-- gh-dependents-info-used-by-end -->
|
|
8
8
|
[](https://circleci.com/gh/nvuillam/node-java-caller/tree/master)
|
|
9
9
|
[](https://github.com/nvuillam/mega-linter#readme)
|
|
10
10
|
[](https://codecov.io/gh/nvuillam/node-java-caller)
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
Lightweight cross-platform javascript module to **easily call java commands from Node.js sources**.
|
|
17
17
|
|
|
18
18
|
- **Automatically installs required Java version** if not present on the system
|
|
19
|
-
- Compliant with **JDK & JRE** from **8 to
|
|
19
|
+
- Compliant with **JDK & JRE** from **8 to 21**
|
|
20
20
|
- Uses node [spawn](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) method to perform the call
|
|
21
21
|
|
|
22
22
|
There are two ways to use java-caller:
|
|
@@ -35,7 +35,7 @@ npm install java-caller --save
|
|
|
35
35
|
```javascript
|
|
36
36
|
const JavaCaller = require('java-caller');
|
|
37
37
|
const java = new JavaCaller(JAVA_CALLER_OPTIONS);
|
|
38
|
-
const {status, stdout, stderr} = java.run(JAVA_ARGUMENTS,JAVA_CALLER_RUN_OPTIONS);
|
|
38
|
+
const {status, stdout, stderr} = await java.run(JAVA_ARGUMENTS,JAVA_CALLER_RUN_OPTIONS);
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
### JAVA_CALLER_OPTIONS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "java-caller",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Library to easily call java from node sources. Automatically installs java if not present",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/eslint-parser": "^7.22.15",
|
|
45
|
-
"eslint": "^
|
|
45
|
+
"eslint": "^9.0.0",
|
|
46
46
|
"mocha": "^10.1.0",
|
|
47
|
-
"nyc": "^
|
|
47
|
+
"nyc": "^17.0.0",
|
|
48
48
|
"prettier": "^3.1.0",
|
|
49
49
|
"which": "^4.0.0"
|
|
50
50
|
},
|