@sanity/export 3.45.1 → 3.45.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.45.1",
3
+ "version": "3.45.2",
4
4
  "description": "Export Sanity documents and assets",
5
5
  "keywords": [
6
6
  "sanity",
@@ -75,8 +75,7 @@ function startStream(options, nextCursor) {
75
75
  const url = new URL(baseUrl)
76
76
  url.searchParams.set('nextCursor', nextCursor)
77
77
 
78
- // Type filtering is only supported for datasets.
79
- if (options.types && options.types.length > 0 && options.dataset) {
78
+ if (options.types && options.types.length > 0 ) {
80
79
  url.searchParams.set('types', options.types.join())
81
80
  }
82
81
  const token = options.client.config().token
@@ -10,9 +10,8 @@ module.exports = (options) => {
10
10
  : `/media-libraries/${options.mediaLibraryId}/export`,
11
11
  )
12
12
 
13
- // Type filtering is only supported for datasets.
14
13
  const url = new URL(baseUrl)
15
- if (options.types && options.types.length > 0 && options.dataset) {
14
+ if (options.types && options.types.length > 0 ) {
16
15
  url.searchParams.set('types', options.types.join())
17
16
  }
18
17