@hpcc-js/comms 2.92.3 → 2.93.0
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.es6.js +19 -3
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.node.js +19 -3
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.min.js +1 -1
- package/dist/index.node.min.js.map +1 -1
- package/lib-es6/__package__.js +2 -2
- package/lib-es6/ecl/workunit.js +17 -1
- package/lib-es6/ecl/workunit.js.map +1 -1
- package/package.json +2 -2
- package/src/__package__.ts +2 -2
- package/src/ecl/workunit.ts +22 -0
- package/types/__package__.d.ts +2 -2
- package/types/ecl/workunit.d.ts +3 -0
- package/types/ecl/workunit.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/ecl/workunit.d.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -648,8 +648,8 @@
|
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
var PKG_NAME = "@hpcc-js/comms";
|
|
651
|
-
var PKG_VERSION = "2.
|
|
652
|
-
var BUILD_VERSION = "2.105.
|
|
651
|
+
var PKG_VERSION = "2.93.0";
|
|
652
|
+
var BUILD_VERSION = "2.105.13";
|
|
653
653
|
|
|
654
654
|
/******************************************************************************
|
|
655
655
|
Copyright (c) Microsoft Corporation.
|
|
@@ -5768,10 +5768,21 @@
|
|
|
5768
5768
|
var _a, _b;
|
|
5769
5769
|
return (_b = (_a = item.__formattedProps) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : item[key];
|
|
5770
5770
|
}
|
|
5771
|
+
function safeParseFloat(val) {
|
|
5772
|
+
if (val === undefined)
|
|
5773
|
+
return undefined;
|
|
5774
|
+
var retVal = parseFloat(val);
|
|
5775
|
+
return isNaN(retVal) ? undefined : retVal;
|
|
5776
|
+
}
|
|
5771
5777
|
function formatValues(item, key, dedup) {
|
|
5772
5778
|
var keyParts = splitMetric(key);
|
|
5773
5779
|
if (!dedup[keyParts.measure]) {
|
|
5774
5780
|
dedup[keyParts.label] = true;
|
|
5781
|
+
var avg = safeParseFloat(item["".concat(keyParts.measure, "Avg").concat(keyParts.label)]);
|
|
5782
|
+
var min = safeParseFloat(item["".concat(keyParts.measure, "Min").concat(keyParts.label)]);
|
|
5783
|
+
var max = safeParseFloat(item["".concat(keyParts.measure, "Max").concat(keyParts.label)]);
|
|
5784
|
+
var stdDev = safeParseFloat(item["".concat(keyParts.measure, "StdDev").concat(keyParts.label)]);
|
|
5785
|
+
var StdDevs = Math.max((avg - min) / stdDev, (max - avg) / stdDev);
|
|
5775
5786
|
return {
|
|
5776
5787
|
Key: "".concat(keyParts.measure).concat(keyParts.label),
|
|
5777
5788
|
Value: formatValue(item, "".concat(keyParts.measure).concat(keyParts.label)),
|
|
@@ -5781,6 +5792,7 @@
|
|
|
5781
5792
|
Max: formatValue(item, "".concat(keyParts.measure, "Max").concat(keyParts.label)),
|
|
5782
5793
|
Delta: formatValue(item, "".concat(keyParts.measure, "Delta").concat(keyParts.label)),
|
|
5783
5794
|
StdDev: formatValue(item, "".concat(keyParts.measure, "StdDev").concat(keyParts.label)),
|
|
5795
|
+
StdDevs: isNaN(StdDevs) ? undefined : StdDevs,
|
|
5784
5796
|
// Related properties ---
|
|
5785
5797
|
SkewMin: formatValue(item, "SkewMin".concat(keyParts.label)),
|
|
5786
5798
|
SkewMax: formatValue(item, "SkewMax".concat(keyParts.label)),
|
|
@@ -6679,7 +6691,7 @@
|
|
|
6679
6691
|
}
|
|
6680
6692
|
// Other properties ---
|
|
6681
6693
|
}
|
|
6682
|
-
var normalizedScope = __assign({ id: scope.Id, name: scope.ScopeName, type: scope.ScopeType, Kind: scope["Kind"], Label: scope["Label"], __formattedProps: formattedProps, __groupedProps: {} }, props);
|
|
6694
|
+
var normalizedScope = __assign({ id: scope.Id, name: scope.ScopeName, type: scope.ScopeType, Kind: scope["Kind"], Label: scope["Label"], __formattedProps: formattedProps, __groupedProps: {}, __groupedRawProps: {}, __StdDevs: 0, __StdDevsSource: "" }, props);
|
|
6683
6695
|
if (normalizedScope[DEFINITION_LIST]) {
|
|
6684
6696
|
try {
|
|
6685
6697
|
var definitionList = JSON.parse(normalizedScope[DEFINITION_LIST].split("\\").join("\\\\"));
|
|
@@ -6705,6 +6717,10 @@
|
|
|
6705
6717
|
var row = formatValues(normalizedScope, key, dedup);
|
|
6706
6718
|
if (row) {
|
|
6707
6719
|
normalizedScope.__groupedProps[row.Key] = row;
|
|
6720
|
+
if (!isNaN(row.StdDevs) && normalizedScope.__StdDevs < row.StdDevs) {
|
|
6721
|
+
normalizedScope.__StdDevs = row.StdDevs;
|
|
6722
|
+
normalizedScope.__StdDevsSource = row.Key;
|
|
6723
|
+
}
|
|
6708
6724
|
}
|
|
6709
6725
|
}
|
|
6710
6726
|
}
|