@sanity/export 2.30.2-shopify.0 → 2.30.3-shopify.3

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.
@@ -229,7 +229,7 @@ class AssetHandler {
229
229
  var isImage = assetDoc._type === 'sanity.imageAsset';
230
230
  var url = parseUrl(assetDoc.url, true);
231
231
 
232
- if (isImage && ['cdn.sanity.io', 'cdn.sanity.work'].includes(url.hostname)) {
232
+ if (isImage && ['cdn.sanity.io', 'cdn.sanity.work'].includes(url.hostname) && token) {
233
233
  headers.Authorization = "Bearer ".concat(token);
234
234
  url.query = _objectSpread(_objectSpread({}, url.query || {}), {}, {
235
235
  dlRaw: 'true'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/export",
3
- "version": "2.30.2-shopify.0+4e3235208",
3
+ "version": "2.30.3-shopify.3+5f5c0d52b",
4
4
  "description": "Export Sanity documents and assets",
5
5
  "main": "lib/export.js",
6
6
  "engines": {
@@ -49,5 +49,5 @@
49
49
  "url": "https://github.com/sanity-io/sanity/issues"
50
50
  },
51
51
  "homepage": "https://www.sanity.io/",
52
- "gitHead": "4e3235208960dc8d16b04a649ddecdc4e7573837"
52
+ "gitHead": "5f5c0d52b65c070465b876da4b91080a4df9ef4a"
53
53
  }
@@ -124,7 +124,7 @@ class AssetHandler {
124
124
  const isImage = assetDoc._type === 'sanity.imageAsset'
125
125
 
126
126
  const url = parseUrl(assetDoc.url, true)
127
- if (isImage && ['cdn.sanity.io', 'cdn.sanity.work'].includes(url.hostname)) {
127
+ if (isImage && ['cdn.sanity.io', 'cdn.sanity.work'].includes(url.hostname) && token) {
128
128
  headers.Authorization = `Bearer ${token}`
129
129
  url.query = {...(url.query || {}), dlRaw: 'true'}
130
130
  }