@abaplint/transpiler-cli 2.7.159 → 2.7.161

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 +9 -2
  2. package/package.json +4 -4
package/build/bundle.js CHANGED
@@ -21267,6 +21267,7 @@ class TypeUtils {
21267
21267
  }
21268
21268
  else if (type instanceof basic_1.StringType
21269
21269
  || type instanceof basic_1.AnyType
21270
+ || type instanceof basic_1.DataType
21270
21271
  || type instanceof basic_1.CharacterType
21271
21272
  || type instanceof basic_1.SimpleType
21272
21273
  || type instanceof cgeneric_type_1.CGenericType
@@ -25223,7 +25224,7 @@ class NewObject {
25223
25224
  new method_parameters_1.MethodParameters().checkExporting(parameters, scope, method, filename);
25224
25225
  }
25225
25226
  else if (requiredParameters.length > 0) {
25226
- throw new Error(`constructor parameter "${requiredParameters[0].getName()}" must be supplied` + name);
25227
+ throw new Error(`constructor parameter "${requiredParameters[0].getName()}" must be supplied, ` + name);
25227
25228
  }
25228
25229
  }
25229
25230
  defaultImportingType(method) {
@@ -28344,6 +28345,7 @@ class CreateObject {
28344
28345
  }
28345
28346
  else if (!(found instanceof basic_1.ObjectReferenceType)
28346
28347
  && !(found instanceof basic_1.AnyType)
28348
+ && !(found instanceof basic_1.DataType)
28347
28349
  && !(found instanceof basic_1.GenericObjectReferenceType)) {
28348
28350
  throw new Error("Target must be an object reference, " + t.concatTokens());
28349
28351
  }
@@ -50244,7 +50246,7 @@ class Registry {
50244
50246
  }
50245
50247
  static abaplintVersion() {
50246
50248
  // magic, see build script "version.sh"
50247
- return "2.105.20";
50249
+ return "2.105.21";
50248
50250
  }
50249
50251
  getDDICReferences() {
50250
50252
  return this.ddicReferences;
@@ -61047,6 +61049,11 @@ class KeepSingleParameterCallsOnOneLine extends _abap_rule_1.ABAPRule {
61047
61049
  }
61048
61050
  isSingleParameter(c) {
61049
61051
  if (c.findDirectExpression(Expressions.Source)) {
61052
+ for (const params of c.findAllExpressions(Expressions.ParameterListS)) {
61053
+ if (params.getChildren().length > 1) {
61054
+ return false;
61055
+ }
61056
+ }
61050
61057
  return true;
61051
61058
  }
61052
61059
  const list = c.findDirectExpression(Expressions.ParameterListS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.159",
3
+ "version": "2.7.161",
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.159",
29
+ "@abaplint/transpiler": "^2.7.161",
30
30
  "@types/glob": "^8.1.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.7",
33
- "@types/node": "^20.11.19",
34
- "@abaplint/core": "^2.105.20",
33
+ "@types/node": "^20.11.20",
34
+ "@abaplint/core": "^2.105.21",
35
35
  "progress": "^2.0.3",
36
36
  "webpack": "^5.90.3",
37
37
  "webpack-cli": "^5.1.4",