@sanity/export 3.42.0 → 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/LICENSE +1 -1
- package/package.json +3 -3
- package/src/AssetHandler.js +3 -1
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/export",
|
|
3
|
-
"version": "3.42.
|
|
3
|
+
"version": "3.42.2",
|
|
4
4
|
"description": "Export Sanity documents and assets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"test": "jest --verbose"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@sanity/client": "^6.
|
|
34
|
-
"@sanity/util": "3.
|
|
33
|
+
"@sanity/client": "^6.24.1",
|
|
34
|
+
"@sanity/util": "3.68.3",
|
|
35
35
|
"archiver": "^7.0.0",
|
|
36
36
|
"debug": "^4.3.4",
|
|
37
37
|
"get-it": "^8.6.2",
|
package/src/AssetHandler.js
CHANGED
|
@@ -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(
|
|
316
|
+
return children.filter(function (child) {
|
|
317
|
+
return child !== null && child !== undefined
|
|
318
|
+
})
|
|
317
319
|
}
|
|
318
320
|
|
|
319
321
|
if (!item || typeof item !== 'object') {
|