@abaplint/runtime 2.6.0 → 2.6.2
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
|
@@ -73,6 +73,9 @@ function eq(left, right) {
|
|
|
73
73
|
if (left instanceof types_1.Character) {
|
|
74
74
|
l = left.getTrimEnd();
|
|
75
75
|
}
|
|
76
|
+
else if (left instanceof types_1.Date) {
|
|
77
|
+
l = left.get().trimEnd();
|
|
78
|
+
}
|
|
76
79
|
else if (typeof left === "object") {
|
|
77
80
|
l = left.get();
|
|
78
81
|
}
|
|
@@ -83,6 +86,9 @@ function eq(left, right) {
|
|
|
83
86
|
if (right instanceof types_1.Character) {
|
|
84
87
|
r = right.getTrimEnd();
|
|
85
88
|
}
|
|
89
|
+
else if (right instanceof types_1.Date) {
|
|
90
|
+
l = right.get().trimEnd();
|
|
91
|
+
}
|
|
86
92
|
else if (typeof right === "object") {
|
|
87
93
|
r = right.get();
|
|
88
94
|
}
|
|
@@ -95,7 +95,7 @@ function assign(input) {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
else if (!(input.source instanceof types_1.Table)) {
|
|
98
|
-
result = input.source.get()[component.toLowerCase()];
|
|
98
|
+
result = input.source.get()[component.toLowerCase().trimEnd()];
|
|
99
99
|
}
|
|
100
100
|
if (result === undefined) {
|
|
101
101
|
// not a field in the structure
|
|
@@ -22,9 +22,9 @@ function createData(target, options) {
|
|
|
22
22
|
}
|
|
23
23
|
else if (options === null || options === void 0 ? void 0 : options.name) {
|
|
24
24
|
// @ts-ignore
|
|
25
|
-
if (abap.DDIC[options.name]) {
|
|
25
|
+
if (abap.DDIC[options.name.trimEnd()]) {
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
target.assign((0, clone_1.clone)(abap.DDIC[options.name].type));
|
|
27
|
+
target.assign((0, clone_1.clone)(abap.DDIC[options.name.trimEnd()].type));
|
|
28
28
|
}
|
|
29
29
|
else if (options.name.includes("=>")) {
|
|
30
30
|
const [className, typeName] = options.name.toUpperCase().split("=>");
|
|
@@ -114,9 +114,9 @@ function createData(target, options) {
|
|
|
114
114
|
break;
|
|
115
115
|
default:
|
|
116
116
|
// @ts-ignore
|
|
117
|
-
if (abap.DDIC[options.typeName]) {
|
|
117
|
+
if (abap.DDIC[options.typeName.trimEnd()]) {
|
|
118
118
|
// @ts-ignore
|
|
119
|
-
target.assign((0, clone_1.clone)(abap.DDIC[options.typeName].type));
|
|
119
|
+
target.assign((0, clone_1.clone)(abap.DDIC[options.typeName.trimEnd()].type));
|
|
120
120
|
}
|
|
121
121
|
else if (options.typeName.includes("=>")) {
|
|
122
122
|
const [className, typeName] = options.typeName.toUpperCase().split("=>");
|
|
@@ -125,11 +125,11 @@ function createData(target, options) {
|
|
|
125
125
|
(0, throw_error_1.throwError)("CX_SY_CREATE_DATA_ERROR");
|
|
126
126
|
}
|
|
127
127
|
// @ts-ignore
|
|
128
|
-
if (abap.Classes[className][typeName.toLowerCase()] === undefined) {
|
|
128
|
+
if (abap.Classes[className][typeName.toLowerCase().trimEnd()] === undefined) {
|
|
129
129
|
(0, throw_error_1.throwError)("CX_SY_CREATE_DATA_ERROR");
|
|
130
130
|
}
|
|
131
131
|
// @ts-ignore
|
|
132
|
-
target.assign((0, clone_1.clone)(abap.Classes[className][typeName.toLowerCase()]));
|
|
132
|
+
target.assign((0, clone_1.clone)(abap.Classes[className][typeName.toLowerCase().trimEnd()]));
|
|
133
133
|
}
|
|
134
134
|
else {
|
|
135
135
|
throw "CREATE DATA, unknown type " + options.typeName;
|
package/build/src/types/date.js
CHANGED