@zapier/secret-scrubber 1.1.0 → 1.1.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 +12 -0
- package/lib/convenience.js +1 -0
- package/lib/utils.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.1.2
|
|
2
|
+
|
|
3
|
+
_release `2025-01-03`_
|
|
4
|
+
|
|
5
|
+
- add null check `recurseExtract` to avoid noisy errors ([!15](https://gitlab.com/zapier/team-developer-platform/secret-scrubber-js/-/merge_requests/15))
|
|
6
|
+
|
|
7
|
+
## 1.1.1
|
|
8
|
+
|
|
9
|
+
_release `2024-05-08`_
|
|
10
|
+
|
|
11
|
+
- add `set-cookie` to sensitive substrings ([!14](https://gitlab.com/zapier/team-developer-platform/secret-scrubber-js/-/merge_requests/14))
|
|
12
|
+
|
|
1
13
|
## 1.1.0
|
|
2
14
|
|
|
3
15
|
_released `2024-02-01`_
|
package/lib/convenience.js
CHANGED
package/lib/utils.js
CHANGED
|
@@ -108,6 +108,9 @@ exports.recurseReplace = recurseReplace;
|
|
|
108
108
|
* * otherwise, we pass the key and value to the matcher. If it returns `true`, we collect the value
|
|
109
109
|
*/
|
|
110
110
|
const recurseExtract = (obj, matcher) => {
|
|
111
|
+
if (obj == null) {
|
|
112
|
+
return [];
|
|
113
|
+
}
|
|
111
114
|
const result = Object.entries(obj)
|
|
112
115
|
.map(([key, value]) => {
|
|
113
116
|
if (isPlainObject(value)) {
|