@sanity/export 3.15.2-purple-fairy.6 → 3.15.2-purple-fairy.38

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.15.2-purple-fairy.6+90033b120c",
3
+ "version": "3.15.2-purple-fairy.38+3689d24638",
4
4
  "description": "Export Sanity documents and assets",
5
5
  "keywords": [
6
6
  "sanity",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "90033b120c3e741733c0dd150353ba36a50882b6"
51
+ "gitHead": "3689d24638748eef9ab3ea9d71cdcc0f9b1fb5ea"
52
52
  }
@@ -200,7 +200,7 @@ class AssetHandler {
200
200
  this.queue.clear()
201
201
 
202
202
  const error = new Error(
203
- `Failed to download asset at ${assetDoc.url}, giving up. ${detailsString}`
203
+ `Failed to download asset at ${assetDoc.url}, giving up. ${detailsString}`,
204
204
  )
205
205
 
206
206
  this.reject(error)
@@ -218,7 +218,7 @@ class AssetHandler {
218
218
 
219
219
  this.downloading.splice(
220
220
  this.downloading.findIndex((datUrl) => datUrl === url),
221
- 1
221
+ 1,
222
222
  )
223
223
 
224
224
  this.filesWritten++
@@ -318,7 +318,7 @@ function writeHashedStream(filePath, stream) {
318
318
  sha1: sha1.digest('hex'),
319
319
  md5: md5.digest('hex'),
320
320
  })
321
- })
321
+ }),
322
322
  )
323
323
  }
324
324
 
package/src/export.js CHANGED
@@ -112,7 +112,7 @@ function exportDataset(opts) {
112
112
  filterDocumentTypes(options.types),
113
113
  options.drafts ? miss.through.obj() : filterDrafts(),
114
114
  stringifyStream(),
115
- miss.through(reportDocumentCount)
115
+ miss.through(reportDocumentCount),
116
116
  )
117
117
 
118
118
  miss.finished(jsonStream, async (err) => {
@@ -33,7 +33,7 @@ module.exports = async (options) => {
33
33
  socketsWithTimeout.add(response.connection)
34
34
  response.connection.setTimeout(READ_TIMEOUT, () => {
35
35
  response.destroy(
36
- new Error(`Read timeout: No data received on socket for ${READ_TIMEOUT} ms`)
36
+ new Error(`Read timeout: No data received on socket for ${READ_TIMEOUT} ms`),
37
37
  )
38
38
  })
39
39
  }
@@ -27,7 +27,7 @@ function validateOptions(opts) {
27
27
  const missing = clientMethods.find((key) => typeof options.client[key] !== 'function')
28
28
  if (missing) {
29
29
  throw new Error(
30
- `\`options.client\` is not a valid @sanity/client instance - no "${missing}" method found`
30
+ `\`options.client\` is not a valid @sanity/client instance - no "${missing}" method found`,
31
31
  )
32
32
  }
33
33