@abaplint/cli 2.105.6 → 2.105.7

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/cli.js +7 -4
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -29003,7 +29003,7 @@ class Concatenate {
29003
29003
  }
29004
29004
  else if (target) {
29005
29005
  const type = new target_1.Target().runSyntax(target, scope, filename);
29006
- const compatible = byteMode ? new _type_utils_1.TypeUtils(scope).isHexLike(type) : new _type_utils_1.TypeUtils(scope).isCharLike(type);
29006
+ const compatible = byteMode ? new _type_utils_1.TypeUtils(scope).isHexLike(type) : new _type_utils_1.TypeUtils(scope).isCharLikeStrict(type);
29007
29007
  if (compatible === false) {
29008
29008
  throw new Error("Target type not compatible");
29009
29009
  }
@@ -29017,7 +29017,7 @@ class Concatenate {
29017
29017
  linesMode = false;
29018
29018
  continue;
29019
29019
  }
29020
- const compatible = byteMode ? new _type_utils_1.TypeUtils(scope).isHexLike(type) : new _type_utils_1.TypeUtils(scope).isCharLike(type);
29020
+ const compatible = byteMode ? new _type_utils_1.TypeUtils(scope).isHexLike(type) : new _type_utils_1.TypeUtils(scope).isCharLikeStrict(type);
29021
29021
  if (compatible === false) {
29022
29022
  throw new Error("Source type not compatible");
29023
29023
  }
@@ -29364,11 +29364,14 @@ class CreateObject {
29364
29364
  }
29365
29365
  const source = p.findDirectExpression(Expressions.Source);
29366
29366
  const sourceType = new source_1.Source().runSyntax(source, scope, filename);
29367
+ const calculated = (source === null || source === void 0 ? void 0 : source.findFirstExpression(Expressions.MethodCallChain)) !== undefined
29368
+ || (source === null || source === void 0 ? void 0 : source.findFirstExpression(Expressions.StringTemplate)) !== undefined
29369
+ || (source === null || source === void 0 ? void 0 : source.findFirstExpression(Expressions.ArithOperator)) !== undefined;
29367
29370
  const found = allImporting === null || allImporting === void 0 ? void 0 : allImporting.find(p => p.getName().toUpperCase() === name);
29368
29371
  if (found === undefined) {
29369
29372
  throw new Error(`constructor parameter "${name}" does not exist`);
29370
29373
  }
29371
- else if (new _type_utils_1.TypeUtils(scope).isAssignableStrict(sourceType, found.getType()) === false) {
29374
+ else if (new _type_utils_1.TypeUtils(scope).isAssignableStrict(sourceType, found.getType(), calculated) === false) {
29372
29375
  throw new Error(`constructor parameter "${name}" type not compatible`);
29373
29376
  }
29374
29377
  requiredImporting.delete(name);
@@ -51106,7 +51109,7 @@ class Registry {
51106
51109
  }
51107
51110
  static abaplintVersion() {
51108
51111
  // magic, see build script "version.sh"
51109
- return "2.105.6";
51112
+ return "2.105.7";
51110
51113
  }
51111
51114
  getDDICReferences() {
51112
51115
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.6",
3
+ "version": "2.105.7",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.105.6",
41
+ "@abaplint/core": "^2.105.7",
42
42
  "@types/chai": "^4.3.11",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.6",
46
- "@types/node": "^20.10.5",
46
+ "@types/node": "^20.10.6",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.3.10",
49
49
  "chalk": "^5.3.0",