netlify-cli 8.6.2 → 8.6.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,17 +1,17 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "8.6.2",
3
+ "version": "8.6.6",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "8.6.2",
9
+ "version": "8.6.6",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
13
  "@netlify/build": "^26.1.0",
14
- "@netlify/config": "^17.0.2",
14
+ "@netlify/config": "^17.0.3",
15
15
  "@netlify/framework-info": "^7.0.0",
16
16
  "@netlify/local-functions-proxy": "^1.1.1",
17
17
  "@netlify/plugin-edge-handlers": "^3.0.0",
@@ -79,7 +79,7 @@
79
79
  "minimist": "^1.2.5",
80
80
  "mock-require": "^3.0.3",
81
81
  "multiparty": "^4.2.1",
82
- "netlify": "^10.1.0",
82
+ "netlify": "^10.1.1",
83
83
  "netlify-headers-parser": "^6.0.0",
84
84
  "netlify-redirect-parser": "^13.0.0",
85
85
  "netlify-redirector": "^0.2.1",
@@ -130,7 +130,7 @@
130
130
  "@babel/preset-react": "^7.12.13",
131
131
  "@commitlint/cli": "^16.0.0",
132
132
  "@commitlint/config-conventional": "^16.0.0",
133
- "@netlify/eslint-config-node": "^4.0.5",
133
+ "@netlify/eslint-config-node": "^4.0.6",
134
134
  "ava": "^3.15.0",
135
135
  "eslint-plugin-sort-destructure-keys": "^1.3.5",
136
136
  "fast-glob": "^3.2.7",
@@ -2945,9 +2945,9 @@
2945
2945
  }
2946
2946
  },
2947
2947
  "node_modules/@netlify/config": {
2948
- "version": "17.0.2",
2949
- "resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.2.tgz",
2950
- "integrity": "sha512-Wy/Z0i4f1MSZG0Db9MwV2Yoz0AYh1Z3A3dYitJQVIWZCARO9njh0pVw6V2F7PogASiaTb1xrBaXHIFE0almQ1g==",
2948
+ "version": "17.0.3",
2949
+ "resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.3.tgz",
2950
+ "integrity": "sha512-u1x//PEqKvsExPQtRMG4x786mKcAV6ykwqiN102szLlr5Dojb7X5y+6vb9wi4JJ/KNiVURP7Wna/sMxGvFi/Tw==",
2951
2951
  "dependencies": {
2952
2952
  "chalk": "^4.1.2",
2953
2953
  "cron-parser": "^4.1.0",
@@ -2963,7 +2963,7 @@
2963
2963
  "js-yaml": "^4.0.0",
2964
2964
  "make-dir": "^3.1.0",
2965
2965
  "map-obj": "^4.0.0",
2966
- "netlify": "^10.1.0",
2966
+ "netlify": "^10.1.1",
2967
2967
  "netlify-headers-parser": "^6.0.0",
2968
2968
  "netlify-redirect-parser": "^13.0.0",
2969
2969
  "omit.js": "^2.0.2",
@@ -3158,9 +3158,9 @@
3158
3158
  }
3159
3159
  },
3160
3160
  "node_modules/@netlify/eslint-config-node": {
3161
- "version": "4.0.5",
3162
- "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.0.5.tgz",
3163
- "integrity": "sha512-vmc1krx7ZxVrP3Iph9HISD5vFtfzoloW6L37yIpfnN76Z9oaOle+zRI1BCQniBMtlUTAJqUCfaMDtNfX+wQhdA==",
3161
+ "version": "4.0.6",
3162
+ "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.0.6.tgz",
3163
+ "integrity": "sha512-XjTw3l/U0DSfPH9WKc0dKMS/r6uy6lPx4FVQ9uX6CeL+DixQz6hym8778G2f4Kpxl3tEPnOGIz40WiNrnDzC5w==",
3164
3164
  "dev": true,
3165
3165
  "dependencies": {
3166
3166
  "@babel/core": "^7.13.8",
@@ -3544,9 +3544,9 @@
3544
3544
  }
3545
3545
  },
3546
3546
  "node_modules/@netlify/open-api": {
3547
- "version": "2.7.0",
3548
- "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-2.7.0.tgz",
3549
- "integrity": "sha512-WzedpLK6XFs67naFDX1K3QWk3GKlUQVCuIlMuXb0dWvJvfB71R/Njk1bq0FqVllIWw2RRCQMkCIywEABbnB2Yg=="
3547
+ "version": "2.8.0",
3548
+ "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-2.8.0.tgz",
3549
+ "integrity": "sha512-lfNB/QYDgaP07pwm/nWEaWPvRAAGyhxvJqNzvxMijc7A4uwquMjlbYve8yYyd0LJXPwgBpGobwiQj5RA76xzUQ=="
3550
3550
  },
3551
3551
  "node_modules/@netlify/plugin-edge-handlers": {
3552
3552
  "version": "3.0.0",
@@ -14577,11 +14577,11 @@
14577
14577
  "integrity": "sha512-AO81vsIO1k1sM4Zrd6Hu7regmJN1NSiAja10gc4bX3F0wd+9rQmcuHQaHVQCYIEC8iFXnE+mavh23GOt7wBgug=="
14578
14578
  },
14579
14579
  "node_modules/netlify": {
14580
- "version": "10.1.0",
14581
- "resolved": "https://registry.npmjs.org/netlify/-/netlify-10.1.0.tgz",
14582
- "integrity": "sha512-c6ljxmQKc6CHXVlkAvxQc+YrI7vqnm2rHocucGflycRIm981sWkEM/GzMirF4ykgPAeMGltLBhFdjOO7OTI2Hw==",
14580
+ "version": "10.1.1",
14581
+ "resolved": "https://registry.npmjs.org/netlify/-/netlify-10.1.1.tgz",
14582
+ "integrity": "sha512-aXW+R0rhTpLWK9aa51QETcPI+U2WuMUWA7wPr0thBCsMy/q4tsuAUC3f9OXYXcR3AzRkLOTwqmAfzWb+zKmqGg==",
14583
14583
  "dependencies": {
14584
- "@netlify/open-api": "^2.7.0",
14584
+ "@netlify/open-api": "^2.8.0",
14585
14585
  "lodash.camelcase": "^4.3.0",
14586
14586
  "micro-api-client": "^3.3.0",
14587
14587
  "node-fetch": "^2.6.1",
@@ -22895,9 +22895,9 @@
22895
22895
  }
22896
22896
  },
22897
22897
  "@netlify/config": {
22898
- "version": "17.0.2",
22899
- "resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.2.tgz",
22900
- "integrity": "sha512-Wy/Z0i4f1MSZG0Db9MwV2Yoz0AYh1Z3A3dYitJQVIWZCARO9njh0pVw6V2F7PogASiaTb1xrBaXHIFE0almQ1g==",
22898
+ "version": "17.0.3",
22899
+ "resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.3.tgz",
22900
+ "integrity": "sha512-u1x//PEqKvsExPQtRMG4x786mKcAV6ykwqiN102szLlr5Dojb7X5y+6vb9wi4JJ/KNiVURP7Wna/sMxGvFi/Tw==",
22901
22901
  "requires": {
22902
22902
  "chalk": "^4.1.2",
22903
22903
  "cron-parser": "^4.1.0",
@@ -22913,7 +22913,7 @@
22913
22913
  "js-yaml": "^4.0.0",
22914
22914
  "make-dir": "^3.1.0",
22915
22915
  "map-obj": "^4.0.0",
22916
- "netlify": "^10.1.0",
22916
+ "netlify": "^10.1.1",
22917
22917
  "netlify-headers-parser": "^6.0.0",
22918
22918
  "netlify-redirect-parser": "^13.0.0",
22919
22919
  "omit.js": "^2.0.2",
@@ -23062,9 +23062,9 @@
23062
23062
  "integrity": "sha512-tiKmDcHM2riSVN79c0mJY/67EBDafXQAMitHuLiCDAMdtz3kfv+NqdVG5krgf5lWR8Uf8AeZrUW5Q9RP25REvw=="
23063
23063
  },
23064
23064
  "@netlify/eslint-config-node": {
23065
- "version": "4.0.5",
23066
- "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.0.5.tgz",
23067
- "integrity": "sha512-vmc1krx7ZxVrP3Iph9HISD5vFtfzoloW6L37yIpfnN76Z9oaOle+zRI1BCQniBMtlUTAJqUCfaMDtNfX+wQhdA==",
23065
+ "version": "4.0.6",
23066
+ "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.0.6.tgz",
23067
+ "integrity": "sha512-XjTw3l/U0DSfPH9WKc0dKMS/r6uy6lPx4FVQ9uX6CeL+DixQz6hym8778G2f4Kpxl3tEPnOGIz40WiNrnDzC5w==",
23068
23068
  "dev": true,
23069
23069
  "requires": {
23070
23070
  "@babel/core": "^7.13.8",
@@ -23307,9 +23307,9 @@
23307
23307
  "optional": true
23308
23308
  },
23309
23309
  "@netlify/open-api": {
23310
- "version": "2.7.0",
23311
- "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-2.7.0.tgz",
23312
- "integrity": "sha512-WzedpLK6XFs67naFDX1K3QWk3GKlUQVCuIlMuXb0dWvJvfB71R/Njk1bq0FqVllIWw2RRCQMkCIywEABbnB2Yg=="
23310
+ "version": "2.8.0",
23311
+ "resolved": "https://registry.npmjs.org/@netlify/open-api/-/open-api-2.8.0.tgz",
23312
+ "integrity": "sha512-lfNB/QYDgaP07pwm/nWEaWPvRAAGyhxvJqNzvxMijc7A4uwquMjlbYve8yYyd0LJXPwgBpGobwiQj5RA76xzUQ=="
23313
23313
  },
23314
23314
  "@netlify/plugin-edge-handlers": {
23315
23315
  "version": "3.0.0",
@@ -31640,11 +31640,11 @@
31640
31640
  "integrity": "sha512-AO81vsIO1k1sM4Zrd6Hu7regmJN1NSiAja10gc4bX3F0wd+9rQmcuHQaHVQCYIEC8iFXnE+mavh23GOt7wBgug=="
31641
31641
  },
31642
31642
  "netlify": {
31643
- "version": "10.1.0",
31644
- "resolved": "https://registry.npmjs.org/netlify/-/netlify-10.1.0.tgz",
31645
- "integrity": "sha512-c6ljxmQKc6CHXVlkAvxQc+YrI7vqnm2rHocucGflycRIm981sWkEM/GzMirF4ykgPAeMGltLBhFdjOO7OTI2Hw==",
31643
+ "version": "10.1.1",
31644
+ "resolved": "https://registry.npmjs.org/netlify/-/netlify-10.1.1.tgz",
31645
+ "integrity": "sha512-aXW+R0rhTpLWK9aa51QETcPI+U2WuMUWA7wPr0thBCsMy/q4tsuAUC3f9OXYXcR3AzRkLOTwqmAfzWb+zKmqGg==",
31646
31646
  "requires": {
31647
- "@netlify/open-api": "^2.7.0",
31647
+ "@netlify/open-api": "^2.8.0",
31648
31648
  "lodash.camelcase": "^4.3.0",
31649
31649
  "micro-api-client": "^3.3.0",
31650
31650
  "node-fetch": "^2.6.1",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "8.6.2",
4
+ "version": "8.6.6",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "@netlify/build": "^26.1.0",
82
- "@netlify/config": "^17.0.2",
82
+ "@netlify/config": "^17.0.3",
83
83
  "@netlify/framework-info": "^7.0.0",
84
84
  "@netlify/local-functions-proxy": "^1.1.1",
85
85
  "@netlify/plugin-edge-handlers": "^3.0.0",
@@ -147,7 +147,7 @@
147
147
  "minimist": "^1.2.5",
148
148
  "mock-require": "^3.0.3",
149
149
  "multiparty": "^4.2.1",
150
- "netlify": "^10.1.0",
150
+ "netlify": "^10.1.1",
151
151
  "netlify-headers-parser": "^6.0.0",
152
152
  "netlify-redirect-parser": "^13.0.0",
153
153
  "netlify-redirector": "^0.2.1",
@@ -194,7 +194,7 @@
194
194
  "@babel/preset-react": "^7.12.13",
195
195
  "@commitlint/cli": "^16.0.0",
196
196
  "@commitlint/config-conventional": "^16.0.0",
197
- "@netlify/eslint-config-node": "^4.0.5",
197
+ "@netlify/eslint-config-node": "^4.0.6",
198
198
  "ava": "^3.15.0",
199
199
  "eslint-plugin-sort-destructure-keys": "^1.3.5",
200
200
  "fast-glob": "^3.2.7",
@@ -41,8 +41,8 @@ const FALLBACK_HELP_CMD_WIDTH = 80
41
41
  const HELP_$ = NETLIFY_CYAN('$')
42
42
  // indent on commands or description on the help page
43
43
  const HELP_INDENT_WIDTH = 2
44
- // seperator width between term and description
45
- const HELP_SEPERATOR_WIDTH = 5
44
+ // separator width between term and description
45
+ const HELP_SEPARATOR_WIDTH = 5
46
46
 
47
47
  /**
48
48
  * Formats a help list correctly with the correct indent
@@ -213,7 +213,7 @@ class BaseCommand extends Command {
213
213
  const bang = isCommand ? `${HELP_$} ` : ''
214
214
 
215
215
  if (description) {
216
- const pad = termWidth + HELP_SEPERATOR_WIDTH
216
+ const pad = termWidth + HELP_SEPARATOR_WIDTH
217
217
  const fullText = `${bang}${term.padEnd(pad - (isCommand ? 2 : 0))}${chalk.grey(description)}`
218
218
  return helper.wrap(fullText, helpWidth - HELP_INDENT_WIDTH, pad)
219
219
  }
package/src/lib/api.js CHANGED
@@ -20,7 +20,7 @@ const getErrorMessage = async ({ response }) => {
20
20
  const checkResponse = async ({ response }) => {
21
21
  if (!response.ok) {
22
22
  const message = await getErrorMessage({ response }).catch(() => {})
23
- const errorPostfix = message && message ? ` and message '${message}'` : ''
23
+ const errorPostfix = message ? ` and message '${message}'` : ''
24
24
  throw new Error(`Request failed with status '${response.status}'${errorPostfix}`)
25
25
  }
26
26
  }
@@ -25,7 +25,6 @@ const detectNetlifyLambda = async function ({ packageJson } = {}) {
25
25
  if (functionDirectories.length === 1) {
26
26
  const srcFiles = [resolve(functionDirectories[0])]
27
27
 
28
- // eslint-disable-next-line no-await-in-loop
29
28
  const yarnExists = await fileExistsAsync('yarn.lock')
30
29
  const buildCommand = () => execa(yarnExists ? 'yarn' : 'npm', ['run', key])
31
30
 
@@ -20,7 +20,7 @@ module.exports = function generatePrompts(settings) {
20
20
  console.log('')
21
21
  }
22
22
 
23
- // Handle shorthand config. Probably will be removed. Severly limited + not great UX
23
+ // Handle shorthand config. Probably will be removed. Severely limited + not great UX
24
24
  if (typeof setting === 'string' || typeof setting === 'boolean') {
25
25
  if (typeof setting === 'string') {
26
26
  prompt = {
@@ -34,7 +34,6 @@ const getGlobalConfig = async function () {
34
34
  // eslint-disable-next-line fp/no-loops
35
35
  for (let retry = 1; retry <= retries; retry++) {
36
36
  try {
37
- // eslint-disable-next-line no-await-in-loop
38
37
  return await getGlobalConfigOnce()
39
38
  } catch (error) {
40
39
  if (retry === retries) {
@@ -17,7 +17,7 @@ const parseRawFlags = function (raw) {
17
17
  const next = array[index + 1]
18
18
  if (!next) {
19
19
  acc[key] = true
20
- } else if (next && next && /^-{1,2}/.test(next)) {
20
+ } else if (/^-{1,2}/.test(next)) {
21
21
  acc[key] = true
22
22
  } else {
23
23
  acc[key] = next ? aggressiveJSONParse(next) : true
@@ -196,7 +196,7 @@ const forwardMessagesToLog = ({ subprocess }) => {
196
196
  stopSpinner({
197
197
  spinner,
198
198
  error: true,
199
- text: `${NETLIFYDEVERR} An error occured while bundling processing the messages from routing-local-proxy: ${err}`,
199
+ text: `${NETLIFYDEVERR} An error occurred while bundling processing the messages from routing-local-proxy: ${err}`,
200
200
  })
201
201
 
202
202
  firstBundleReject(err)