@appthreat/atom 2.2.1 → 2.2.3
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/package.json +3 -3
- package/packages/atom-parsetools/phpastgen.js +17 -2
- package/packages/atom-parsetools/rbastgen.js +16 -1
- package/plugins/bin/atom +1 -1
- package/plugins/bin/atom.bat +1 -1
- package/plugins/lib/io.appthreat.atom-2.2.3-classpath.jar +0 -0
- package/plugins/lib/{io.appthreat.atom-2.2.1.jar → io.appthreat.atom-2.2.3.jar} +0 -0
- package/plugins/lib/io.appthreat.atom-2.2.1-classpath.jar +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appthreat/atom",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "Create atom (⚛) representation for your application, packages and libraries",
|
|
5
5
|
"exports": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"lint": "eslint *.mjs *.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@appthreat/atom-common": "
|
|
13
|
-
"@appthreat/atom-parsetools": "
|
|
12
|
+
"@appthreat/atom-common": "*",
|
|
13
|
+
"@appthreat/atom-parsetools": "*"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"eslint": "8.57.0"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
import { existsSync } from "node:fs";
|
|
3
4
|
import { dirname, join } from "node:path";
|
|
4
5
|
import { spawnSync } from "node:child_process";
|
|
5
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -11,9 +12,23 @@ if (!url.startsWith("file://")) {
|
|
|
11
12
|
}
|
|
12
13
|
const dirName = import.meta ? dirname(fileURLToPath(url)) : __dirname;
|
|
13
14
|
export const PLUGINS_HOME = join(dirName, "plugins");
|
|
14
|
-
const
|
|
15
|
+
export const PARENT_NODE_PLUGINS_HOME = join(
|
|
16
|
+
dirName,
|
|
17
|
+
"..",
|
|
18
|
+
"..",
|
|
19
|
+
"node_modules",
|
|
20
|
+
"@appthreat",
|
|
21
|
+
"atom-parsetools",
|
|
22
|
+
"plugins"
|
|
23
|
+
);
|
|
24
|
+
let PHP_PARSER_BIN =
|
|
15
25
|
process.env.PHP_PARSER_BIN || join(PLUGINS_HOME, "bin", "php-parse");
|
|
16
|
-
|
|
26
|
+
if (
|
|
27
|
+
!existsSync(PHP_PARSER_BIN) &&
|
|
28
|
+
existsSync(join(PARENT_NODE_PLUGINS_HOME, "bin", "php-parse"))
|
|
29
|
+
) {
|
|
30
|
+
PHP_PARSER_BIN = join(PARENT_NODE_PLUGINS_HOME, "bin", "php-parse");
|
|
31
|
+
}
|
|
17
32
|
function main(argvs) {
|
|
18
33
|
if (!detectPhp()) {
|
|
19
34
|
console.warn("PHP is not installed!");
|
|
@@ -12,8 +12,23 @@ if (!url.startsWith("file://")) {
|
|
|
12
12
|
}
|
|
13
13
|
const dirName = import.meta ? dirname(fileURLToPath(url)) : __dirname;
|
|
14
14
|
export const PLUGINS_HOME = join(dirName, "plugins");
|
|
15
|
-
const
|
|
15
|
+
export const PARENT_NODE_PLUGINS_HOME = join(
|
|
16
|
+
dirName,
|
|
17
|
+
"..",
|
|
18
|
+
"..",
|
|
19
|
+
"node_modules",
|
|
20
|
+
"@appthreat",
|
|
21
|
+
"atom-parsetools",
|
|
22
|
+
"plugins"
|
|
23
|
+
);
|
|
24
|
+
let RUBY_ASTGEN_BIN =
|
|
16
25
|
process.env.RUBY_ASTGEN_BIN || join(PLUGINS_HOME, "bin", "ruby_ast_gen");
|
|
26
|
+
if (
|
|
27
|
+
!existsSync(RUBY_ASTGEN_BIN) &&
|
|
28
|
+
existsSync(join(PARENT_NODE_PLUGINS_HOME, "bin", "ruby_ast_gen"))
|
|
29
|
+
) {
|
|
30
|
+
RUBY_ASTGEN_BIN = join(PARENT_NODE_PLUGINS_HOME, "bin", "ruby_ast_gen");
|
|
31
|
+
}
|
|
17
32
|
// Ruby version needed
|
|
18
33
|
const RUBY_VERSION_NEEDED = "3.4.3";
|
|
19
34
|
function main(argvs) {
|
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.2.
|
|
363
|
+
declare -r app_classpath="$lib_dir/io.appthreat.atom-2.2.3-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)
|
package/plugins/bin/atom.bat
CHANGED
|
@@ -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.2.
|
|
43
|
+
set "APP_CLASSPATH=%APP_LIB_DIR%\io.appthreat.atom-2.2.3-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
|
|
index a5ae0b2..c44ef6e 100644
|
|
|
Binary file
|
|
Binary file
|