netlify-cli 8.6.2 → 8.6.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/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/src/lib/api.js +1 -1
- package/src/utils/parse-raw-flags.js +1 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.3",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "8.6.
|
|
9
|
+
"version": "8.6.3",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED
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
|
}
|
|
@@ -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
|