@zapier/secret-scrubber 1.1.1 → 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 CHANGED
@@ -1,3 +1,9 @@
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
+
1
7
  ## 1.1.1
2
8
 
3
9
  _release `2024-05-08`_
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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/secret-scrubber",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Confidently remove secrets and sensitive values from unstructured objects.",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",