@appthreat/atom 1.0.0 → 1.0.2

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 (82) hide show
  1. package/astgen.js +1 -1
  2. package/index.js +8 -8
  3. package/package.json +4 -4
  4. package/plugins/atom-1.0.0/lib/com.github.javaparser.javaparser-core-3.25.4.jar +0 -0
  5. package/plugins/atom-1.0.0/lib/com.github.javaparser.javaparser-symbol-solver-core-3.25.4.jar +0 -0
  6. package/plugins/atom-1.0.0/lib/com.github.luben.zstd-jni-1.5.4-2.jar +0 -0
  7. package/plugins/atom-1.0.0/lib/com.github.plokhotnyuk.jsoniter-scala.jsoniter-scala-core_2.13-2.13.5.2.jar +0 -0
  8. package/plugins/atom-1.0.0/lib/com.google.errorprone.error_prone_annotations-2.18.0.jar +0 -0
  9. package/plugins/atom-1.0.0/lib/com.google.guava.guava-32.1.1-jre.jar +0 -0
  10. package/plugins/atom-1.0.0/lib/com.google.j2objc.j2objc-annotations-2.8.jar +0 -0
  11. package/plugins/atom-1.0.0/lib/com.lihaoyi.fansi_3-0.4.0.jar +0 -0
  12. package/plugins/atom-1.0.0/lib/com.lihaoyi.mainargs_3-0.5.0.jar +0 -0
  13. package/plugins/atom-1.0.0/lib/com.lihaoyi.pprint_3-0.8.1.jar +0 -0
  14. package/plugins/atom-1.0.0/lib/com.lihaoyi.sourcecode_3-0.3.0.jar +0 -0
  15. package/plugins/atom-1.0.0/lib/com.michaelpollmeier.scala-repl-pp-core_3-0.1.36.jar +0 -0
  16. package/plugins/atom-1.0.0/lib/com.michaelpollmeier.scala-repl-pp-shaded-libs_3-0.1.36.jar +0 -0
  17. package/plugins/atom-1.0.0/lib/commons-io.commons-io-2.11.0.jar +0 -0
  18. package/plugins/atom-1.0.0/lib/io.appthreat.atom-1.0.0-classpath.jar +0 -0
  19. package/plugins/atom-1.0.0/lib/io.appthreat.atom-1.0.0.jar +0 -0
  20. package/plugins/atom-1.0.0/lib/io.get-coursier.coursier-cache_2.13-2.1.2.jar +0 -0
  21. package/plugins/atom-1.0.0/lib/io.get-coursier.coursier-core_2.13-2.1.2.jar +0 -0
  22. package/plugins/atom-1.0.0/lib/io.get-coursier.coursier-proxy-setup-2.1.2.jar +0 -0
  23. package/plugins/atom-1.0.0/lib/io.get-coursier.coursier-util_2.13-2.1.2.jar +0 -0
  24. package/plugins/atom-1.0.0/lib/io.get-coursier.coursier_2.13-2.1.2.jar +0 -0
  25. package/plugins/atom-1.0.0/lib/io.get-coursier.jniutils.windows-jni-utils-0.3.3.jar +0 -0
  26. package/plugins/atom-1.0.0/lib/io.github.alexarchambault.concurrent-reference-hash-map-1.1.0.jar +0 -0
  27. package/plugins/atom-1.0.0/lib/io.github.alexarchambault.windows-ansi.windows-ansi-0.0.4.jar +0 -0
  28. package/plugins/atom-1.0.0/lib/io.joern.c2cpg_3-2.0.52.jar +0 -0
  29. package/plugins/atom-1.0.0/lib/{io.joern.dataflowengineoss_3-2.0.25.jar → io.joern.dataflowengineoss_3-2.0.52.jar} +0 -0
  30. package/plugins/atom-1.0.0/lib/io.joern.javasrc2cpg_3-2.0.52.jar +0 -0
  31. package/plugins/atom-1.0.0/lib/io.joern.jimple2cpg_3-2.0.52.jar +0 -0
  32. package/plugins/atom-1.0.0/lib/io.joern.jssrc2cpg_3-2.0.52.jar +0 -0
  33. package/plugins/atom-1.0.0/lib/{io.joern.pysrc2cpg_3-2.0.25.jar → io.joern.pysrc2cpg_3-2.0.52.jar} +0 -0
  34. package/plugins/atom-1.0.0/lib/{io.joern.semanticcpg_3-2.0.25.jar → io.joern.semanticcpg_3-2.0.52.jar} +0 -0
  35. package/plugins/atom-1.0.0/lib/{io.joern.x2cpg_3-2.0.25.jar → io.joern.x2cpg_3-2.0.52.jar} +0 -0
  36. package/plugins/atom-1.0.0/lib/io.shiftleft.codepropertygraph-domain-classes_3-1.4.12.jar +0 -0
  37. package/plugins/atom-1.0.0/lib/io.shiftleft.codepropertygraph-protos_3-1.4.12.jar +0 -0
  38. package/plugins/atom-1.0.0/lib/{io.shiftleft.codepropertygraph_3-1.4.1.jar → io.shiftleft.codepropertygraph_3-1.4.12.jar} +0 -0
  39. package/plugins/atom-1.0.0/lib/{io.shiftleft.overflowdb-core_3-1.177.jar → io.shiftleft.overflowdb-core_3-1.180.jar} +0 -0
  40. package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-formats_3-1.180.jar +0 -0
  41. package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-traversal_3-1.180.jar +0 -0
  42. package/plugins/atom-1.0.0/lib/javax.inject.javax.inject-1.jar +0 -0
  43. package/plugins/atom-1.0.0/lib/net.java.dev.jna.jna-5.3.1.jar +0 -0
  44. package/plugins/atom-1.0.0/lib/org.apache.commons.commons-compress-1.22.jar +0 -0
  45. package/plugins/atom-1.0.0/lib/org.apache.xbean.xbean-reflect-3.7.jar +0 -0
  46. package/plugins/atom-1.0.0/lib/org.checkerframework.checker-qual-3.33.0.jar +0 -0
  47. package/plugins/atom-1.0.0/lib/org.codehaus.plexus.plexus-archiver-4.6.3.jar +0 -0
  48. package/plugins/atom-1.0.0/lib/org.codehaus.plexus.plexus-classworlds-2.6.0.jar +0 -0
  49. package/plugins/atom-1.0.0/lib/org.codehaus.plexus.plexus-container-default-2.1.1.jar +0 -0
  50. package/plugins/atom-1.0.0/lib/org.codehaus.plexus.plexus-io-3.4.1.jar +0 -0
  51. package/plugins/atom-1.0.0/lib/org.codehaus.plexus.plexus-utils-3.5.1.jar +0 -0
  52. package/plugins/atom-1.0.0/lib/org.fusesource.jansi.jansi-1.18.jar +0 -0
  53. package/plugins/atom-1.0.0/lib/org.iq80.snappy.snappy-0.4.jar +0 -0
  54. package/plugins/atom-1.0.0/lib/{org.javassist.javassist-3.29.0-GA.jar → org.javassist.javassist-3.29.2-GA.jar} +0 -0
  55. package/plugins/atom-1.0.0/lib/org.jline.jline-reader-3.19.0.jar +0 -0
  56. package/plugins/atom-1.0.0/lib/org.jline.jline-terminal-3.19.0.jar +0 -0
  57. package/plugins/atom-1.0.0/lib/org.jline.jline-terminal-jna-3.19.0.jar +0 -0
  58. package/plugins/atom-1.0.0/lib/org.scala-lang.modules.scala-asm-9.4.0-scala-1.jar +0 -0
  59. package/plugins/atom-1.0.0/lib/org.scala-lang.modules.scala-collection-compat_3-2.8.1.jar +0 -0
  60. package/plugins/atom-1.0.0/lib/org.scala-lang.scala3-compiler_3-3.3.0.jar +0 -0
  61. package/plugins/atom-1.0.0/lib/org.scala-lang.scala3-interfaces-3.3.0.jar +0 -0
  62. package/plugins/atom-1.0.0/lib/org.scala-lang.tasty-core_3-3.3.0.jar +0 -0
  63. package/plugins/atom-1.0.0/lib/org.scala-sbt.compiler-interface-1.3.5.jar +0 -0
  64. package/plugins/atom-1.0.0/lib/org.scala-sbt.util-interface-1.3.0.jar +0 -0
  65. package/plugins/atom-1.0.0/lib/org.tukaani.xz-1.9.jar +0 -0
  66. package/plugins/atom-1.0.0/lib/org.virtuslab.scala-cli.config_2.13-0.2.0.jar +0 -0
  67. package/utils.mjs +1 -1
  68. package/plugins/atom-1.0.0/lib/com.google.errorprone.error_prone_annotations-2.11.0.jar +0 -0
  69. package/plugins/atom-1.0.0/lib/com.google.guava.guava-31.1-jre.jar +0 -0
  70. package/plugins/atom-1.0.0/lib/com.google.j2objc.j2objc-annotations-1.3.jar +0 -0
  71. package/plugins/atom-1.0.0/lib/commons-io.commons-io-2.7.jar +0 -0
  72. package/plugins/atom-1.0.0/lib/io.joern.c2cpg_3-2.0.25.jar +0 -0
  73. package/plugins/atom-1.0.0/lib/io.joern.javaparser-core-3.24.3-SL3.jar +0 -0
  74. package/plugins/atom-1.0.0/lib/io.joern.javaparser-symbol-solver-core-3.24.3-SL3.jar +0 -0
  75. package/plugins/atom-1.0.0/lib/io.joern.javasrc2cpg_3-2.0.25.jar +0 -0
  76. package/plugins/atom-1.0.0/lib/io.joern.jimple2cpg_3-2.0.25.jar +0 -0
  77. package/plugins/atom-1.0.0/lib/io.joern.jssrc2cpg_3-2.0.25.jar +0 -0
  78. package/plugins/atom-1.0.0/lib/io.shiftleft.codepropertygraph-domain-classes_3-1.4.1.jar +0 -0
  79. package/plugins/atom-1.0.0/lib/io.shiftleft.codepropertygraph-protos_3-1.4.1.jar +0 -0
  80. package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-formats_3-1.177.jar +0 -0
  81. package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-traversal_3-1.177.jar +0 -0
  82. package/plugins/atom-1.0.0/lib/org.checkerframework.checker-qual-3.12.0.jar +0 -0
package/astgen.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  } from "fs";
16
16
  import { getAllFiles } from "./utils.mjs";
17
17
 
18
- const ASTGEN_VERSION = "3.1.0";
18
+ const ASTGEN_VERSION = "3.4.0";
19
19
 
20
20
  const babelParserOptions = {
21
21
  sourceType: "unambiguous",
package/index.js CHANGED
@@ -13,17 +13,17 @@ if (!url.startsWith("file://")) {
13
13
  }
14
14
  const dirName = import.meta ? dirname(fileURLToPath(url)) : __dirname;
15
15
 
16
- const LOG4J_CONFIG = join(dirName, "plugins", "log4j2.xml");
17
- const ATOM_HOME = join(dirName, "plugins", "atom-1.0.0");
18
- const APP_LIB_DIR = join(ATOM_HOME, "lib");
16
+ export const LOG4J_CONFIG = join(dirName, "plugins", "log4j2.xml");
17
+ export const ATOM_HOME = join(dirName, "plugins", "atom-1.0.0");
18
+ export const APP_LIB_DIR = join(ATOM_HOME, "lib");
19
19
  const freeMemoryGB = Math.max(Math.floor(freemem() / 1024 / 1024 / 1024), 4);
20
- const JVM_ARGS =
20
+ export const JVM_ARGS =
21
21
  "-XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1";
22
- const JAVA_OPTS = `${process.env.JAVA_OPTS || ""} -Xms${Math.round(
22
+ export const JAVA_OPTS = `${process.env.JAVA_OPTS || ""} -Xms${Math.round(
23
23
  Math.floor(freeMemoryGB / 2)
24
24
  )}G -Xmx${freeMemoryGB}G ${JVM_ARGS}`;
25
- const APP_MAIN_CLASS = "io.appthreat.atom.Atom";
26
- const APP_CLASSPATH = join(
25
+ export const APP_MAIN_CLASS = "io.appthreat.atom.Atom";
26
+ export const APP_CLASSPATH = join(
27
27
  APP_LIB_DIR,
28
28
  "io.appthreat.atom-1.0.0-classpath.jar"
29
29
  );
@@ -35,7 +35,7 @@ if (process.env.JAVA_HOME) {
35
35
  const atomLibs = [APP_CLASSPATH];
36
36
  const argv = process.argv.slice(2);
37
37
 
38
- const executeAtom = (atomArgs) => {
38
+ export const executeAtom = (atomArgs) => {
39
39
  if (!detectJava()) {
40
40
  // If we couldn't detect java but there is a JAVA_HOME defined then
41
41
  // try fixing the PATH manually. Usually required for windows users
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appthreat/atom",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Create atom (⚛) representation for your application, packages and libraries",
5
5
  "exports": "./index.js",
6
6
  "type": "module",
@@ -9,12 +9,12 @@
9
9
  "lint": "eslint *.mjs *.js"
10
10
  },
11
11
  "dependencies": {
12
- "@babel/parser": "^7.22.5",
13
- "typescript": "^5.1.3",
12
+ "@babel/parser": "^7.22.10",
13
+ "typescript": "^5.1.6",
14
14
  "yargs": "^17.7.2"
15
15
  },
16
16
  "devDependencies": {
17
- "eslint": "^8.43.0"
17
+ "eslint": "^8.47.0"
18
18
  },
19
19
  "bin": {
20
20
  "atom": "./index.js",
package/utils.mjs CHANGED
@@ -24,7 +24,7 @@ const IGNORE_DIRS = [
24
24
  ];
25
25
 
26
26
  const IGNORE_FILE_PATTERN = new RegExp(
27
- "(conf|test|spec|\\.d)\\.(js|ts|jsx|tsx)$",
27
+ "(conf|test|spec|min|\\.d)\\.(js|ts|jsx|tsx)$",
28
28
  "i"
29
29
  );
30
30