@abaplint/runtime 2.1.38 → 2.1.41
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.
package/build/src/compare/eq.js
CHANGED
|
@@ -100,6 +100,14 @@ function eq(left, right) {
|
|
|
100
100
|
r = Number(r);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
+
if (right instanceof types_1.Numc && left instanceof types_1.Integer) {
|
|
104
|
+
l = left.get();
|
|
105
|
+
r = parseInt(right.get(), 10);
|
|
106
|
+
}
|
|
107
|
+
else if (right instanceof types_1.Integer && left instanceof types_1.Numc) {
|
|
108
|
+
r = right.get();
|
|
109
|
+
l = parseInt(left.get(), 10);
|
|
110
|
+
}
|
|
103
111
|
// assumption: typically no casts are required, so start checking if the types doesnt match
|
|
104
112
|
if (typeof l !== typeof r) {
|
|
105
113
|
if (typeof l === "string" && typeof r === "number") {
|
package/build/src/types/table.js
CHANGED
|
@@ -27,6 +27,14 @@ class Table {
|
|
|
27
27
|
this.loops = new Set();
|
|
28
28
|
this.rowType = rowType;
|
|
29
29
|
this.options = options;
|
|
30
|
+
if (this.options === undefined) {
|
|
31
|
+
this.options = {
|
|
32
|
+
type: TableAccessType.standard,
|
|
33
|
+
keyFields: [],
|
|
34
|
+
isUnique: false,
|
|
35
|
+
withHeader: false,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
30
38
|
this.qualifiedName = qualifiedName === null || qualifiedName === void 0 ? void 0 : qualifiedName.toUpperCase();
|
|
31
39
|
}
|
|
32
40
|
getQualifiedName() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/runtime",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.41",
|
|
4
4
|
"description": "Transpiler - Runtime",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"chai": "^4.3.6",
|
|
34
34
|
"mocha": "^10.0.0",
|
|
35
35
|
"source-map-support": "^0.5.21",
|
|
36
|
-
"typescript": "^4.
|
|
36
|
+
"typescript": "^4.8.2"
|
|
37
37
|
}
|
|
38
38
|
}
|