@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.js
CHANGED
|
@@ -4479,16 +4479,21 @@ function handleRenames(origCurrentBundle, renamedDatasetKeys) {
|
|
|
4479
4479
|
return {
|
|
4480
4480
|
modelSpec: origBundleModelR.modelSpec,
|
|
4481
4481
|
getDatasetsForScenario: (scenarioSpec, datasetKeys) => __async(null, null, function* () {
|
|
4482
|
-
const
|
|
4483
|
-
const
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4482
|
+
const rightKeySet = /* @__PURE__ */ new Set();
|
|
4483
|
+
for (const key of datasetKeys) {
|
|
4484
|
+
rightKeySet.add(rightKeyForLeftKey(key));
|
|
4485
|
+
}
|
|
4486
|
+
const result = yield origBundleModelR.getDatasetsForScenario(scenarioSpec, [...rightKeySet]);
|
|
4487
|
+
const resultMap = /* @__PURE__ */ new Map();
|
|
4488
|
+
for (const [rightKey, dataset] of result.datasetMap.entries()) {
|
|
4489
|
+
resultMap.set(rightKey, dataset);
|
|
4487
4490
|
const leftKey = leftKeyForRightKey(rightKey);
|
|
4488
|
-
|
|
4491
|
+
if (leftKey !== rightKey) {
|
|
4492
|
+
resultMap.set(leftKey, dataset);
|
|
4493
|
+
}
|
|
4489
4494
|
}
|
|
4490
4495
|
return {
|
|
4491
|
-
datasetMap:
|
|
4496
|
+
datasetMap: resultMap,
|
|
4492
4497
|
modelRunTime: result.modelRunTime
|
|
4493
4498
|
};
|
|
4494
4499
|
}),
|