@abaplint/transpiler-cli 2.10.40 → 2.10.42
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 +16 -5
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -85388,12 +85388,12 @@ class ReadTableTranspiler {
|
|
|
85388
85388
|
prefix += "const " + id + " = " + s + ";\n";
|
|
85389
85389
|
withKey.push("abap.compare.eq(" + field + ", " + id + ")");
|
|
85390
85390
|
withKeyValue.push(`{key: (i) => {return ${field}}, value: ${id}}`);
|
|
85391
|
-
withKeySimple.push(`"${field.replace("i.", "")}": ${id}`);
|
|
85391
|
+
withKeySimple.push(`"${field.replace("i.", "").replace(/\$/g, "/")}": ${id}`);
|
|
85392
85392
|
}
|
|
85393
85393
|
else {
|
|
85394
85394
|
withKey.push("abap.compare.eq(" + field + ", " + s + ")");
|
|
85395
85395
|
withKeyValue.push(`{key: (i) => {return ${field}}, value: ${s}}`);
|
|
85396
|
-
withKeySimple.push(`"${field.replace("i.", "")}": ${s}`);
|
|
85396
|
+
withKeySimple.push(`"${field.replace("i.", "").replace(/\$/g, "/")}": ${s}`);
|
|
85397
85397
|
}
|
|
85398
85398
|
}
|
|
85399
85399
|
extra.push("withKey: (i) => {return " + withKey.join(" && ") + ";}");
|
|
@@ -89193,24 +89193,35 @@ function getData() {
|
|
|
89193
89193
|
skip: skipThis,
|
|
89194
89194
|
});
|
|
89195
89195
|
}
|
|
89196
|
-
ret += ` ret.push({objectName: "${st.obj.getName()}",
|
|
89196
|
+
ret += ` ret.push({objectName: "${st.obj.getName()}",
|
|
89197
|
+
localClass: "${st.localClass}",
|
|
89198
|
+
methods: ${JSON.stringify(methods)},
|
|
89199
|
+
riskLevel: "${st.riskLevel}",
|
|
89200
|
+
filename: "${st.filename}"});\n`;
|
|
89197
89201
|
}
|
|
89198
89202
|
ret += ` return ret;
|
|
89199
89203
|
}
|
|
89200
89204
|
|
|
89201
89205
|
async function run() {
|
|
89206
|
+
const skipCritical = process.argv[2] === "--skip-critical";
|
|
89207
|
+
const onlyCritical = process.argv[2] === "--only-critical";
|
|
89202
89208
|
await initializeABAP();
|
|
89203
89209
|
for (const st of getData()) {
|
|
89204
89210
|
const imported = await import(st.filename);
|
|
89205
89211
|
const localClass = imported[st.localClass];
|
|
89206
89212
|
if (localClass.class_setup) await localClass.class_setup();
|
|
89207
89213
|
for (const m of st.methods) {
|
|
89214
|
+
const prefix = st.objectName + ": running " + st.localClass + "->" + m.name;
|
|
89208
89215
|
if (m.skip) {
|
|
89209
|
-
console.log(
|
|
89216
|
+
console.log(prefix + ", skipped due to configuration");
|
|
89217
|
+
} else if (skipCritical && st.riskLevel === "CRITICAL") {
|
|
89218
|
+
console.log(prefix + ", skipped due to risk level " + st.riskLevel);
|
|
89219
|
+
} else if (onlyCritical && st.riskLevel !== "CRITICAL") {
|
|
89220
|
+
console.log(prefix + ", skipped due to risk level " + st.riskLevel);
|
|
89210
89221
|
} else {
|
|
89211
89222
|
const test = await (new localClass()).constructor_();
|
|
89212
89223
|
${callSpecial("setup")}
|
|
89213
|
-
console.log(
|
|
89224
|
+
console.log(prefix);
|
|
89214
89225
|
await test.FRIENDS_ACCESS_INSTANCE[m.name]();
|
|
89215
89226
|
${callSpecial("teardown")}
|
|
89216
89227
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.42",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@abaplint/core": "^2.113.108",
|
|
31
|
-
"@abaplint/transpiler": "^2.10.
|
|
31
|
+
"@abaplint/transpiler": "^2.10.42",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
|
-
"@types/node": "^22.14.
|
|
33
|
+
"@types/node": "^22.14.1",
|
|
34
34
|
"@types/progress": "^2.0.7",
|
|
35
35
|
"glob": "=7.2.0",
|
|
36
36
|
"progress": "^2.0.3",
|