@abaplint/core 2.106.4 → 2.106.5

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.
@@ -19,7 +19,8 @@ class InsertInternal {
19
19
  if (!(targetType instanceof basic_1.TableType)
20
20
  && !(targetType instanceof basic_1.VoidType)
21
21
  && !(targetType instanceof basic_1.AnyType)
22
- && !(targetType instanceof basic_1.UnknownType)) {
22
+ && !(targetType instanceof basic_1.UnknownType)
23
+ && targetType !== undefined) {
23
24
  throw new Error("INSERT target must be a table");
24
25
  }
25
26
  else if (targetType instanceof basic_1.TableType
@@ -31,6 +32,13 @@ class InsertInternal {
31
32
  source = node.findDirectExpression(Expressions.Source);
32
33
  }
33
34
  const sourceType = source ? new source_1.Source().runSyntax(source, scope, filename, targetType) : targetType;
35
+ if (targetType === undefined
36
+ && !(sourceType instanceof basic_1.TableType)
37
+ && !(sourceType instanceof basic_1.VoidType)
38
+ && !(sourceType instanceof basic_1.AnyType)
39
+ && !(sourceType instanceof basic_1.UnknownType)) {
40
+ throw new Error("INSERT target must be a table");
41
+ }
34
42
  const afterAssigning = node.findExpressionAfterToken("ASSIGNING");
35
43
  if ((afterAssigning === null || afterAssigning === void 0 ? void 0 : afterAssigning.get()) instanceof Expressions.FSTarget) {
36
44
  const inlinefs = afterAssigning === null || afterAssigning === void 0 ? void 0 : afterAssigning.findDirectExpression(Expressions.InlineFS);
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.106.4";
68
+ return "2.106.5";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.106.4",
3
+ "version": "2.106.5",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",