netlify-cli 17.15.4 → 17.15.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/upload-files.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,WAAW;;;;wBAuEhB,CAAA;AAiDD,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/upload-files.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,WAAW;;;;wBAuEhB,CAAA;AAuDD,eAAe,WAAW,CAAA"}
@@ -82,9 +82,14 @@ const retryUpload = (uploadFn, maxRetry) => new Promise((resolve, reject) => {
82
82
  }
83
83
  catch (error) {
84
84
  lastError = error;
85
+ // We don't need to retry for 400 or 422 errors
86
+ // @ts-expect-error TS(2571) FIXME: Object is of type 'unknown'.
87
+ if (error.status === 400 || error.status === 422) {
88
+ return reject(error);
89
+ }
85
90
  // observed errors: 408, 401 (4** swallowed), 502
86
91
  // @ts-expect-error TS(2571) FIXME: Object is of type 'unknown'.
87
- if (error.status >= 400 || error.name === 'FetchError') {
92
+ if (error.status > 400 || error.name === 'FetchError') {
88
93
  fibonacciBackoff.backoff();
89
94
  return;
90
95
  }
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "17.15.4",
3
+ "version": "17.15.6",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "17.15.4",
9
+ "version": "17.15.6",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
13
  "@bugsnag/js": "7.20.2",
14
14
  "@fastify/static": "6.10.2",
15
15
  "@netlify/blobs": "6.4.2",
16
- "@netlify/build": "29.33.2",
17
- "@netlify/build-info": "7.11.5",
16
+ "@netlify/build": "29.33.3",
17
+ "@netlify/build-info": "7.12.0",
18
18
  "@netlify/config": "20.10.2",
19
19
  "@netlify/edge-bundler": "11.2.2",
20
20
  "@netlify/local-functions-proxy": "1.1.1",
@@ -1112,9 +1112,9 @@
1112
1112
  }
1113
1113
  },
1114
1114
  "node_modules/@netlify/build": {
1115
- "version": "29.33.2",
1116
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.33.2.tgz",
1117
- "integrity": "sha512-sBsrw8MenQEjXcp3bTZcXx2duinqifPuSqKhme+/n2fvE9WPTsqnh4TKvdKzZyeyEFiYulI2+gNdSEFNyWpFDw==",
1115
+ "version": "29.33.3",
1116
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.33.3.tgz",
1117
+ "integrity": "sha512-E3jm+8U3eGJR62olS6rTMJlC6/2iJ1p9hXL5W640UDUuSBfBs2Fhm8Hw5dVuC6jtM9/Ps6jH/Qda3r2U948m6g==",
1118
1118
  "dependencies": {
1119
1119
  "@bugsnag/js": "^7.0.0",
1120
1120
  "@netlify/blobs": "^6.4.2",
@@ -1191,9 +1191,9 @@
1191
1191
  }
1192
1192
  },
1193
1193
  "node_modules/@netlify/build-info": {
1194
- "version": "7.11.5",
1195
- "resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.11.5.tgz",
1196
- "integrity": "sha512-uZIlBVUHgJuW46iSAEgI2WOAFFhzufhvTrLzuNsXFSo2/v79rEfjYI2lnuknkihgjVSyrmxAjMfWFzpaQjNGyQ==",
1194
+ "version": "7.12.0",
1195
+ "resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.12.0.tgz",
1196
+ "integrity": "sha512-sYL/IIWYcZIqY+8W+2AysWnHB0PG7iUSJz9yb3aGSp40WaYsrjw69GUkw6GPRkcNxS/VR8a8eHL6ISlwYw/ONw==",
1197
1197
  "dependencies": {
1198
1198
  "@bugsnag/js": "^7.20.0",
1199
1199
  "dot-prop": "^7.2.0",
@@ -15398,9 +15398,9 @@
15398
15398
  "integrity": "sha512-MccXfC/b8vRr5FWJTvMN7L3aBgtrbhNLWQsSu802C/R2Gmlb5C9/OC0IY4i0+BEZ8rS+F4TU/8NQsVlqHHVESQ=="
15399
15399
  },
15400
15400
  "@netlify/build": {
15401
- "version": "29.33.2",
15402
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.33.2.tgz",
15403
- "integrity": "sha512-sBsrw8MenQEjXcp3bTZcXx2duinqifPuSqKhme+/n2fvE9WPTsqnh4TKvdKzZyeyEFiYulI2+gNdSEFNyWpFDw==",
15401
+ "version": "29.33.3",
15402
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.33.3.tgz",
15403
+ "integrity": "sha512-E3jm+8U3eGJR62olS6rTMJlC6/2iJ1p9hXL5W640UDUuSBfBs2Fhm8Hw5dVuC6jtM9/Ps6jH/Qda3r2U948m6g==",
15404
15404
  "requires": {
15405
15405
  "@bugsnag/js": "^7.0.0",
15406
15406
  "@netlify/blobs": "^6.4.2",
@@ -15687,9 +15687,9 @@
15687
15687
  }
15688
15688
  },
15689
15689
  "@netlify/build-info": {
15690
- "version": "7.11.5",
15691
- "resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.11.5.tgz",
15692
- "integrity": "sha512-uZIlBVUHgJuW46iSAEgI2WOAFFhzufhvTrLzuNsXFSo2/v79rEfjYI2lnuknkihgjVSyrmxAjMfWFzpaQjNGyQ==",
15690
+ "version": "7.12.0",
15691
+ "resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.12.0.tgz",
15692
+ "integrity": "sha512-sYL/IIWYcZIqY+8W+2AysWnHB0PG7iUSJz9yb3aGSp40WaYsrjw69GUkw6GPRkcNxS/VR8a8eHL6ISlwYw/ONw==",
15693
15693
  "requires": {
15694
15694
  "@bugsnag/js": "^7.20.0",
15695
15695
  "dot-prop": "^7.2.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "17.15.4",
4
+ "version": "17.15.6",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "engines": {
@@ -38,8 +38,8 @@
38
38
  "@bugsnag/js": "7.20.2",
39
39
  "@fastify/static": "6.10.2",
40
40
  "@netlify/blobs": "6.4.2",
41
- "@netlify/build": "29.33.2",
42
- "@netlify/build-info": "7.11.5",
41
+ "@netlify/build": "29.33.3",
42
+ "@netlify/build-info": "7.12.0",
43
43
  "@netlify/config": "20.10.2",
44
44
  "@netlify/edge-bundler": "11.2.2",
45
45
  "@netlify/local-functions-proxy": "1.1.1",