@sdeverywhere/check-core 0.1.6 → 0.1.7
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 +14 -11
- 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 +11 -8
- 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,9 +4530,10 @@ 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(
|
|
4536
|
+
getDatasetsForScenario: (scenarioSpec, datasetKeys) => __async(null, null, function* () {
|
|
4535
4537
|
const rightKeys = datasetKeys.map(rightKeyForLeftKey);
|
|
4536
4538
|
const result = yield origBundleModelR.getDatasetsForScenario(scenarioSpec, rightKeys);
|
|
4537
4539
|
const mapWithRightKeys = result.datasetMap;
|
|
@@ -4545,8 +4547,9 @@ function handleRenames(origCurrentBundle, renamedDatasetKeys) {
|
|
|
4545
4547
|
modelRunTime: result.modelRunTime
|
|
4546
4548
|
};
|
|
4547
4549
|
}),
|
|
4548
|
-
getGraphDataForScenario: origBundleModelR.getGraphDataForScenario.bind(origBundleModelR),
|
|
4549
|
-
getGraphLinksForScenario: origBundleModelR.getGraphLinksForScenario.bind(origBundleModelR)
|
|
4550
|
+
getGraphDataForScenario: (_a = origBundleModelR.getGraphDataForScenario) == null ? void 0 : _a.bind(origBundleModelR),
|
|
4551
|
+
getGraphLinksForScenario: (_b = origBundleModelR.getGraphLinksForScenario) == null ? void 0 : _b.bind(origBundleModelR),
|
|
4552
|
+
createGraphView: (_c = origBundleModelR.createGraphView) == null ? void 0 : _c.bind(origBundleModelR)
|
|
4550
4553
|
};
|
|
4551
4554
|
}
|
|
4552
4555
|
const wrappedModels = origCurrentBundle.models.map(wrapModel);
|