testilo 46.0.0 → 46.0.1
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/package.json
CHANGED
|
@@ -55,11 +55,11 @@ exports.collateExcerpts = report => {
|
|
|
55
55
|
standardResult.instances.forEach(instance => {
|
|
56
56
|
// Get the excerpt and path ID, if any, of the element.
|
|
57
57
|
const {excerpt, pathID} = instance;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
excerpts[pathID][which]
|
|
58
|
+
excerpts[pathID] ??= {};
|
|
59
|
+
// If both exist:
|
|
60
|
+
if (excerpt && pathID) {
|
|
61
|
+
// Add the excerpt to the directory unless one already exists.
|
|
62
|
+
excerpts[pathID][which] ??= excerpt;
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
}
|