@abaplint/runtime 2.5.76 → 2.5.78
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/types/table.js +3 -2
- package/package.json +2 -2
package/build/src/types/table.js
CHANGED
|
@@ -88,7 +88,8 @@ class HashedTable {
|
|
|
88
88
|
if (secondary === undefined) {
|
|
89
89
|
throw `Table, secondary key "${name}" not found`;
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
// note, array() already is a copy, so it acn be used,
|
|
92
|
+
const copy = this.array();
|
|
92
93
|
(0, sort_1.sort)(copy, { by: secondary.keyFields.map(k => { return { component: k.toLowerCase() }; }) });
|
|
93
94
|
this.secondaryIndexes[name.toUpperCase()] = copy;
|
|
94
95
|
return copy;
|
|
@@ -266,7 +267,7 @@ class Table {
|
|
|
266
267
|
if (secondary === undefined) {
|
|
267
268
|
throw `Table, secondary key "${name}" not found`;
|
|
268
269
|
}
|
|
269
|
-
const copy =
|
|
270
|
+
const copy = [...this.value];
|
|
270
271
|
(0, sort_1.sort)(copy, { by: secondary.keyFields.map(k => { return { component: k.toLowerCase() }; }) });
|
|
271
272
|
this.secondaryIndexes[name.toUpperCase()] = copy;
|
|
272
273
|
return copy;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/runtime",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.78",
|
|
4
4
|
"description": "Transpiler - Runtime",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"chai": "^4.3.7",
|
|
34
34
|
"mocha": "^10.2.0",
|
|
35
35
|
"source-map-support": "^0.5.21",
|
|
36
|
-
"typescript": "^5.0.
|
|
36
|
+
"typescript": "^5.0.4"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"temporal-polyfill": "^0.1.1"
|