@abaplint/transpiler 2.3.63 → 2.3.64

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.
@@ -12,11 +12,14 @@ class CompareTranspiler {
12
12
  const sources = node.findDirectExpressions(core_1.Expressions.Source).concat(node.findDirectExpressions(core_1.Expressions.SourceFieldSymbol));
13
13
  if (sources.length === 1) {
14
14
  const s0 = traversal.traverse(sources[0]);
15
- if ((concat.startsWith("NOT ") && concat.endsWith(" IS INITIAL"))
16
- || concat.endsWith("IS NOT INITIAL")) {
15
+ if (concat.startsWith("NOT ") && concat.endsWith(" IS NOT INITIAL")) {
16
+ return new chunk_1.Chunk().appendString("abap.compare.initial(").appendChunk(s0).appendString(") === true");
17
+ }
18
+ else if ((concat.startsWith("NOT ") && concat.endsWith(" IS INITIAL"))
19
+ || concat.endsWith(" IS NOT INITIAL")) {
17
20
  return new chunk_1.Chunk().appendString("abap.compare.initial(").appendChunk(s0).appendString(") === false");
18
21
  }
19
- else if (concat.endsWith("IS INITIAL")) {
22
+ else if (concat.endsWith(" IS INITIAL")) {
20
23
  return new chunk_1.Chunk().appendString("abap.compare.initial(").appendChunk(s0).appendString(")");
21
24
  }
22
25
  if ((concat.startsWith("NOT ") && concat.endsWith(" IS BOUND"))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.3.63",
3
+ "version": "2.3.64",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -28,12 +28,12 @@
28
28
  "author": "abaplint",
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
- "@abaplint/core": "^2.93.99",
31
+ "@abaplint/core": "^2.94.0",
32
32
  "source-map": "^0.7.4"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/chai": "^4.3.4",
36
- "@types/mocha": "^10.0.0",
36
+ "@types/mocha": "^10.0.1",
37
37
  "chai": "^4.3.7",
38
38
  "mocha": "^10.1.0",
39
39
  "source-map-support": "^0.5.21",