@abaplint/transpiler-cli 2.7.96 → 2.7.97
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 +24 -6
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -3692,7 +3692,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
|
|
|
3692
3692
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
3693
3693
|
class FindType extends combi_1.Expression {
|
|
3694
3694
|
getRunnable() {
|
|
3695
|
-
return (0, combi_1.opt)((0, combi_1.alt)("REGEX", "SUBSTRING", (0, combi_1.ver)(version_1.Version.v755, "PCRE")));
|
|
3695
|
+
return (0, combi_1.opt)((0, combi_1.alt)("REGEX", "SUBSTRING", (0, combi_1.ver)(version_1.Version.v755, "PCRE", version_1.Version.OpenABAP)));
|
|
3696
3696
|
}
|
|
3697
3697
|
}
|
|
3698
3698
|
exports.FindType = FindType;
|
|
@@ -13221,7 +13221,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
|
|
|
13221
13221
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
13222
13222
|
class OpenCursor {
|
|
13223
13223
|
getMatcher() {
|
|
13224
|
-
const ret = (0, combi_1.seq)("OPEN CURSOR", (0, combi_1.optPrio)("WITH HOLD"), expressions_1.SQLTarget, "FOR", expressions_1.Select
|
|
13224
|
+
const ret = (0, combi_1.seq)("OPEN CURSOR", (0, combi_1.optPrio)("WITH HOLD"), expressions_1.SQLTarget, "FOR", expressions_1.Select);
|
|
13225
13225
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
13226
13226
|
}
|
|
13227
13227
|
}
|
|
@@ -47947,7 +47947,7 @@ class Registry {
|
|
|
47947
47947
|
}
|
|
47948
47948
|
static abaplintVersion() {
|
|
47949
47949
|
// magic, see build script "version.sh"
|
|
47950
|
-
return "2.102.
|
|
47950
|
+
return "2.102.41";
|
|
47951
47951
|
}
|
|
47952
47952
|
getDDICReferences() {
|
|
47953
47953
|
return this.ddicReferences;
|
|
@@ -76968,6 +76968,15 @@ class InsertDatabaseTranspiler {
|
|
|
76968
76968
|
const tvalues = traversal.traverse(fromTable);
|
|
76969
76969
|
options.push(`"table": ` + tvalues.getCode());
|
|
76970
76970
|
}
|
|
76971
|
+
const connection = node.findDirectExpression(abaplint.Expressions.DatabaseConnection);
|
|
76972
|
+
if (connection) {
|
|
76973
|
+
let con = connection.getLastToken().getStr().toUpperCase();
|
|
76974
|
+
if (con === "DEFAULT_") {
|
|
76975
|
+
// todo, workaround for replacing of keywords,
|
|
76976
|
+
con = "DEFAULT";
|
|
76977
|
+
}
|
|
76978
|
+
options.push(`"connection": "${con}"`);
|
|
76979
|
+
}
|
|
76971
76980
|
return new chunk_1.Chunk(`await abap.statements.insertDatabase(${table.getCode()}, {${options.join(", ")}});`);
|
|
76972
76981
|
}
|
|
76973
76982
|
}
|
|
@@ -81703,15 +81712,24 @@ globalThis.abap = new runtime.ABAP();\n`;
|
|
|
81703
81712
|
export async function initializeABAP() {\n`;
|
|
81704
81713
|
ret += ` const sqlite = [];\n`;
|
|
81705
81714
|
for (const i of dbSetup.schemas.sqlite) {
|
|
81706
|
-
ret += `sqlite.push(\`${i}\`);\n`;
|
|
81715
|
+
ret += ` sqlite.push(\`${i}\`);\n`;
|
|
81707
81716
|
}
|
|
81708
81717
|
ret += ` const hdb = \`${dbSetup.schemas.hdb}\`;\n`;
|
|
81709
|
-
ret += ` const pg =
|
|
81710
|
-
|
|
81718
|
+
ret += ` const pg = [];\n`;
|
|
81719
|
+
for (const i of dbSetup.schemas.pg) {
|
|
81720
|
+
ret += ` pg.push(\`${i}\`);\n`;
|
|
81721
|
+
}
|
|
81722
|
+
ret += ` const snowflake = [];\n`;
|
|
81723
|
+
for (const i of dbSetup.schemas.snowflake) {
|
|
81724
|
+
ret += ` snowflake.push(\`${i}\`);\n`;
|
|
81725
|
+
}
|
|
81726
|
+
ret += ` const schemas = {sqlite, hdb, pg, snowflake};\n`;
|
|
81727
|
+
ret += `\n`;
|
|
81711
81728
|
ret += ` const insert = [];\n`;
|
|
81712
81729
|
for (const i of dbSetup.insert) {
|
|
81713
81730
|
ret += ` insert.push(\`${i}\`);\n`;
|
|
81714
81731
|
}
|
|
81732
|
+
ret += `\n`;
|
|
81715
81733
|
if (extraSetup === undefined) {
|
|
81716
81734
|
ret += `// no setup logic specified in config\n`;
|
|
81717
81735
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.97",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.97",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|
|
33
33
|
"@types/node": "^20.6.0",
|
|
34
|
-
"@abaplint/core": "^2.102.
|
|
34
|
+
"@abaplint/core": "^2.102.41",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
36
|
"webpack": "^5.88.2",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|