@appthreat/atom 1.5.2 → 1.5.4

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.
Files changed (23) hide show
  1. package/index.js +5 -2
  2. package/package.json +1 -1
  3. package/plugins/bin/atom +1 -1
  4. package/plugins/bin/atom.bat +1 -1
  5. package/plugins/lib/{com.lihaoyi.ujson_3-3.1.2.jar → com.lihaoyi.ujson_3-3.1.3.jar} +0 -0
  6. package/plugins/lib/{com.lihaoyi.upack_3-3.1.2.jar → com.lihaoyi.upack_3-3.1.3.jar} +0 -0
  7. package/plugins/lib/{com.lihaoyi.upickle-core_3-3.1.2.jar → com.lihaoyi.upickle-core_3-3.1.3.jar} +0 -0
  8. package/plugins/lib/{com.lihaoyi.upickle-implicits_3-3.1.2.jar → com.lihaoyi.upickle-implicits_3-3.1.3.jar} +0 -0
  9. package/plugins/lib/{com.lihaoyi.upickle_3-3.1.2.jar → com.lihaoyi.upickle_3-3.1.3.jar} +0 -0
  10. package/plugins/lib/io.appthreat.atom-1.5.4-classpath.jar +0 -0
  11. package/plugins/lib/io.appthreat.atom-1.5.4.jar +0 -0
  12. package/plugins/lib/{io.appthreat.c2cpg_3-0.0.20.jar → io.appthreat.c2cpg_3-0.5.4.jar} +0 -0
  13. package/plugins/lib/{io.appthreat.dataflowengineoss_3-0.0.20.jar → io.appthreat.dataflowengineoss_3-0.5.4.jar} +0 -0
  14. package/plugins/lib/{io.appthreat.javasrc2cpg_3-0.0.20.jar → io.appthreat.javasrc2cpg_3-0.5.4.jar} +0 -0
  15. package/plugins/lib/io.appthreat.jimple2cpg_3-0.5.4.jar +0 -0
  16. package/plugins/lib/{io.appthreat.jssrc2cpg_3-0.0.20.jar → io.appthreat.jssrc2cpg_3-0.5.4.jar} +0 -0
  17. package/plugins/lib/{io.appthreat.pysrc2cpg_3-0.0.20.jar → io.appthreat.pysrc2cpg_3-0.5.4.jar} +0 -0
  18. package/plugins/lib/{io.appthreat.semanticcpg_3-0.0.20.jar → io.appthreat.semanticcpg_3-0.5.4.jar} +0 -0
  19. package/plugins/lib/{io.appthreat.x2cpg_3-0.0.20.jar → io.appthreat.x2cpg_3-0.5.4.jar} +0 -0
  20. package/plugins/lib/{org.eclipse.cdt.core_8.2.0.202305101618.jar → org.eclipse.cdt.core_8.3.1.202309150117.jar} +0 -0
  21. package/plugins/lib/io.appthreat.atom-1.5.2-classpath.jar +0 -0
  22. package/plugins/lib/io.appthreat.atom-1.5.2.jar +0 -0
  23. package/plugins/lib/io.appthreat.jimple2cpg_3-0.0.20.jar +0 -0
package/index.js CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  import { freemem, platform as _platform } from "node:os";
4
4
  import { dirname, join, delimiter } from "node:path";
5
+ import { readFileSync } from "node:fs";
6
+
5
7
  import { spawnSync } from "node:child_process";
6
8
  import { fileURLToPath } from "node:url";
7
9
  import { detectJava } from "./utils.mjs";
@@ -12,7 +14,8 @@ if (!url.startsWith("file://")) {
12
14
  url = new URL(`file://${import.meta.url}`).toString();
13
15
  }
14
16
  const dirName = import.meta ? dirname(fileURLToPath(url)) : __dirname;
15
-
17
+ const selfPJson = JSON.parse(readFileSync(join(dirName, "package.json")));
18
+ const _version = selfPJson.version;
16
19
  export const LOG4J_CONFIG = join(dirName, "plugins", "log4j2.xml");
17
20
  export const ATOM_HOME = join(dirName, "plugins");
18
21
  export const APP_LIB_DIR = join(ATOM_HOME, "lib");
@@ -22,7 +25,7 @@ export const JAVA_OPTS = `${
22
25
  process.env.JAVA_OPTS || ""
23
26
  } -Xmx${freeMemoryGB}G ${JVM_ARGS}`;
24
27
  export const APP_MAIN_CLASS = "io.appthreat.atom.Atom";
25
- export const ATOM_VERSION = "1.5.2";
28
+ export const ATOM_VERSION = _version;
26
29
  export const APP_CLASSPATH = join(
27
30
  APP_LIB_DIR,
28
31
  `io.appthreat.atom-${ATOM_VERSION}-classpath.jar`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appthreat/atom",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "Create atom (⚛) representation for your application, packages and libraries",
5
5
  "exports": "./index.js",
6
6
  "type": "module",
package/plugins/bin/atom CHANGED
@@ -360,7 +360,7 @@ declare -r lib_dir="$(realpath "${app_home}/../lib")"
360
360
  declare -a app_mainclass=(io.appthreat.atom.Atom)
361
361
 
362
362
  declare -r script_conf_file="${app_home}/../conf/application.ini"
363
- declare -r app_classpath="$lib_dir/io.appthreat.atom-1.5.2-classpath.jar"
363
+ declare -r app_classpath="$lib_dir/io.appthreat.atom-1.5.4-classpath.jar"
364
364
 
365
365
  # java_cmd is overrode in process_args when -java-home is used
366
366
  declare java_cmd=$(get_java_cmd)
@@ -40,7 +40,7 @@ rem "-J" is stripped, "-D" is left as is, and everything is appended to JAVA_OPT
40
40
  set _JAVA_PARAMS=
41
41
  set _APP_ARGS=
42
42
 
43
- set "APP_CLASSPATH=%APP_LIB_DIR%\io.appthreat.atom-1.5.2-classpath.jar"
43
+ set "APP_CLASSPATH=%APP_LIB_DIR%\io.appthreat.atom-1.5.4-classpath.jar"
44
44
  set "APP_MAIN_CLASS=io.appthreat.atom.Atom"
45
45
  set "SCRIPT_CONF_FILE=%APP_HOME%\conf\application.ini"
46
46
 
index a3f2da0..4f7d631 100644
Binary file
index 3ef255d..c4a1925 100644
Binary file
index 507f18b..a8a5d4f 100644
Binary file
index 88629f0..8d4d7eb 100644
Binary file