@abaplint/transpiler-cli 2.12.16 → 2.12.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.
- package/build/bundle.js +15 -3
- package/package.json +4 -4
package/build/bundle.js
CHANGED
|
@@ -53898,7 +53898,7 @@ class Registry {
|
|
|
53898
53898
|
}
|
|
53899
53899
|
static abaplintVersion() {
|
|
53900
53900
|
// magic, see build script "version.sh"
|
|
53901
|
-
return "2.114.
|
|
53901
|
+
return "2.114.8";
|
|
53902
53902
|
}
|
|
53903
53903
|
getDDICReferences() {
|
|
53904
53904
|
return this.ddicReferences;
|
|
@@ -56892,6 +56892,7 @@ class CheckSubrcConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
|
56892
56892
|
this.updateDatabase = true;
|
|
56893
56893
|
this.insertDatabase = true;
|
|
56894
56894
|
this.modifyDatabase = true;
|
|
56895
|
+
this.deleteDatabase = true;
|
|
56895
56896
|
this.readTable = true;
|
|
56896
56897
|
this.assign = true;
|
|
56897
56898
|
this.find = true;
|
|
@@ -56986,6 +56987,13 @@ FIND statement with MATCH COUNT is considered okay if subrc is not checked`,
|
|
|
56986
56987
|
const fix = this.buildFix(file, statement);
|
|
56987
56988
|
issues.push(issue_1.Issue.atStatement(file, statement, message, this.getMetadata().key, this.conf.severity, undefined, [fix]));
|
|
56988
56989
|
}
|
|
56990
|
+
else if (config.deleteDatabase === true
|
|
56991
|
+
&& statement.get() instanceof Statements.DeleteDatabase
|
|
56992
|
+
&& this.isChecked(i, statements) === false
|
|
56993
|
+
&& this.checksDbcnt(i, statements) === false) {
|
|
56994
|
+
const fix = this.buildFix(file, statement);
|
|
56995
|
+
issues.push(issue_1.Issue.atStatement(file, statement, message, this.getMetadata().key, this.conf.severity, undefined, [fix]));
|
|
56996
|
+
}
|
|
56989
56997
|
else if (config.insertDatabase === true
|
|
56990
56998
|
&& statement.get() instanceof Statements.InsertDatabase
|
|
56991
56999
|
&& this.isChecked(i, statements) === false
|
|
@@ -73433,7 +73441,7 @@ class SQLEscapeHostVariables extends _abap_rule_1.ABAPRule {
|
|
|
73433
73441
|
return {
|
|
73434
73442
|
key: "sql_escape_host_variables",
|
|
73435
73443
|
title: "Escape SQL host variables",
|
|
73436
|
-
shortDescription: `Escape SQL host variables, from 740sp05`,
|
|
73444
|
+
shortDescription: `Escape SQL host variables, from 740sp05 and in open-abap`,
|
|
73437
73445
|
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-obsolete-language-elements`,
|
|
73438
73446
|
tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.Styleguide, _irule_1.RuleTag.Quickfix, _irule_1.RuleTag.Syntax],
|
|
73439
73447
|
badExample: `SELECT * FROM tab INTO TABLE res WHERE field = val.`,
|
|
@@ -73453,7 +73461,8 @@ class SQLEscapeHostVariables extends _abap_rule_1.ABAPRule {
|
|
|
73453
73461
|
return [];
|
|
73454
73462
|
}
|
|
73455
73463
|
if (this.reg.getConfig().getVersion() < version_1.Version.v740sp02
|
|
73456
|
-
&& this.reg.getConfig().getVersion() !== version_1.Version.Cloud
|
|
73464
|
+
&& this.reg.getConfig().getVersion() !== version_1.Version.Cloud
|
|
73465
|
+
&& this.reg.getConfig().getVersion() !== version_1.Version.OpenABAP) {
|
|
73457
73466
|
return [];
|
|
73458
73467
|
}
|
|
73459
73468
|
for (const s of file.getStatements()) {
|
|
@@ -78810,6 +78819,9 @@ class CallTransformationOptionsTranspiler {
|
|
|
78810
78819
|
const res = new chunk_1.Chunk().appendString("{");
|
|
78811
78820
|
for (const c of node.getChildren()) {
|
|
78812
78821
|
if (c.get() instanceof abaplint.Expressions.Field || c.get() instanceof abaplint.Expressions.Integer) {
|
|
78822
|
+
if (res.getCode() !== "{") {
|
|
78823
|
+
res.appendString(",");
|
|
78824
|
+
}
|
|
78813
78825
|
res.appendString(c.concatTokens());
|
|
78814
78826
|
}
|
|
78815
78827
|
else if (c.get() instanceof abaplint.Expressions.Source) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.18",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.114.
|
|
31
|
-
"@abaplint/transpiler": "^2.12.
|
|
30
|
+
"@abaplint/core": "^2.114.8",
|
|
31
|
+
"@abaplint/transpiler": "^2.12.18",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
|
-
"@types/node": "^24.10.
|
|
33
|
+
"@types/node": "^24.10.2",
|
|
34
34
|
"@types/progress": "^2.0.7",
|
|
35
35
|
"glob": "=7.2.0",
|
|
36
36
|
"progress": "^2.0.3",
|