netlify-cli 8.6.1 → 8.6.5

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,16 +1,16 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "8.6.1",
3
+ "version": "8.6.5",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "8.6.1",
9
+ "version": "8.6.5",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@netlify/build": "^26.0.2",
13
+ "@netlify/build": "^26.1.0",
14
14
  "@netlify/config": "^17.0.2",
15
15
  "@netlify/framework-info": "^7.0.0",
16
16
  "@netlify/local-functions-proxy": "^1.1.1",
@@ -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",
@@ -2460,9 +2460,9 @@
2460
2460
  }
2461
2461
  },
2462
2462
  "node_modules/@netlify/build": {
2463
- "version": "26.0.2",
2464
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.0.2.tgz",
2465
- "integrity": "sha512-Ecq5zVAwiBvWew3alc8UVap8JMaAGNsFnOaL90Veuf/87kT6Y+otJfAeFLiuMqaa3ByBqLqn13BwaYqEqtczEw==",
2463
+ "version": "26.1.0",
2464
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.1.0.tgz",
2465
+ "integrity": "sha512-BZEC/8jUizGkZboc7RGGTC23KcFUH9MawpfH5ecFVM30gzL3LEdAOFZS/xvgffC3s5s2vsnZenslICowUpJueA==",
2466
2466
  "dependencies": {
2467
2467
  "@bugsnag/js": "^7.0.0",
2468
2468
  "@netlify/cache-utils": "^4.0.0",
@@ -2612,17 +2612,6 @@
2612
2612
  "url": "https://github.com/sponsors/sindresorhus"
2613
2613
  }
2614
2614
  },
2615
- "node_modules/@netlify/build/node_modules/ansi-escapes/node_modules/type-fest": {
2616
- "version": "0.21.3",
2617
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
2618
- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
2619
- "engines": {
2620
- "node": ">=10"
2621
- },
2622
- "funding": {
2623
- "url": "https://github.com/sponsors/sindresorhus"
2624
- }
2625
- },
2626
2615
  "node_modules/@netlify/build/node_modules/ansi-styles": {
2627
2616
  "version": "4.3.0",
2628
2617
  "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
@@ -2734,6 +2723,17 @@
2734
2723
  "url": "https://github.com/sindresorhus/got?sponsor=1"
2735
2724
  }
2736
2725
  },
2726
+ "node_modules/@netlify/build/node_modules/got/node_modules/type-fest": {
2727
+ "version": "0.10.0",
2728
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.10.0.tgz",
2729
+ "integrity": "sha512-EUV9jo4sffrwlg8s0zDhP0T2WD3pru5Xi0+HTE3zTUmBaZNhfkite9PdSJwdXLwPVW0jnAHT56pZHIOYckPEiw==",
2730
+ "engines": {
2731
+ "node": ">=8"
2732
+ },
2733
+ "funding": {
2734
+ "url": "https://github.com/sponsors/sindresorhus"
2735
+ }
2736
+ },
2737
2737
  "node_modules/@netlify/build/node_modules/mimic-response": {
2738
2738
  "version": "2.1.0",
2739
2739
  "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz",
@@ -2772,11 +2772,11 @@
2772
2772
  }
2773
2773
  },
2774
2774
  "node_modules/@netlify/build/node_modules/type-fest": {
2775
- "version": "0.10.0",
2776
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.10.0.tgz",
2777
- "integrity": "sha512-EUV9jo4sffrwlg8s0zDhP0T2WD3pru5Xi0+HTE3zTUmBaZNhfkite9PdSJwdXLwPVW0jnAHT56pZHIOYckPEiw==",
2775
+ "version": "0.21.3",
2776
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
2777
+ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
2778
2778
  "engines": {
2779
- "node": ">=8"
2779
+ "node": ">=10"
2780
2780
  },
2781
2781
  "funding": {
2782
2782
  "url": "https://github.com/sponsors/sindresorhus"
@@ -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",
@@ -22515,9 +22515,9 @@
22515
22515
  }
22516
22516
  },
22517
22517
  "@netlify/build": {
22518
- "version": "26.0.2",
22519
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.0.2.tgz",
22520
- "integrity": "sha512-Ecq5zVAwiBvWew3alc8UVap8JMaAGNsFnOaL90Veuf/87kT6Y+otJfAeFLiuMqaa3ByBqLqn13BwaYqEqtczEw==",
22518
+ "version": "26.1.0",
22519
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.1.0.tgz",
22520
+ "integrity": "sha512-BZEC/8jUizGkZboc7RGGTC23KcFUH9MawpfH5ecFVM30gzL3LEdAOFZS/xvgffC3s5s2vsnZenslICowUpJueA==",
22521
22521
  "requires": {
22522
22522
  "@bugsnag/js": "^7.0.0",
22523
22523
  "@netlify/cache-utils": "^4.0.0",
@@ -22640,13 +22640,6 @@
22640
22640
  "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",
22641
22641
  "requires": {
22642
22642
  "type-fest": "^0.21.3"
22643
- },
22644
- "dependencies": {
22645
- "type-fest": {
22646
- "version": "0.21.3",
22647
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
22648
- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="
22649
- }
22650
22643
  }
22651
22644
  },
22652
22645
  "ansi-styles": {
@@ -22725,6 +22718,13 @@
22725
22718
  "responselike": "^2.0.0",
22726
22719
  "to-readable-stream": "^2.0.0",
22727
22720
  "type-fest": "^0.10.0"
22721
+ },
22722
+ "dependencies": {
22723
+ "type-fest": {
22724
+ "version": "0.10.0",
22725
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.10.0.tgz",
22726
+ "integrity": "sha512-EUV9jo4sffrwlg8s0zDhP0T2WD3pru5Xi0+HTE3zTUmBaZNhfkite9PdSJwdXLwPVW0jnAHT56pZHIOYckPEiw=="
22727
+ }
22728
22728
  }
22729
22729
  },
22730
22730
  "mimic-response": {
@@ -22750,9 +22750,9 @@
22750
22750
  }
22751
22751
  },
22752
22752
  "type-fest": {
22753
- "version": "0.10.0",
22754
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.10.0.tgz",
22755
- "integrity": "sha512-EUV9jo4sffrwlg8s0zDhP0T2WD3pru5Xi0+HTE3zTUmBaZNhfkite9PdSJwdXLwPVW0jnAHT56pZHIOYckPEiw=="
22753
+ "version": "0.21.3",
22754
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
22755
+ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="
22756
22756
  },
22757
22757
  "wrap-ansi": {
22758
22758
  "version": "6.2.0",
@@ -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.1",
4
+ "version": "8.6.5",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
@@ -78,7 +78,7 @@
78
78
  "prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{js,md,yml,json,html}\" \"*.{js,yml,json,html}\" \".*.{js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!.github/**/*.md\""
79
79
  },
80
80
  "dependencies": {
81
- "@netlify/build": "^26.0.2",
81
+ "@netlify/build": "^26.1.0",
82
82
  "@netlify/config": "^17.0.2",
83
83
  "@netlify/framework-info": "^7.0.0",
84
84
  "@netlify/local-functions-proxy": "^1.1.1",
@@ -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 = {
@@ -105,7 +105,7 @@ const retryUpload = (uploadFn, maxRetry) =>
105
105
  reject(lastError)
106
106
  })
107
107
 
108
- tryUpload(0, 0)
108
+ tryUpload()
109
109
  })
110
110
 
111
111
  module.exports = { uploadFiles }
@@ -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
@@ -73,7 +73,7 @@ const createRewriter = async function ({ configPath, distDir, jwtRoleClaim, jwtS
73
73
  const cookieValues = cookie.parse(req.headers.cookie || '')
74
74
  const headers = {
75
75
  'x-language': cookieValues.nf_lang || getLanguage(req.headers),
76
- 'x-country': cookieValues.nf_country || getCountry(req),
76
+ 'x-country': cookieValues.nf_country || getCountry(),
77
77
  ...req.headers,
78
78
  }
79
79
 
@@ -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)