netlify-cli 9.13.2 → 9.13.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
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "9.13.
|
|
3
|
+
"version": "9.13.3",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "9.13.
|
|
9
|
+
"version": "9.13.3",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@netlify/build": "^26.
|
|
13
|
+
"@netlify/build": "^26.5.0",
|
|
14
14
|
"@netlify/config": "^17.0.18",
|
|
15
15
|
"@netlify/framework-info": "^9.0.2",
|
|
16
16
|
"@netlify/local-functions-proxy": "^1.1.1",
|
|
17
17
|
"@netlify/plugin-edge-handlers": "^3.0.7",
|
|
18
|
-
"@netlify/plugins-list": "^6.16.
|
|
18
|
+
"@netlify/plugins-list": "^6.16.1",
|
|
19
19
|
"@netlify/routing-local-proxy": "^0.34.1",
|
|
20
20
|
"@netlify/zip-it-and-ship-it": "^5.9.0",
|
|
21
21
|
"@octokit/rest": "^18.0.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"hasbin": "^1.2.3",
|
|
63
63
|
"hasha": "^5.2.2",
|
|
64
64
|
"http-proxy": "^1.18.0",
|
|
65
|
-
"http-proxy-middleware": "^2.0.
|
|
65
|
+
"http-proxy-middleware": "^2.0.0",
|
|
66
66
|
"https-proxy-agent": "^5.0.0",
|
|
67
67
|
"inquirer": "^6.5.1",
|
|
68
68
|
"inquirer-autocomplete-prompt": "^1.0.1",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"tomlify-j0.4": "^3.0.0",
|
|
150
150
|
"tree-kill": "^1.2.2",
|
|
151
151
|
"typescript": "^4.4.4",
|
|
152
|
-
"verdaccio": "^5.
|
|
152
|
+
"verdaccio": "^5.4.0"
|
|
153
153
|
},
|
|
154
154
|
"engines": {
|
|
155
155
|
"node": "^12.20.0 || ^14.14.0 || >=16.0.0"
|
|
@@ -2359,9 +2359,9 @@
|
|
|
2359
2359
|
}
|
|
2360
2360
|
},
|
|
2361
2361
|
"node_modules/@netlify/build": {
|
|
2362
|
-
"version": "26.
|
|
2363
|
-
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.
|
|
2364
|
-
"integrity": "sha512-
|
|
2362
|
+
"version": "26.5.0",
|
|
2363
|
+
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.0.tgz",
|
|
2364
|
+
"integrity": "sha512-aF6H6CnWcggf5ObDYMzreGq9tKtny95Ys9GhxCMxoQxfhcw3kab984Xj1epk3wlKNt1vJbZ3bndlme3LDG/cOg==",
|
|
2365
2365
|
"dependencies": {
|
|
2366
2366
|
"@bugsnag/js": "^7.0.0",
|
|
2367
2367
|
"@netlify/cache-utils": "^4.0.0",
|
|
@@ -2504,9 +2504,9 @@
|
|
|
2504
2504
|
}
|
|
2505
2505
|
},
|
|
2506
2506
|
"node_modules/@netlify/build/node_modules/chalk": {
|
|
2507
|
-
"version": "5.0.
|
|
2508
|
-
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.
|
|
2509
|
-
"integrity": "sha512
|
|
2507
|
+
"version": "5.0.1",
|
|
2508
|
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz",
|
|
2509
|
+
"integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==",
|
|
2510
2510
|
"engines": {
|
|
2511
2511
|
"node": "^12.17.0 || ^14.13 || >=16.0.0"
|
|
2512
2512
|
},
|
|
@@ -4317,9 +4317,9 @@
|
|
|
4317
4317
|
}
|
|
4318
4318
|
},
|
|
4319
4319
|
"node_modules/@netlify/plugins-list": {
|
|
4320
|
-
"version": "6.16.
|
|
4321
|
-
"resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.16.
|
|
4322
|
-
"integrity": "sha512-
|
|
4320
|
+
"version": "6.16.1",
|
|
4321
|
+
"resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.16.1.tgz",
|
|
4322
|
+
"integrity": "sha512-DCgAJvCniSmXghDVvWSa5dgAWYVpOUfRLTVvv0V/GXDd1VkvpHtmZ0FD+AE8hxqSfmY8FLuagh6USi8xeBfwaA==",
|
|
4323
4323
|
"engines": {
|
|
4324
4324
|
"node": "^12.20.0 || ^14.14.0 || >=16.0.0"
|
|
4325
4325
|
}
|
|
@@ -26043,9 +26043,9 @@
|
|
|
26043
26043
|
}
|
|
26044
26044
|
},
|
|
26045
26045
|
"@netlify/build": {
|
|
26046
|
-
"version": "26.
|
|
26047
|
-
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.
|
|
26048
|
-
"integrity": "sha512-
|
|
26046
|
+
"version": "26.5.0",
|
|
26047
|
+
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.0.tgz",
|
|
26048
|
+
"integrity": "sha512-aF6H6CnWcggf5ObDYMzreGq9tKtny95Ys9GhxCMxoQxfhcw3kab984Xj1epk3wlKNt1vJbZ3bndlme3LDG/cOg==",
|
|
26049
26049
|
"requires": {
|
|
26050
26050
|
"@bugsnag/js": "^7.0.0",
|
|
26051
26051
|
"@netlify/cache-utils": "^4.0.0",
|
|
@@ -26149,9 +26149,9 @@
|
|
|
26149
26149
|
}
|
|
26150
26150
|
},
|
|
26151
26151
|
"chalk": {
|
|
26152
|
-
"version": "5.0.
|
|
26153
|
-
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.
|
|
26154
|
-
"integrity": "sha512
|
|
26152
|
+
"version": "5.0.1",
|
|
26153
|
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz",
|
|
26154
|
+
"integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w=="
|
|
26155
26155
|
},
|
|
26156
26156
|
"decompress-response": {
|
|
26157
26157
|
"version": "5.0.0",
|
|
@@ -27237,9 +27237,9 @@
|
|
|
27237
27237
|
}
|
|
27238
27238
|
},
|
|
27239
27239
|
"@netlify/plugins-list": {
|
|
27240
|
-
"version": "6.16.
|
|
27241
|
-
"resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.16.
|
|
27242
|
-
"integrity": "sha512-
|
|
27240
|
+
"version": "6.16.1",
|
|
27241
|
+
"resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.16.1.tgz",
|
|
27242
|
+
"integrity": "sha512-DCgAJvCniSmXghDVvWSa5dgAWYVpOUfRLTVvv0V/GXDd1VkvpHtmZ0FD+AE8hxqSfmY8FLuagh6USi8xeBfwaA=="
|
|
27243
27243
|
},
|
|
27244
27244
|
"@netlify/routing-local-proxy": {
|
|
27245
27245
|
"version": "0.34.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": "9.13.
|
|
4
|
+
"version": "9.13.3",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Abraham Schilling <AbrahamSchilling@gmail.com> (https://gitlab.com/n4bb12)",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"HonkingGoose",
|
|
48
48
|
"Ian Martorell <ianmartorell@gmail.com>",
|
|
49
49
|
"Ibrahima",
|
|
50
|
+
"Jackie Macharia (wangoimacharia.dev)",
|
|
50
51
|
"Jacob Schatz",
|
|
51
52
|
"Jake Jarvis <jake@jarv.is> (https://twitter.com/jakejarvis)",
|
|
52
53
|
"Jakob Warkotsch <j.warkotsch@gmail.com>",
|
|
@@ -202,12 +203,12 @@
|
|
|
202
203
|
"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\" \"!site/package-lock.json\" \"!.github/**/*.md\""
|
|
203
204
|
},
|
|
204
205
|
"dependencies": {
|
|
205
|
-
"@netlify/build": "^26.
|
|
206
|
+
"@netlify/build": "^26.5.0",
|
|
206
207
|
"@netlify/config": "^17.0.18",
|
|
207
208
|
"@netlify/framework-info": "^9.0.2",
|
|
208
209
|
"@netlify/local-functions-proxy": "^1.1.1",
|
|
209
210
|
"@netlify/plugin-edge-handlers": "^3.0.7",
|
|
210
|
-
"@netlify/plugins-list": "^6.16.
|
|
211
|
+
"@netlify/plugins-list": "^6.16.1",
|
|
211
212
|
"@netlify/routing-local-proxy": "^0.34.1",
|
|
212
213
|
"@netlify/zip-it-and-ship-it": "^5.9.0",
|
|
213
214
|
"@octokit/rest": "^18.0.0",
|
|
@@ -5,9 +5,8 @@ const inquirer = require('inquirer')
|
|
|
5
5
|
const pick = require('lodash/pick')
|
|
6
6
|
const parseGitHubUrl = require('parse-github-url')
|
|
7
7
|
const prettyjson = require('prettyjson')
|
|
8
|
-
const terminalLink = require('terminal-link')
|
|
9
8
|
|
|
10
|
-
const { chalk, error, getRepoData, log, logJson, track, warn } = require('../../utils')
|
|
9
|
+
const { chalk, error, getRepoData, getTerminalLink, log, logJson, track, warn } = require('../../utils')
|
|
11
10
|
const { configureRepo } = require('../../utils/init/config')
|
|
12
11
|
const { getGitHubToken } = require('../../utils/init/config-github')
|
|
13
12
|
const { createRepo, getTemplatesFromGitHub, validateTemplate } = require('../../utils/sites/utils')
|
|
@@ -77,7 +76,7 @@ const sitesCreateTemplate = async (repository, options, command) => {
|
|
|
77
76
|
if (!exists) {
|
|
78
77
|
const githubLink = getGitHubLink({ options, templateName })
|
|
79
78
|
error(
|
|
80
|
-
`Could not find template ${chalk.bold(templateName)}. Please verify it exists and you can ${
|
|
79
|
+
`Could not find template ${chalk.bold(templateName)}. Please verify it exists and you can ${getTerminalLink(
|
|
81
80
|
'access to it on GitHub',
|
|
82
81
|
githubLink,
|
|
83
82
|
)}`,
|
|
@@ -86,7 +85,7 @@ const sitesCreateTemplate = async (repository, options, command) => {
|
|
|
86
85
|
}
|
|
87
86
|
if (!isTemplate) {
|
|
88
87
|
const githubLink = getGitHubLink({ options, templateName })
|
|
89
|
-
error(`${
|
|
88
|
+
error(`${getTerminalLink(chalk.bold(templateName), githubLink)} is not a valid GitHub template`)
|
|
90
89
|
return
|
|
91
90
|
}
|
|
92
91
|
|
package/src/lib/exec-fetcher.js
CHANGED
|
@@ -4,11 +4,10 @@ const process = require('process')
|
|
|
4
4
|
|
|
5
5
|
const { fetchLatest, fetchVersion, newerVersion, updateAvailable } = require('gh-release-fetch')
|
|
6
6
|
const isExe = require('isexe')
|
|
7
|
-
const terminalLink = require('terminal-link')
|
|
8
7
|
|
|
9
8
|
// cannot directly import from ../utils as it would create a circular dependency.
|
|
10
9
|
// the file `src/utils/live-tunnel.js` depends on this file
|
|
11
|
-
const { NETLIFYDEVWARN, error, log } = require('../utils/command-helpers')
|
|
10
|
+
const { NETLIFYDEVWARN, error, getTerminalLink, log } = require('../utils/command-helpers')
|
|
12
11
|
const execa = require('../utils/execa')
|
|
13
12
|
|
|
14
13
|
const isWindows = () => process.platform === 'win32'
|
|
@@ -125,7 +124,7 @@ const fetchLatestVersion = async ({ destination, execName, extension, latestVers
|
|
|
125
124
|
`${execName} is not supported on ${platform} with CPU architecture ${arch}`,
|
|
126
125
|
)
|
|
127
126
|
|
|
128
|
-
const issueLink =
|
|
127
|
+
const issueLink = getTerminalLink('Create a new CLI issue', createIssueLink.href)
|
|
129
128
|
|
|
130
129
|
error(`The operating system ${platform} with the CPU architecture ${arch} is currently not supported!
|
|
131
130
|
|
|
@@ -3,9 +3,16 @@ const { mkdir } = require('fs').promises
|
|
|
3
3
|
const { extname, isAbsolute, join } = require('path')
|
|
4
4
|
const { env } = require('process')
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const {
|
|
7
|
+
NETLIFYDEVERR,
|
|
8
|
+
NETLIFYDEVLOG,
|
|
9
|
+
NETLIFYDEVWARN,
|
|
10
|
+
chalk,
|
|
11
|
+
getTerminalLink,
|
|
12
|
+
log,
|
|
13
|
+
warn,
|
|
14
|
+
watchDebounced,
|
|
15
|
+
} = require('../../utils')
|
|
9
16
|
const { getLogMessage } = require('../log')
|
|
10
17
|
|
|
11
18
|
const { NetlifyFunction } = require('./netlify-function')
|
|
@@ -152,7 +159,7 @@ class FunctionsRegistry {
|
|
|
152
159
|
this.functions.set(name, func)
|
|
153
160
|
this.buildFunctionAndWatchFiles(func)
|
|
154
161
|
|
|
155
|
-
log(`${NETLIFYDEVLOG} ${chalk.green('Loaded')} function ${
|
|
162
|
+
log(`${NETLIFYDEVLOG} ${chalk.green('Loaded')} function ${getTerminalLink(chalk.yellow(name), func.url)}.`)
|
|
156
163
|
}
|
|
157
164
|
|
|
158
165
|
async scan(relativeDirs) {
|
|
@@ -10,6 +10,7 @@ const WSL = require('is-wsl')
|
|
|
10
10
|
const debounce = require('lodash/debounce')
|
|
11
11
|
const { default: omit } = require('omit.js')
|
|
12
12
|
const pEvent = require('p-event')
|
|
13
|
+
const terminalLink = require('terminal-link')
|
|
13
14
|
|
|
14
15
|
const { name, version } = require('../../package.json')
|
|
15
16
|
const { clearSpinner, startSpinner } = require('../lib/spinner')
|
|
@@ -230,11 +231,14 @@ const watchDebounced = async (target, { depth, onAdd = () => {}, onChange = () =
|
|
|
230
231
|
return watcher
|
|
231
232
|
}
|
|
232
233
|
|
|
234
|
+
const getTerminalLink = (text, url) => terminalLink(text, url, { fallback: () => `${text} ${url}` })
|
|
235
|
+
|
|
233
236
|
module.exports = {
|
|
234
237
|
BANG,
|
|
235
238
|
chalk,
|
|
236
239
|
error,
|
|
237
240
|
exit,
|
|
241
|
+
getTerminalLink,
|
|
238
242
|
getToken,
|
|
239
243
|
log,
|
|
240
244
|
logJson,
|