@sdeverywhere/check-core 0.1.6 → 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 +26 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +68 -6
- package/dist/index.d.ts +68 -6
- package/dist/index.js +23 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -64,8 +64,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
// src/index.ts
|
|
67
|
-
var
|
|
68
|
-
__export(
|
|
67
|
+
var index_exports = {};
|
|
68
|
+
__export(index_exports, {
|
|
69
69
|
CheckDataCoordinator: () => CheckDataCoordinator,
|
|
70
70
|
ComparisonDataCoordinator: () => ComparisonDataCoordinator,
|
|
71
71
|
PerfStats: () => PerfStats,
|
|
@@ -91,7 +91,7 @@ __export(src_exports, {
|
|
|
91
91
|
suiteSummaryFromReport: () => suiteSummaryFromReport,
|
|
92
92
|
testSummaryFromReport: () => testSummaryFromReport
|
|
93
93
|
});
|
|
94
|
-
module.exports = __toCommonJS(
|
|
94
|
+
module.exports = __toCommonJS(index_exports);
|
|
95
95
|
|
|
96
96
|
// src/bundle/impl-vars-codec.ts
|
|
97
97
|
function encodeImplVars(input) {
|
|
@@ -363,7 +363,7 @@ var TaskQueue = class _TaskQueue {
|
|
|
363
363
|
};
|
|
364
364
|
function createExecutor(bundleModelL, bundleModelR) {
|
|
365
365
|
return {
|
|
366
|
-
execute: (task) => __async(
|
|
366
|
+
execute: (task) => __async(null, null, function* () {
|
|
367
367
|
return task.process({
|
|
368
368
|
L: bundleModelL,
|
|
369
369
|
R: bundleModelR
|
|
@@ -381,7 +381,7 @@ var CheckDataCoordinator = class {
|
|
|
381
381
|
const task = {
|
|
382
382
|
key: requestKey,
|
|
383
383
|
kind: "check-data-coordinator",
|
|
384
|
-
process: (bundleModels) => __async(
|
|
384
|
+
process: (bundleModels) => __async(null, null, function* () {
|
|
385
385
|
const bundleModelR = bundleModels.R;
|
|
386
386
|
const result = yield bundleModelR.getDatasetsForScenario(scenarioSpec, [datasetKey]);
|
|
387
387
|
const dataset = result.datasetMap.get(datasetKey);
|
|
@@ -2098,7 +2098,7 @@ var ComparisonDataCoordinator = class {
|
|
|
2098
2098
|
const task = {
|
|
2099
2099
|
key: requestKey,
|
|
2100
2100
|
kind: "comparison-data-coordinator",
|
|
2101
|
-
process: (bundleModels) => __async(
|
|
2101
|
+
process: (bundleModels) => __async(null, null, function* () {
|
|
2102
2102
|
const modelL = sourceL === "left" ? bundleModels.L : bundleModels.R;
|
|
2103
2103
|
const modelR = sourceR === "left" ? bundleModels.L : bundleModels.R;
|
|
2104
2104
|
let resultL;
|
|
@@ -2137,8 +2137,9 @@ var ComparisonDataCoordinator = class {
|
|
|
2137
2137
|
requestGraphData(requestKey, sourceL, scenarioSpecL, sourceR, scenarioSpecR, graphId, onResponse) {
|
|
2138
2138
|
function fetchGraphData(bundleModel, scenarioSpec) {
|
|
2139
2139
|
return __async(this, null, function* () {
|
|
2140
|
+
var _a;
|
|
2140
2141
|
if (scenarioSpec) {
|
|
2141
|
-
return bundleModel.getGraphDataForScenario(scenarioSpec, graphId);
|
|
2142
|
+
return (_a = bundleModel.getGraphDataForScenario) == null ? void 0 : _a.call(bundleModel, scenarioSpec, graphId);
|
|
2142
2143
|
} else {
|
|
2143
2144
|
return void 0;
|
|
2144
2145
|
}
|
|
@@ -2147,7 +2148,7 @@ var ComparisonDataCoordinator = class {
|
|
|
2147
2148
|
const task = {
|
|
2148
2149
|
key: requestKey,
|
|
2149
2150
|
kind: "comparison-data-coordinator",
|
|
2150
|
-
process: (bundleModels) => __async(
|
|
2151
|
+
process: (bundleModels) => __async(null, null, function* () {
|
|
2151
2152
|
const modelL = sourceL === "left" ? bundleModels.L : bundleModels.R;
|
|
2152
2153
|
const modelR = sourceR === "left" ? bundleModels.L : bundleModels.R;
|
|
2153
2154
|
let graphDataL;
|
|
@@ -4529,24 +4530,31 @@ function handleRenames(origCurrentBundle, renamedDatasetKeys) {
|
|
|
4529
4530
|
return invertedRenamedKeys.get(rightKey) || rightKey;
|
|
4530
4531
|
};
|
|
4531
4532
|
function wrapModel(origBundleModelR) {
|
|
4533
|
+
var _a, _b, _c;
|
|
4532
4534
|
return {
|
|
4533
4535
|
modelSpec: origBundleModelR.modelSpec,
|
|
4534
|
-
getDatasetsForScenario: (scenarioSpec, datasetKeys) => __async(
|
|
4535
|
-
const
|
|
4536
|
-
const
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4536
|
+
getDatasetsForScenario: (scenarioSpec, datasetKeys) => __async(null, null, function* () {
|
|
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);
|
|
4540
4545
|
const leftKey = leftKeyForRightKey(rightKey);
|
|
4541
|
-
|
|
4546
|
+
if (leftKey !== rightKey) {
|
|
4547
|
+
resultMap.set(leftKey, dataset);
|
|
4548
|
+
}
|
|
4542
4549
|
}
|
|
4543
4550
|
return {
|
|
4544
|
-
datasetMap:
|
|
4551
|
+
datasetMap: resultMap,
|
|
4545
4552
|
modelRunTime: result.modelRunTime
|
|
4546
4553
|
};
|
|
4547
4554
|
}),
|
|
4548
|
-
getGraphDataForScenario: origBundleModelR.getGraphDataForScenario.bind(origBundleModelR),
|
|
4549
|
-
getGraphLinksForScenario: origBundleModelR.getGraphLinksForScenario.bind(origBundleModelR)
|
|
4555
|
+
getGraphDataForScenario: (_a = origBundleModelR.getGraphDataForScenario) == null ? void 0 : _a.bind(origBundleModelR),
|
|
4556
|
+
getGraphLinksForScenario: (_b = origBundleModelR.getGraphLinksForScenario) == null ? void 0 : _b.bind(origBundleModelR),
|
|
4557
|
+
createGraphView: (_c = origBundleModelR.createGraphView) == null ? void 0 : _c.bind(origBundleModelR)
|
|
4550
4558
|
};
|
|
4551
4559
|
}
|
|
4552
4560
|
const wrappedModels = origCurrentBundle.models.map(wrapModel);
|