netlify-cli 8.6.8 → 8.6.9

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "8.6.8",
3
+ "version": "8.6.9",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "8.6.8",
9
+ "version": "8.6.9",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
@@ -52,7 +52,7 @@
52
52
  "from2-array": "^0.0.4",
53
53
  "fuzzy": "^0.1.3",
54
54
  "get-port": "^5.1.0",
55
- "gh-release-fetch": "^2.0.0",
55
+ "gh-release-fetch": "^3.0.0",
56
56
  "git-repo-info": "^2.1.0",
57
57
  "gitconfiglocal": "^2.1.0",
58
58
  "hasbin": "^1.2.3",
@@ -10765,20 +10765,19 @@
10765
10765
  }
10766
10766
  },
10767
10767
  "node_modules/gh-release-fetch": {
10768
- "version": "2.0.4",
10769
- "resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-2.0.4.tgz",
10770
- "integrity": "sha512-PALrCv6MuxEKsj5Oz9G81iU6pxvoxgpSnwbtIqAkQ6m6fioFicNznZUl/aOW92rK2k8cuaM48Rd59G7eV2QsTA==",
10768
+ "version": "3.0.0",
10769
+ "resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.0.tgz",
10770
+ "integrity": "sha512-P7Anj35Y4kI3RBoQ+M8Z2U9ittORYyRNLb55+5yGGXmm3Mazgkq4MPqsHH9S7+pNWFpE2BtAWeF6twzz6JY3Bw==",
10771
10771
  "dependencies": {
10772
10772
  "@types/download": "^8.0.0",
10773
10773
  "@types/node-fetch": "^2.1.6",
10774
10774
  "@types/semver": "^7.0.0",
10775
10775
  "download": "^8.0.0",
10776
- "make-dir": "^3.1.0",
10777
10776
  "node-fetch": "^2.3.0",
10778
10777
  "semver": "^7.0.0"
10779
10778
  },
10780
10779
  "engines": {
10781
- "node": ">=10"
10780
+ "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
10782
10781
  }
10783
10782
  },
10784
10783
  "node_modules/git-raw-commits": {
@@ -28789,15 +28788,14 @@
28789
28788
  "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg="
28790
28789
  },
28791
28790
  "gh-release-fetch": {
28792
- "version": "2.0.4",
28793
- "resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-2.0.4.tgz",
28794
- "integrity": "sha512-PALrCv6MuxEKsj5Oz9G81iU6pxvoxgpSnwbtIqAkQ6m6fioFicNznZUl/aOW92rK2k8cuaM48Rd59G7eV2QsTA==",
28791
+ "version": "3.0.0",
28792
+ "resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.0.tgz",
28793
+ "integrity": "sha512-P7Anj35Y4kI3RBoQ+M8Z2U9ittORYyRNLb55+5yGGXmm3Mazgkq4MPqsHH9S7+pNWFpE2BtAWeF6twzz6JY3Bw==",
28795
28794
  "requires": {
28796
28795
  "@types/download": "^8.0.0",
28797
28796
  "@types/node-fetch": "^2.1.6",
28798
28797
  "@types/semver": "^7.0.0",
28799
28798
  "download": "^8.0.0",
28800
- "make-dir": "^3.1.0",
28801
28799
  "node-fetch": "^2.3.0",
28802
28800
  "semver": "^7.0.0"
28803
28801
  }
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.8",
4
+ "version": "8.6.9",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
@@ -120,7 +120,7 @@
120
120
  "from2-array": "^0.0.4",
121
121
  "fuzzy": "^0.1.3",
122
122
  "get-port": "^5.1.0",
123
- "gh-release-fetch": "^2.0.0",
123
+ "gh-release-fetch": "^3.0.0",
124
124
  "git-repo-info": "^2.1.0",
125
125
  "gitconfiglocal": "^2.1.0",
126
126
  "hasbin": "^1.2.3",
@@ -253,7 +253,7 @@ const ensureFunctionDirExists = async function (command) {
253
253
  }
254
254
 
255
255
  /**
256
- * Download files from a given github URL
256
+ * Download files from a given GitHub URL
257
257
  * @param {import('../base-command').BaseCommand} command
258
258
  * @param {import('commander').OptionValues} options
259
259
  * @param {string} argumentName
@@ -162,7 +162,7 @@ const logExistingRepoSetupAndExit = ({ repoUrl, siteName }) => {
162
162
  log()
163
163
  log(chalk.underline.bold(`Success`))
164
164
  log(`This site "${siteName}" is configured to automatically deploy via ${repoUrl}`)
165
- // TODO add support for changing github repo in site:config command
165
+ // TODO add support for changing GitHub repo in site:config command
166
166
  exit()
167
167
  }
168
168
 
@@ -57,7 +57,7 @@ module.exports = function expressApp(functionName) {
57
57
 
58
58
  <div>
59
59
  <a href='https://github.com/DavidWells/netlify-functions-express' target='_blank'>
60
- See the source code on github
60
+ See the source code on GitHub
61
61
  </a>
62
62
  </div>
63
63
  </body>
@@ -109,12 +109,12 @@ const authWithToken = async () => {
109
109
  const { login: user } = await octokit.users.getAuthenticated()
110
110
  return { token, user, provider: 'github' }
111
111
  }
112
- const error = new Error('Github authentication failed')
112
+ const error = new Error('GitHub authentication failed')
113
113
  throw error
114
114
  }
115
115
 
116
116
  /**
117
- * Get a github token
117
+ * Get a GitHub token
118
118
  * @returns {Promise<Token>} Returns a Promise with a token object
119
119
  */
120
120
  const getGitHubToken = async () => {
@@ -22,7 +22,7 @@ const formatRepoAndOwner = ({ repoName, repoOwner }) => ({
22
22
  const PAGE_SIZE = 100
23
23
 
24
24
  /**
25
- * Get a valid github token
25
+ * Get a valid GitHub token
26
26
  * @returns {Promise<string>}
27
27
  */
28
28
  const getGitHubToken = async ({ globalConfig }) => {
@@ -50,7 +50,7 @@ const getGitHubToken = async ({ globalConfig }) => {
50
50
  }
51
51
 
52
52
  /**
53
- * Retrieves the Github octokit client
53
+ * Retrieves the GitHub octokit client
54
54
  * @param {string} token
55
55
  * @returns {Octokit}
56
56
  */
@@ -15,7 +15,7 @@ const readRepoURL = async function (_url) {
15
15
  // eslint-disable-next-line node/no-deprecated-api
16
16
  const URL = url.parse(_url)
17
17
  const repoHost = validateRepoURL(_url)
18
- if (repoHost !== GITHUB) throw new Error('only github repos are supported for now')
18
+ if (repoHost !== GITHUB) throw new Error('only GitHub repos are supported for now')
19
19
  const [ownerAndRepo, contentsPath] = parseRepoURL(repoHost, URL)
20
20
  const folderContents = await getRepoURLContents(repoHost, ownerAndRepo, contentsPath)
21
21
  return folderContents