@abaplint/transpiler-cli 2.10.40 → 2.10.41

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.
Files changed (2) hide show
  1. package/build/bundle.js +14 -3
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -89193,24 +89193,35 @@ function getData() {
89193
89193
  skip: skipThis,
89194
89194
  });
89195
89195
  }
89196
- ret += ` ret.push({objectName: "${st.obj.getName()}", localClass: "${st.localClass}", methods: ${JSON.stringify(methods)}, filename: "${st.filename}"});\n`;
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(st.objectName + ": running " + st.localClass + "->" + m.name + ", skipped");
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(st.objectName + ": running " + st.localClass + "->" + m.name);
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.40",
3
+ "version": "2.10.41",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.113.108",
31
- "@abaplint/transpiler": "^2.10.40",
31
+ "@abaplint/transpiler": "^2.10.41",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^22.14.0",
34
34
  "@types/progress": "^2.0.7",