@appthreat/atom 2.1.16 → 2.1.18

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 (19) hide show
  1. package/index.js +9 -5
  2. package/package.json +1 -1
  3. package/plugins/bin/atom +1 -1
  4. package/plugins/bin/atom.bat +1 -1
  5. package/plugins/composer/installed.php +6 -6
  6. package/plugins/lib/io.appthreat.atom-2.1.18-classpath.jar +0 -0
  7. package/plugins/lib/{io.appthreat.atom-2.1.16.jar → io.appthreat.atom-2.1.18.jar} +0 -0
  8. package/plugins/lib/{io.appthreat.c2cpg_3-2.3.6.jar → io.appthreat.c2cpg_3-2.3.8.jar} +0 -0
  9. package/plugins/lib/{io.appthreat.dataflowengineoss_3-2.3.6.jar → io.appthreat.dataflowengineoss_3-2.3.8.jar} +0 -0
  10. package/plugins/lib/{io.appthreat.javasrc2cpg_3-2.3.6.jar → io.appthreat.javasrc2cpg_3-2.3.8.jar} +0 -0
  11. package/plugins/lib/{io.appthreat.jimple2cpg_3-2.3.6.jar → io.appthreat.jimple2cpg_3-2.3.8.jar} +0 -0
  12. package/plugins/lib/{io.appthreat.jssrc2cpg_3-2.3.6.jar → io.appthreat.jssrc2cpg_3-2.3.8.jar} +0 -0
  13. package/plugins/lib/{io.appthreat.php2atom_3-2.3.6.jar → io.appthreat.php2atom_3-2.3.8.jar} +0 -0
  14. package/plugins/lib/{io.appthreat.pysrc2cpg_3-2.3.6.jar → io.appthreat.pysrc2cpg_3-2.3.8.jar} +0 -0
  15. package/plugins/lib/{io.appthreat.ruby2atom_3-2.3.6.jar → io.appthreat.ruby2atom_3-2.3.8.jar} +0 -0
  16. package/plugins/lib/{io.appthreat.semanticcpg_3-2.3.6.jar → io.appthreat.semanticcpg_3-2.3.8.jar} +0 -0
  17. package/plugins/lib/{io.appthreat.x2cpg_3-2.3.6.jar → io.appthreat.x2cpg_3-2.3.8.jar} +0 -0
  18. package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/gem_make.out +5 -5
  19. package/plugins/lib/io.appthreat.atom-2.1.16-classpath.jar +0 -0
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { freemem, platform as _platform } from "node:os";
3
+ import { totalmem, platform as _platform } from "node:os";
4
4
  import { dirname, join, delimiter } from "node:path";
5
5
  import { readFileSync } from "node:fs";
6
6
 
@@ -20,11 +20,15 @@ export const LOG4J_CONFIG = join(dirName, "plugins", "log4j2.xml");
20
20
  export const ATOM_HOME = join(dirName, "plugins");
21
21
  export const APP_LIB_DIR = join(ATOM_HOME, "lib");
22
22
  export const PHP_PARSER_BIN = join(ATOM_HOME, "bin", "php-parse");
23
- const freeMemoryGB = Math.max(Math.floor(freemem() / 1024 / 1024 / 1024), 4);
23
+
24
+ // We need more memory for atom to work well
25
+ const maxMemoryGB = Math.floor((totalmem() * 0.8) / 1024 ** 3);
26
+
24
27
  export const JVM_ARGS = "-XX:+UseG1GC -XX:+UseStringDeduplication";
25
- export const JAVA_OPTS = `${
26
- process.env.JAVA_OPTS || ""
27
- } -Xmx${freeMemoryGB}G ${JVM_ARGS}`;
28
+ export const JAVA_OPTS =
29
+ process.env?.ATOM_JVM_ARGS ||
30
+ `${process.env.JAVA_OPTS || ""} -Xms2G -Xmx${maxMemoryGB}G ${JVM_ARGS}`;
31
+
28
32
  export const APP_MAIN_CLASS = "io.appthreat.atom.Atom";
29
33
  export const ATOM_VERSION = _version;
30
34
  export const APP_CLASSPATH = join(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appthreat/atom",
3
- "version": "2.1.16",
3
+ "version": "2.1.18",
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-2.1.16-classpath.jar"
363
+ declare -r app_classpath="$lib_dir/io.appthreat.atom-2.1.18-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-2.1.16-classpath.jar"
43
+ set "APP_CLASSPATH=%APP_LIB_DIR%\io.appthreat.atom-2.1.18-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
 
@@ -1,9 +1,9 @@
1
1
  <?php return array(
2
2
  'root' => array(
3
3
  'name' => '__root__',
4
- 'pretty_version' => 'v2.1.16',
5
- 'version' => '2.1.16.0',
6
- 'reference' => '6840856d1c374e7a4c99db36396b31875defa83a',
4
+ 'pretty_version' => 'v2.1.18',
5
+ 'version' => '2.1.18.0',
6
+ 'reference' => '29b3e042b394a356f44e082e69cd9b0369d442ea',
7
7
  'type' => 'library',
8
8
  'install_path' => __DIR__ . '/../../',
9
9
  'aliases' => array(),
@@ -11,9 +11,9 @@
11
11
  ),
12
12
  'versions' => array(
13
13
  '__root__' => array(
14
- 'pretty_version' => 'v2.1.16',
15
- 'version' => '2.1.16.0',
16
- 'reference' => '6840856d1c374e7a4c99db36396b31875defa83a',
14
+ 'pretty_version' => 'v2.1.18',
15
+ 'version' => '2.1.18.0',
16
+ 'reference' => '29b3e042b394a356f44e082e69cd9b0369d442ea',
17
17
  'type' => 'library',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),
@@ -3,16 +3,16 @@ current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse
6
- make DESTDIR\= sitearchdir\=./.gem.20250420-2905-vtyjh3 sitelibdir\=./.gem.20250420-2905-vtyjh3 clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20250426-2890-gn0g0d sitelibdir\=./.gem.20250426-2890-gn0g0d clean
7
7
 
8
8
  current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse
9
- make DESTDIR\= sitearchdir\=./.gem.20250420-2905-vtyjh3 sitelibdir\=./.gem.20250420-2905-vtyjh3
9
+ make DESTDIR\= sitearchdir\=./.gem.20250426-2890-gn0g0d sitelibdir\=./.gem.20250426-2890-gn0g0d
10
10
  compiling cparse.c
11
11
  linking shared-object racc/cparse.so
12
12
 
13
13
  current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse
14
- make DESTDIR\= sitearchdir\=./.gem.20250420-2905-vtyjh3 sitelibdir\=./.gem.20250420-2905-vtyjh3 install
15
- /usr/bin/install -c -m 0755 cparse.so ./.gem.20250420-2905-vtyjh3/racc
14
+ make DESTDIR\= sitearchdir\=./.gem.20250426-2890-gn0g0d sitelibdir\=./.gem.20250426-2890-gn0g0d install
15
+ /usr/bin/install -c -m 0755 cparse.so ./.gem.20250426-2890-gn0g0d/racc
16
16
 
17
17
  current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse
18
- make DESTDIR\= sitearchdir\=./.gem.20250420-2905-vtyjh3 sitelibdir\=./.gem.20250420-2905-vtyjh3 clean
18
+ make DESTDIR\= sitearchdir\=./.gem.20250426-2890-gn0g0d sitelibdir\=./.gem.20250426-2890-gn0g0d clean