netlify-cli 10.6.1 → 10.6.2
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
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.2",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "10.6.
|
|
9
|
+
"version": "10.6.2",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@netlify/build": "^27.
|
|
13
|
+
"@netlify/build": "^27.2.0",
|
|
14
14
|
"@netlify/config": "^18.0.2",
|
|
15
15
|
"@netlify/edge-bundler": "^1.4.1",
|
|
16
16
|
"@netlify/framework-info": "^9.1.0",
|
|
@@ -1177,9 +1177,9 @@
|
|
|
1177
1177
|
}
|
|
1178
1178
|
},
|
|
1179
1179
|
"node_modules/@netlify/build": {
|
|
1180
|
-
"version": "27.
|
|
1181
|
-
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.
|
|
1182
|
-
"integrity": "sha512-
|
|
1180
|
+
"version": "27.2.0",
|
|
1181
|
+
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.2.0.tgz",
|
|
1182
|
+
"integrity": "sha512-Kn9OiZd7V2M+ZHKI57Poo58xkOpN40Q5cOD8orBpEo6ZulIAeJbLLSvVnclSqU8/cC3wzeb6XXSWfe9YMZ6bnw==",
|
|
1183
1183
|
"dependencies": {
|
|
1184
1184
|
"@bugsnag/js": "^7.0.0",
|
|
1185
1185
|
"@netlify/cache-utils": "^4.0.0",
|
|
@@ -24009,9 +24009,9 @@
|
|
|
24009
24009
|
}
|
|
24010
24010
|
},
|
|
24011
24011
|
"@netlify/build": {
|
|
24012
|
-
"version": "27.
|
|
24013
|
-
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.
|
|
24014
|
-
"integrity": "sha512-
|
|
24012
|
+
"version": "27.2.0",
|
|
24013
|
+
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.2.0.tgz",
|
|
24014
|
+
"integrity": "sha512-Kn9OiZd7V2M+ZHKI57Poo58xkOpN40Q5cOD8orBpEo6ZulIAeJbLLSvVnclSqU8/cC3wzeb6XXSWfe9YMZ6bnw==",
|
|
24015
24015
|
"requires": {
|
|
24016
24016
|
"@bugsnag/js": "^7.0.0",
|
|
24017
24017
|
"@netlify/cache-utils": "^4.0.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": "10.6.
|
|
4
|
+
"version": "10.6.2",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Abraham Schilling <AbrahamSchilling@gmail.com> (https://gitlab.com/n4bb12)",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{mjs,cjs,js,md,yml,json,html}\" \"*.{mjs,cjs,js,yml,json,html}\" \".*.{mjs,cjs,js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!**/*/package-lock.json\" \"!.github/**/*.md\""
|
|
213
213
|
},
|
|
214
214
|
"dependencies": {
|
|
215
|
-
"@netlify/build": "^27.
|
|
215
|
+
"@netlify/build": "^27.2.0",
|
|
216
216
|
"@netlify/config": "^18.0.2",
|
|
217
217
|
"@netlify/edge-bundler": "^1.4.1",
|
|
218
218
|
"@netlify/framework-info": "^9.1.0",
|
|
@@ -5,7 +5,7 @@ const { cwd, env } = require('process')
|
|
|
5
5
|
const getAvailablePort = require('get-port')
|
|
6
6
|
const { v4: generateUUID } = require('uuid')
|
|
7
7
|
|
|
8
|
-
const { NETLIFYDEVERR, NETLIFYDEVWARN, chalk, log } = require('../../utils/command-helpers')
|
|
8
|
+
const { NETLIFYDEVERR, NETLIFYDEVWARN, chalk, error, log } = require('../../utils/command-helpers')
|
|
9
9
|
const { getGeoLocation } = require('../geo-location')
|
|
10
10
|
const { getPathInProject } = require('../settings')
|
|
11
11
|
const { startSpinner, stopSpinner } = require('../spinner')
|
|
@@ -22,8 +22,11 @@ const LOCAL_HOST = '127.0.0.1'
|
|
|
22
22
|
const getDownloadUpdateFunctions = () => {
|
|
23
23
|
let spinner
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @param {Error=} error_
|
|
27
|
+
*/
|
|
28
|
+
const onAfterDownload = (error_) => {
|
|
29
|
+
stopSpinner({ error: Boolean(error_), spinner })
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
const onBeforeDownload = () => {
|
|
@@ -74,16 +77,24 @@ const initializeProxy = async ({
|
|
|
74
77
|
projectDir,
|
|
75
78
|
})
|
|
76
79
|
const hasEdgeFunctions = userFunctionsPath !== undefined || internalFunctions.length !== 0
|
|
80
|
+
let hasServerError = false
|
|
77
81
|
|
|
78
82
|
return async (req) => {
|
|
79
|
-
if (req.headers[headers.Passthrough] !== undefined || !hasEdgeFunctions) {
|
|
83
|
+
if (req.headers[headers.Passthrough] !== undefined || !hasEdgeFunctions || hasServerError) {
|
|
80
84
|
return
|
|
81
85
|
}
|
|
82
86
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
let promiseResult
|
|
88
|
+
|
|
89
|
+
try {
|
|
90
|
+
promiseResult = await Promise.all([getGeoLocation({ mode: geolocationMode, offline, state }), server])
|
|
91
|
+
} catch (error_) {
|
|
92
|
+
error(error_.message, { exit: false })
|
|
93
|
+
hasServerError = true
|
|
94
|
+
return
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const [geoLocation, { registry }] = promiseResult
|
|
87
98
|
|
|
88
99
|
// Setting header with geolocation.
|
|
89
100
|
req.headers[headers.Geo] = JSON.stringify(geoLocation)
|