@abaplint/transpiler-cli 2.11.31 → 2.11.32

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 +3 -1
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -78407,10 +78407,12 @@ class CompareTranspiler {
78407
78407
  }
78408
78408
  const chain = node.findDirectExpression(core_1.Expressions.MethodCallChain);
78409
78409
  if (chain) {
78410
+ const negated = concat.startsWith("NOT ");
78410
78411
  const name = chain.getFirstToken().getStr();
78411
78412
  if (core_1.BuiltIn.isPredicate(name)) {
78412
78413
  // todo, this is not completely correct if there is a method shadowing the name
78413
- return new chunk_1.Chunk().appendString(`abap.compare.eq(` + traversal.traverse(chain).getCode() + `, abap.builtin.abap_true)`);
78414
+ const operator = negated ? 'ne' : 'eq';
78415
+ return new chunk_1.Chunk().appendString(`abap.compare.${operator}(` + traversal.traverse(chain).getCode() + `, abap.builtin.abap_true)`);
78414
78416
  }
78415
78417
  else {
78416
78418
  return new chunk_1.Chunk().appendString(pre + `abap.compare.initial(${traversal.traverse(chain).getCode()}) === false`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.31",
3
+ "version": "2.11.32",
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.174",
31
- "@abaplint/transpiler": "^2.11.31",
31
+ "@abaplint/transpiler": "^2.11.32",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.2.1",
34
34
  "@types/progress": "^2.0.7",