@sanity/export 3.15.1 → 3.15.2-canary.44
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 +2 -2
- package/src/AssetHandler.js +3 -3
- package/src/export.js +1 -1
- package/src/requestStream.js +1 -1
- package/src/validateOptions.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/export",
|
|
3
|
-
"version": "3.15.
|
|
3
|
+
"version": "3.15.2-canary.44+9aa331e254",
|
|
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": "
|
|
51
|
+
"gitHead": "9aa331e254fe161f6be7e486f19047f67da893e7"
|
|
52
52
|
}
|
package/src/AssetHandler.js
CHANGED
|
@@ -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) => {
|
package/src/requestStream.js
CHANGED
|
@@ -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
|
}
|
package/src/validateOptions.js
CHANGED
|
@@ -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
|
|