netlify-cli 15.4.2 → 15.5.1
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
3
|
"description": "Netlify command line tool",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.5.1",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@bugsnag/js": "7.20.2",
|
|
46
46
|
"@fastify/static": "6.10.2",
|
|
47
|
-
"@netlify/build": "29.12.
|
|
47
|
+
"@netlify/build": "29.12.4",
|
|
48
48
|
"@netlify/build-info": "7.0.6",
|
|
49
|
-
"@netlify/config": "20.4.
|
|
49
|
+
"@netlify/config": "20.4.6",
|
|
50
50
|
"@netlify/edge-bundler": "8.16.2",
|
|
51
51
|
"@netlify/framework-info": "9.8.10",
|
|
52
52
|
"@netlify/local-functions-proxy": "1.1.1",
|
|
53
|
-
"@netlify/zip-it-and-ship-it": "9.
|
|
53
|
+
"@netlify/zip-it-and-ship-it": "9.9.1",
|
|
54
54
|
"@octokit/rest": "19.0.11",
|
|
55
55
|
"@skn0tt/lambda-local": "2.0.3",
|
|
56
56
|
"ansi-escapes": "6.2.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"from2-array": "0.0.4",
|
|
92
92
|
"fuzzy": "0.1.3",
|
|
93
93
|
"get-port": "5.1.1",
|
|
94
|
-
"gh-release-fetch": "4.0.
|
|
94
|
+
"gh-release-fetch": "4.0.2",
|
|
95
95
|
"git-repo-info": "2.1.1",
|
|
96
96
|
"gitconfiglocal": "2.1.0",
|
|
97
97
|
"hasbin": "1.2.3",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"log-update": "5.0.1",
|
|
115
115
|
"minimist": "1.2.8",
|
|
116
116
|
"multiparty": "4.2.3",
|
|
117
|
-
"netlify": "13.1.
|
|
117
|
+
"netlify": "13.1.9",
|
|
118
118
|
"netlify-headers-parser": "7.1.2",
|
|
119
119
|
"netlify-redirect-parser": "14.1.3",
|
|
120
120
|
"netlify-redirector": "0.4.0",
|
|
@@ -359,6 +359,12 @@ const runDeploy = async ({
|
|
|
359
359
|
const deployUrl = results.deploy.deploy_ssl_url || results.deploy.deploy_url
|
|
360
360
|
const logsUrl = `${results.deploy.admin_url}/deploys/${results.deploy.id}`
|
|
361
361
|
|
|
362
|
+
let functionLogsUrl = `${results.deploy.admin_url}/functions`
|
|
363
|
+
|
|
364
|
+
if (!deployToProduction) {
|
|
365
|
+
functionLogsUrl += `?scope=deploy:${deployId}`
|
|
366
|
+
}
|
|
367
|
+
|
|
362
368
|
return {
|
|
363
369
|
siteId: results.deploy.site_id,
|
|
364
370
|
siteName: results.deploy.name,
|
|
@@ -366,6 +372,7 @@ const runDeploy = async ({
|
|
|
366
372
|
siteUrl,
|
|
367
373
|
deployUrl,
|
|
368
374
|
logsUrl,
|
|
375
|
+
functionLogsUrl,
|
|
369
376
|
}
|
|
370
377
|
}
|
|
371
378
|
|
|
@@ -441,15 +448,15 @@ const bundleEdgeFunctions = async (options) => {
|
|
|
441
448
|
*/
|
|
442
449
|
const printResults = ({ deployToProduction, json, results, runBuildCommand }) => {
|
|
443
450
|
const msgData = {
|
|
444
|
-
|
|
445
|
-
'
|
|
451
|
+
'Build logs': results.logsUrl,
|
|
452
|
+
'Function logs': results.functionLogsUrl,
|
|
446
453
|
}
|
|
447
454
|
|
|
448
455
|
if (deployToProduction) {
|
|
456
|
+
msgData['Unique deploy URL'] = results.deployUrl
|
|
449
457
|
msgData['Website URL'] = results.siteUrl
|
|
450
458
|
} else {
|
|
451
|
-
|
|
452
|
-
msgData['Website Draft URL'] = results.deployUrl
|
|
459
|
+
msgData['Website draft URL'] = results.deployUrl
|
|
453
460
|
}
|
|
454
461
|
|
|
455
462
|
// Spacer
|
|
@@ -16,7 +16,6 @@ export const detectNetlifyLambda = async function ({ packageJson } = {}) {
|
|
|
16
16
|
|
|
17
17
|
const matchingScripts = Object.entries(scripts).filter(([, script]) => script.match(/netlify-lambda\s+build/))
|
|
18
18
|
|
|
19
|
-
// eslint-disable-next-line fp/no-loops
|
|
20
19
|
for (const [key, script] of matchingScripts) {
|
|
21
20
|
// E.g. ["netlify-lambda", "build", "functions/folder"]
|
|
22
21
|
const match = minimist(script.split(' '), {
|
|
@@ -87,7 +87,14 @@ export const createHandler = function (options) {
|
|
|
87
87
|
|
|
88
88
|
let requestQuery = request.query
|
|
89
89
|
if (request.header('x-netlify-original-search')) {
|
|
90
|
-
|
|
90
|
+
const newRequestQuery = {}
|
|
91
|
+
const searchParams = new URLSearchParams(request.header('x-netlify-original-search'))
|
|
92
|
+
|
|
93
|
+
for (const key of searchParams.keys()) {
|
|
94
|
+
newRequestQuery[key] = searchParams.getAll(key)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
requestQuery = newRequestQuery
|
|
91
98
|
delete request.headers['x-netlify-original-search']
|
|
92
99
|
}
|
|
93
100
|
|
package/src/utils/dev.mjs
CHANGED
|
@@ -167,7 +167,6 @@ export const getDotEnvVariables = async ({ devConfig, env, site }) => {
|
|
|
167
167
|
* @return {void}
|
|
168
168
|
*/
|
|
169
169
|
export const injectEnvVariables = (env) => {
|
|
170
|
-
// eslint-disable-next-line fp/no-loops
|
|
171
170
|
for (const [key, variable] of Object.entries(env)) {
|
|
172
171
|
const existsInProcess = process.env[key] !== undefined
|
|
173
172
|
const [usedSource, ...overriddenSources] = existsInProcess ? ['process', ...variable.sources] : variable.sources
|