@checkstack/healthcheck-frontend 0.7.1 → 0.7.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @checkstack/healthcheck-frontend
|
|
2
2
|
|
|
3
|
+
## 0.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e58e994: Fix runtime error in AutoChartGrid when mapping over values with undefined elements
|
|
8
|
+
|
|
9
|
+
The filter functions `getAllBooleanValuesWithTime` and `getAllStringValuesWithTime` incorrectly checked `v !== null` instead of `v !== undefined`, allowing undefined elements to pass through and crash when accessing `.value`.
|
|
10
|
+
|
|
3
11
|
## 0.7.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1202,7 +1202,9 @@ function getAllBooleanValuesWithTime(
|
|
|
1202
1202
|
timeLabel: format(new Date(run.timestamp), "MMM d, HH:mm:ss"),
|
|
1203
1203
|
};
|
|
1204
1204
|
})
|
|
1205
|
-
.filter(
|
|
1205
|
+
.filter(
|
|
1206
|
+
(v): v is { value: boolean; timeLabel: string } => v !== undefined,
|
|
1207
|
+
);
|
|
1206
1208
|
}
|
|
1207
1209
|
return context.buckets
|
|
1208
1210
|
.map((bucket) => {
|
|
@@ -1219,7 +1221,7 @@ function getAllBooleanValuesWithTime(
|
|
|
1219
1221
|
timeLabel: `${format(bucketStart, "MMM d, HH:mm")} - ${format(bucketEnd, "HH:mm")}`,
|
|
1220
1222
|
};
|
|
1221
1223
|
})
|
|
1222
|
-
.filter((v): v is { value: boolean; timeLabel: string } => v !==
|
|
1224
|
+
.filter((v): v is { value: boolean; timeLabel: string } => v !== undefined);
|
|
1223
1225
|
}
|
|
1224
1226
|
|
|
1225
1227
|
/**
|
|
@@ -1242,7 +1244,9 @@ function getAllStringValuesWithTime(
|
|
|
1242
1244
|
timeLabel: format(new Date(run.timestamp), "MMM d, HH:mm:ss"),
|
|
1243
1245
|
};
|
|
1244
1246
|
})
|
|
1245
|
-
.filter(
|
|
1247
|
+
.filter(
|
|
1248
|
+
(v): v is { value: string; timeLabel: string } => v !== undefined,
|
|
1249
|
+
);
|
|
1246
1250
|
}
|
|
1247
1251
|
return context.buckets
|
|
1248
1252
|
.map((bucket) => {
|
|
@@ -1259,5 +1263,5 @@ function getAllStringValuesWithTime(
|
|
|
1259
1263
|
timeLabel: `${format(bucketStart, "MMM d, HH:mm")} - ${format(bucketEnd, "HH:mm")}`,
|
|
1260
1264
|
};
|
|
1261
1265
|
})
|
|
1262
|
-
.filter((v): v is { value: string; timeLabel: string } => v !==
|
|
1266
|
+
.filter((v): v is { value: string; timeLabel: string } => v !== undefined);
|
|
1263
1267
|
}
|