@sanity/export 3.42.1 → 3.42.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/export",
3
- "version": "3.42.1",
3
+ "version": "3.42.2",
4
4
  "description": "Export Sanity documents and assets",
5
5
  "keywords": [
6
6
  "sanity",
@@ -313,7 +313,9 @@ class AssetHandler {
313
313
  findAndModify = (item, action) => {
314
314
  if (Array.isArray(item)) {
315
315
  const children = item.map((child) => this.findAndModify(child, action))
316
- return children.filter(Boolean)
316
+ return children.filter(function (child) {
317
+ return child !== null && child !== undefined
318
+ })
317
319
  }
318
320
 
319
321
  if (!item || typeof item !== 'object') {