netlify-cli 8.6.0 → 8.6.4
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/npm-shrinkwrap.json +329 -329
- package/package.json +3 -3
- package/src/commands/base-command.js +3 -3
- package/src/functions-templates/rust/hello-world/Cargo.toml +1 -1
- package/src/functions-templates/typescript/hello-world/package-lock.json +7 -7
- package/src/lib/api.js +1 -1
- package/src/utils/addons/prompts.js +1 -1
- package/src/utils/deploy/upload-files.js +1 -1
- package/src/utils/parse-raw-flags.js +1 -1
- package/src/utils/rules-proxy.js +1 -1
- package/src/utils/traffic-mesh.js +1 -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.
|
|
4
|
+
"version": "8.6.4",
|
|
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
|
|
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",
|
|
@@ -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.
|
|
197
|
+
"@netlify/eslint-config-node": "^4.0.5",
|
|
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
|
-
//
|
|
45
|
-
const
|
|
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 +
|
|
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
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@netlify/functions": "^0.10.0",
|
|
13
|
-
"@types/node": "^14.18.
|
|
13
|
+
"@types/node": "^14.18.4",
|
|
14
14
|
"typescript": "^4.0.0"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@types/node": {
|
|
29
|
-
"version": "14.18.
|
|
30
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.
|
|
31
|
-
"integrity": "sha512-
|
|
29
|
+
"version": "14.18.4",
|
|
30
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.4.tgz",
|
|
31
|
+
"integrity": "sha512-swe3lD4izOJWHuxvsZdDFRq6S9i6koJsXOnQKYekhSO5JTizMVirUFgY/bUsaOJQj8oSD4oxmRYPBM/0b6jpdw=="
|
|
32
32
|
},
|
|
33
33
|
"node_modules/is-promise": {
|
|
34
34
|
"version": "4.0.0",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"@types/node": {
|
|
61
|
-
"version": "14.18.
|
|
62
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.
|
|
63
|
-
"integrity": "sha512-
|
|
61
|
+
"version": "14.18.4",
|
|
62
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.4.tgz",
|
|
63
|
+
"integrity": "sha512-swe3lD4izOJWHuxvsZdDFRq6S9i6koJsXOnQKYekhSO5JTizMVirUFgY/bUsaOJQj8oSD4oxmRYPBM/0b6jpdw=="
|
|
64
64
|
},
|
|
65
65
|
"is-promise": {
|
|
66
66
|
"version": "4.0.0",
|
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
|
|
23
|
+
const errorPostfix = message ? ` and message '${message}'` : ''
|
|
24
24
|
throw new Error(`Request failed with status '${response.status}'${errorPostfix}`)
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -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.
|
|
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 = {
|
|
@@ -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 (
|
|
20
|
+
} else if (/^-{1,2}/.test(next)) {
|
|
21
21
|
acc[key] = true
|
|
22
22
|
} else {
|
|
23
23
|
acc[key] = next ? aggressiveJSONParse(next) : true
|
package/src/utils/rules-proxy.js
CHANGED
|
@@ -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(
|
|
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
|
|
199
|
+
text: `${NETLIFYDEVERR} An error occurred while bundling processing the messages from routing-local-proxy: ${err}`,
|
|
200
200
|
})
|
|
201
201
|
|
|
202
202
|
firstBundleReject(err)
|