@sdeverywhere/check-core 0.1.7 → 0.1.8
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/dist/index.cjs +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4534,16 +4534,21 @@ function handleRenames(origCurrentBundle, renamedDatasetKeys) {
|
|
|
4534
4534
|
return {
|
|
4535
4535
|
modelSpec: origBundleModelR.modelSpec,
|
|
4536
4536
|
getDatasetsForScenario: (scenarioSpec, datasetKeys) => __async(null, null, function* () {
|
|
4537
|
-
const
|
|
4538
|
-
const
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4537
|
+
const rightKeySet = /* @__PURE__ */ new Set();
|
|
4538
|
+
for (const key of datasetKeys) {
|
|
4539
|
+
rightKeySet.add(rightKeyForLeftKey(key));
|
|
4540
|
+
}
|
|
4541
|
+
const result = yield origBundleModelR.getDatasetsForScenario(scenarioSpec, [...rightKeySet]);
|
|
4542
|
+
const resultMap = /* @__PURE__ */ new Map();
|
|
4543
|
+
for (const [rightKey, dataset] of result.datasetMap.entries()) {
|
|
4544
|
+
resultMap.set(rightKey, dataset);
|
|
4542
4545
|
const leftKey = leftKeyForRightKey(rightKey);
|
|
4543
|
-
|
|
4546
|
+
if (leftKey !== rightKey) {
|
|
4547
|
+
resultMap.set(leftKey, dataset);
|
|
4548
|
+
}
|
|
4544
4549
|
}
|
|
4545
4550
|
return {
|
|
4546
|
-
datasetMap:
|
|
4551
|
+
datasetMap: resultMap,
|
|
4547
4552
|
modelRunTime: result.modelRunTime
|
|
4548
4553
|
};
|
|
4549
4554
|
}),
|