@sanity/export 3.37.3-cds-unstable.27 → 3.37.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/export",
3
- "version": "3.37.3-cds-unstable.27+a9843a2384",
3
+ "version": "3.37.3",
4
4
  "description": "Export Sanity documents and assets",
5
5
  "keywords": [
6
6
  "sanity",
@@ -13,12 +13,11 @@
13
13
  ],
14
14
  "homepage": "https://www.sanity.io/",
15
15
  "bugs": {
16
- "url": "https://github.com/sanity-io/sanity/issues"
16
+ "url": "https://github.com/sanity-io/export/issues"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "git+https://github.com/sanity-io/sanity.git",
21
- "directory": "packages/@sanity/export"
20
+ "url": "git+https://github.com/sanity-io/export.git"
22
21
  },
23
22
  "license": "MIT",
24
23
  "author": "Sanity.io <hello@sanity.io>",
@@ -31,10 +30,10 @@
31
30
  "test": "jest"
32
31
  },
33
32
  "dependencies": {
34
- "@sanity/util": "3.37.3-cds-unstable.27+a9843a2384",
33
+ "@sanity/util": "3.37.2",
35
34
  "archiver": "^7.0.0",
36
35
  "debug": "^4.3.4",
37
- "get-it": "^8.4.18",
36
+ "get-it": "^8.4.21",
38
37
  "lodash": "^4.17.21",
39
38
  "mississippi": "^4.0.0",
40
39
  "p-queue": "^2.3.0",
@@ -43,6 +42,13 @@
43
42
  },
44
43
  "devDependencies": {
45
44
  "@jest/globals": "^29.7.0",
45
+ "eslint": "^8.57.0",
46
+ "eslint-config-prettier": "^9.1.0",
47
+ "eslint-config-sanity": "^7.1.2",
48
+ "eslint-plugin-prettier": "^5.1.3",
49
+ "jest": "^29.7.0",
50
+ "prettier": "^3.2.5",
51
+ "prettier-plugin-packagejson": "^2.5.0",
46
52
  "string-to-stream": "^1.1.0"
47
53
  },
48
54
  "engines": {
@@ -50,6 +56,5 @@
50
56
  },
51
57
  "publishConfig": {
52
58
  "access": "public"
53
- },
54
- "gitHead": "a9843a2384fafc656ab5a15d3ce63b2f223c52b0"
59
+ }
55
60
  }
@@ -238,8 +238,6 @@ class AssetHandler {
238
238
  contentLength &&
239
239
  parseInt(contentLength, 10) !== size &&
240
240
  `Asset should be ${contentLength} bytes, got ${size}`,
241
-
242
- `Did not succeed after ${attemptNum} attempts.`,
243
241
  ]
244
242
 
245
243
  const detailsString = `Details:\n - ${details.filter(Boolean).join('\n - ')}`
package/src/export.js CHANGED
@@ -63,6 +63,7 @@ function exportDataset(opts) {
63
63
  assetStreamHandler = options.assets ? assetHandler.rewriteAssets : assetHandler.stripAssets
64
64
  }
65
65
 
66
+ // eslint-disable-next-line no-async-promise-executor
66
67
  return new Promise(async (resolve, reject) => {
67
68
  miss.finished(archive, async (archiveErr) => {
68
69
  if (archiveErr) {
@@ -1,5 +1,4 @@
1
1
  const {getIt} = require('get-it')
2
- // eslint-disable-next-line import/extensions
3
2
  const {keepAlive, promise} = require('get-it/middleware')
4
3
  const debug = require('./debug')
5
4