@abaplint/transpiler-cli 2.7.139 → 2.7.140

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 +13 -4
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -21240,6 +21240,9 @@ class TypeUtils {
21240
21240
  }
21241
21241
  return true;
21242
21242
  }
21243
+ else if (type instanceof basic_1.TableType && type.isWithHeader()) {
21244
+ return this.isCharLikeStrict(type.getRowType());
21245
+ }
21243
21246
  else if (type instanceof basic_1.StringType
21244
21247
  || type instanceof basic_1.AnyType
21245
21248
  || type instanceof basic_1.CharacterType
@@ -21309,6 +21312,9 @@ class TypeUtils {
21309
21312
  }
21310
21313
  return true;
21311
21314
  }
21315
+ else if (type instanceof basic_1.TableType && type.isWithHeader()) {
21316
+ return this.isHexLike(type.getRowType());
21317
+ }
21312
21318
  else if (type instanceof basic_1.XStringType
21313
21319
  || type instanceof basic_1.HexType
21314
21320
  || type instanceof basic_1.VoidType
@@ -27952,7 +27958,7 @@ class Concatenate {
27952
27958
  }
27953
27959
  else if (target) {
27954
27960
  const type = new target_1.Target().runSyntax(target, scope, filename);
27955
- const compatible = byteMode ? new _type_utils_1.TypeUtils(scope).isHexLike(type) : new _type_utils_1.TypeUtils(scope).isCharLike(type);
27961
+ const compatible = byteMode ? new _type_utils_1.TypeUtils(scope).isHexLike(type) : new _type_utils_1.TypeUtils(scope).isCharLikeStrict(type);
27956
27962
  if (compatible === false) {
27957
27963
  throw new Error("Target type not compatible");
27958
27964
  }
@@ -27966,7 +27972,7 @@ class Concatenate {
27966
27972
  linesMode = false;
27967
27973
  continue;
27968
27974
  }
27969
- const compatible = byteMode ? new _type_utils_1.TypeUtils(scope).isHexLike(type) : new _type_utils_1.TypeUtils(scope).isCharLike(type);
27975
+ const compatible = byteMode ? new _type_utils_1.TypeUtils(scope).isHexLike(type) : new _type_utils_1.TypeUtils(scope).isCharLikeStrict(type);
27970
27976
  if (compatible === false) {
27971
27977
  throw new Error("Source type not compatible");
27972
27978
  }
@@ -28313,11 +28319,14 @@ class CreateObject {
28313
28319
  }
28314
28320
  const source = p.findDirectExpression(Expressions.Source);
28315
28321
  const sourceType = new source_1.Source().runSyntax(source, scope, filename);
28322
+ const calculated = (source === null || source === void 0 ? void 0 : source.findFirstExpression(Expressions.MethodCallChain)) !== undefined
28323
+ || (source === null || source === void 0 ? void 0 : source.findFirstExpression(Expressions.StringTemplate)) !== undefined
28324
+ || (source === null || source === void 0 ? void 0 : source.findFirstExpression(Expressions.ArithOperator)) !== undefined;
28316
28325
  const found = allImporting === null || allImporting === void 0 ? void 0 : allImporting.find(p => p.getName().toUpperCase() === name);
28317
28326
  if (found === undefined) {
28318
28327
  throw new Error(`constructor parameter "${name}" does not exist`);
28319
28328
  }
28320
- else if (new _type_utils_1.TypeUtils(scope).isAssignableStrict(sourceType, found.getType()) === false) {
28329
+ else if (new _type_utils_1.TypeUtils(scope).isAssignableStrict(sourceType, found.getType(), calculated) === false) {
28321
28330
  throw new Error(`constructor parameter "${name}" type not compatible`);
28322
28331
  }
28323
28332
  requiredImporting.delete(name);
@@ -50055,7 +50064,7 @@ class Registry {
50055
50064
  }
50056
50065
  static abaplintVersion() {
50057
50066
  // magic, see build script "version.sh"
50058
- return "2.105.6";
50067
+ return "2.105.8";
50059
50068
  }
50060
50069
  getDDICReferences() {
50061
50070
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.139",
3
+ "version": "2.7.140",
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.139",
29
+ "@abaplint/transpiler": "^2.7.140",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.7",
33
33
  "@types/node": "^20.10.6",
34
- "@abaplint/core": "^2.105.6",
34
+ "@abaplint/core": "^2.105.8",
35
35
  "progress": "^2.0.3",
36
36
  "webpack": "^5.89.0",
37
37
  "webpack-cli": "^5.1.4",