@appthreat/atom 0.7.5 → 0.8.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/index.js +8 -32
- package/package.json +1 -1
- package/plugins/atom-1.0.0/bin/atom +1 -1
- package/plugins/atom-1.0.0/bin/atom.bat +1 -1
- package/plugins/atom-1.0.0/lib/io.appthreat.atom-1.0.0-classpath.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.appthreat.atom-1.0.0.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.c2cpg_3-1.2.14.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.dataflowengineoss_3-1.2.14.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.javasrc2cpg_3-1.2.14.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.jimple2cpg_3-1.2.14.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.jssrc2cpg_3-1.2.14.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.pysrc2cpg_3-1.2.14.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.semanticcpg_3-1.2.14.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.x2cpg_3-1.2.14.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.codepropertygraph-domain-classes_3-1.3.612.jar +0 -0
- package/plugins/atom-1.0.0/lib/{io.shiftleft.codepropertygraph-protos_3-1.3.600.jar → io.shiftleft.codepropertygraph-protos_3-1.3.612.jar} +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.codepropertygraph_3-1.3.612.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-core_3-1.177.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-formats_3-1.177.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-traversal_3-1.177.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.commands-3.11.0.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.contenttype-3.9.0.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.filebuffers-3.8.0.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.filesystem-1.10.0.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.jobs-3.14.0.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.resources-3.19.0.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.runtime-3.27.0.jar +0 -0
- package/plugins/atom-1.0.0/lib/{org.eclipse.platform.org.eclipse.equinox.common-3.17.0.jar → org.eclipse.platform.org.eclipse.equinox.common-3.18.0.jar} +0 -0
- package/plugins/atom-1.0.0/lib/{org.eclipse.platform.org.eclipse.equinox.preferences-3.10.100.jar → org.eclipse.platform.org.eclipse.equinox.preferences-3.10.200.jar} +0 -0
- package/plugins/atom-1.0.0/lib/{org.eclipse.platform.org.eclipse.osgi-3.18.300.jar → org.eclipse.platform.org.eclipse.osgi-3.18.400.jar} +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.text-3.13.0.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.c2cpg_3-1.1.1742.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.dataflowengineoss_3-1.1.1742.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.javasrc2cpg_3-1.1.1742.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.jimple2cpg_3-1.1.1742.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.jssrc2cpg_3-1.1.1742.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.pysrc2cpg_3-1.1.1742.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.semanticcpg_3-1.1.1742.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.joern.x2cpg_3-1.1.1742.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.codepropertygraph-domain-classes_3-1.3.600.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.codepropertygraph_3-1.3.600.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-core-1.171.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-formats_3-1.171.jar +0 -0
- package/plugins/atom-1.0.0/lib/io.shiftleft.overflowdb-traversal_3-1.171.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.commands-3.10.300.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.contenttype-3.8.200.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.filebuffers-3.7.200.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.filesystem-1.9.500.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.jobs-3.13.200.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.resources-3.18.200.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.runtime-3.26.100.jar +0 -0
- package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.text-3.12.300.jar +0 -0
package/index.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const os = require("os");
|
|
4
|
-
const fs = require("fs");
|
|
5
4
|
const path = require("path");
|
|
6
5
|
const { spawnSync } = require("child_process");
|
|
7
6
|
const isWin = require("os").platform() === "win32";
|
|
8
7
|
const LOG4J_CONFIG = path.join(__dirname, "plugins", "log4j2.xml");
|
|
9
8
|
const ATOM_HOME = path.join(__dirname, "plugins", "atom-1.0.0");
|
|
10
|
-
const APP_LIB_DIR = path.join(
|
|
9
|
+
const APP_LIB_DIR = path.join(ATOM_HOME, "lib");
|
|
11
10
|
const freeMemoryGB = Math.floor(os.freemem() / 1024 / 1024 / 1024);
|
|
12
11
|
const JAVA_OPTS = `${
|
|
13
12
|
process.env.JAVA_OPTS || ""
|
|
14
13
|
} -Xms${freeMemoryGB}G -Xmx${freeMemoryGB}G`;
|
|
15
14
|
const APP_MAIN_CLASS = "io.appthreat.atom.Atom";
|
|
16
|
-
let APP_CLASSPATH = path.join(
|
|
15
|
+
let APP_CLASSPATH = path.join(
|
|
16
|
+
APP_LIB_DIR,
|
|
17
|
+
"io.appthreat.atom-1.0.0-classpath.jar"
|
|
18
|
+
);
|
|
17
19
|
let JAVACMD = "java";
|
|
18
20
|
if (process.env.JAVA_HOME) {
|
|
19
21
|
JAVACMD = path.join(
|
|
@@ -22,35 +24,8 @@ if (process.env.JAVA_HOME) {
|
|
|
22
24
|
"java" + (isWin ? ".exe" : "")
|
|
23
25
|
);
|
|
24
26
|
}
|
|
25
|
-
const getAllFiles = (dir, extn, files, result, regex) => {
|
|
26
|
-
regex = regex || new RegExp(`\\.jar$`);
|
|
27
|
-
files = files || fs.readdirSync(dir);
|
|
28
|
-
for (let i = 0; i < files.length; i++) {
|
|
29
|
-
let file = path.join(dir, files[i]);
|
|
30
|
-
if (fs.statSync(file).isDirectory()) {
|
|
31
|
-
// Ignore directories
|
|
32
|
-
const dirName = path.basename(file);
|
|
33
|
-
if (
|
|
34
|
-
dirName.startsWith(".") ||
|
|
35
|
-
IGNORE_DIRS.includes(dirName.toLowerCase())
|
|
36
|
-
) {
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
try {
|
|
40
|
-
result = getAllFiles(file, extn, fs.readdirSync(file), result, regex);
|
|
41
|
-
} catch (error) {
|
|
42
|
-
continue;
|
|
43
|
-
}
|
|
44
|
-
} else {
|
|
45
|
-
if (regex.test(file) && !file.includes("io.appthreat.atom-1.0.0.jar")) {
|
|
46
|
-
result.push(file);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return result;
|
|
51
|
-
};
|
|
52
27
|
|
|
53
|
-
const atomLibs =
|
|
28
|
+
const atomLibs = [APP_CLASSPATH];
|
|
54
29
|
const argv = process.argv.slice(2);
|
|
55
30
|
const args = [
|
|
56
31
|
"-cp",
|
|
@@ -61,7 +36,8 @@ const args = [
|
|
|
61
36
|
];
|
|
62
37
|
const env = {
|
|
63
38
|
...process.env,
|
|
64
|
-
JAVA_OPTS
|
|
39
|
+
JAVA_OPTS,
|
|
40
|
+
ATOM_HOME
|
|
65
41
|
};
|
|
66
42
|
const cwd = process.env.ATOM_CWD || process.cwd();
|
|
67
43
|
spawnSync(JAVACMD, args, {
|
package/package.json
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.0.0
|
|
363
|
+
declare -r app_classpath="$lib_dir/io.appthreat.atom-1.0.0-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.0.0
|
|
43
|
+
set "APP_CLASSPATH=%APP_LIB_DIR%\io.appthreat.atom-1.0.0-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
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
index b9ac633..f96f5b2 100644
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
index b3616a2..307458a 100644
|
|
|
Binary file
|
|
index f491de9..81a4fe3 100644
|
|
|
Binary file
|
|
index 0b9bbdd..521df3c 100644
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.contenttype-3.8.200.jar
DELETED
|
Binary file
|
package/plugins/atom-1.0.0/lib/org.eclipse.platform.org.eclipse.core.filebuffers-3.7.200.jar
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|