@whotracksme/reporting 5.1.17 β 5.1.18
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 +12 -0
- package/package.json +1 -1
- package/reporting/src/search-extractor.js +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v5.1.18 (Thu Aug 01 2024)
|
|
2
|
+
|
|
3
|
+
#### π Bug Fix
|
|
4
|
+
|
|
5
|
+
- Abort if a transform rule is not well-formed [#88](https://github.com/whotracksme/webextension-packages/pull/88) ([@philipp-classen](https://github.com/philipp-classen))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Philipp ClaΓen ([@philipp-classen](https://github.com/philipp-classen))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v5.0.17 (Mon Jul 08 2024)
|
|
2
14
|
|
|
3
15
|
#### π Bug Fix
|
package/package.json
CHANGED
|
@@ -78,13 +78,20 @@ function runSelector(item, selector, attr, baseURI) {
|
|
|
78
78
|
|
|
79
79
|
function runTransforms(value, transformSteps = []) {
|
|
80
80
|
if (!Array.isArray(transformSteps)) {
|
|
81
|
-
throw new BadPatternError(
|
|
81
|
+
throw new BadPatternError(
|
|
82
|
+
'Transform definitions must be an array (of arrays).',
|
|
83
|
+
);
|
|
82
84
|
}
|
|
83
85
|
if (value === undefined || value === null) {
|
|
84
86
|
return null;
|
|
85
87
|
}
|
|
86
88
|
let tmpValue = value;
|
|
87
89
|
for (const step of transformSteps) {
|
|
90
|
+
if (!Array.isArray(step)) {
|
|
91
|
+
throw new BadPatternError(
|
|
92
|
+
'Single transform definitions must be an array.',
|
|
93
|
+
);
|
|
94
|
+
}
|
|
88
95
|
const [name, ...args] = step;
|
|
89
96
|
const transform = lookupBuiltinTransform(name);
|
|
90
97
|
tmpValue = transform(tmpValue, ...args);
|