netlify-cli 13.2.0 → 13.2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "13.2.0",
4
+ "version": "13.2.2",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "engines": {
@@ -76,9 +76,9 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@fastify/static": "^6.6.0",
79
- "@netlify/build": "^29.7.1",
80
- "@netlify/config": "^20.3.6",
81
- "@netlify/edge-bundler": "^8.12.3",
79
+ "@netlify/build": "^29.8.0",
80
+ "@netlify/config": "^20.3.7",
81
+ "@netlify/edge-bundler": "^8.13.0",
82
82
  "@netlify/framework-info": "^9.8.5",
83
83
  "@netlify/local-functions-proxy": "^1.1.1",
84
84
  "@netlify/zip-it-and-ship-it": "^8.9.0",
@@ -144,7 +144,7 @@
144
144
  "log-update": "^5.0.0",
145
145
  "minimist": "^1.2.5",
146
146
  "multiparty": "^4.2.1",
147
- "netlify": "^13.1.3",
147
+ "netlify": "^13.1.4",
148
148
  "netlify-headers-parser": "^7.1.2",
149
149
  "netlify-onegraph-internal": "0.10.1",
150
150
  "netlify-redirect-parser": "^14.1.2",
@@ -185,7 +185,7 @@
185
185
  "devDependencies": {
186
186
  "@babel/preset-react": "^7.12.13",
187
187
  "@netlify/eslint-config-node": "^7.0.0",
188
- "@vitest/coverage-c8": "^0.29.0",
188
+ "@vitest/coverage-c8": "^0.29.7",
189
189
  "ava": "^4.0.0",
190
190
  "c8": "^7.11.0",
191
191
  "cpy": "^9.0.1",
@@ -208,8 +208,7 @@
208
208
  "tree-kill": "^1.2.2",
209
209
  "typescript": "^4.4.4",
210
210
  "verdaccio": "^5.22.1",
211
- "vite": "^4.0.0",
212
- "vitest": "^0.29.0"
211
+ "vitest": "^0.29.7"
213
212
  },
214
213
  "ava": {
215
214
  "files": [
@@ -26,9 +26,9 @@
26
26
  }
27
27
  },
28
28
  "node_modules/@types/node": {
29
- "version": "14.18.38",
30
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.38.tgz",
31
- "integrity": "sha512-zMRIidN2Huikv/+/U7gRPFYsXDR/7IGqFZzTLnCEj5+gkrQjsowfamaxEnyvArct5hxGA3bTxMXlYhH78V6Cew=="
29
+ "version": "14.18.40",
30
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.40.tgz",
31
+ "integrity": "sha512-pGteXO/JQX7wPxGR8lyT+doqjMa7XvlVowwrDwLfX92k5SdLkk4cwC7CYSLBxrenw/R5oQwKioVIak7ZgplM3g=="
32
32
  },
33
33
  "node_modules/is-promise": {
34
34
  "version": "4.0.0",
@@ -58,9 +58,9 @@
58
58
  }
59
59
  },
60
60
  "@types/node": {
61
- "version": "14.18.38",
62
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.38.tgz",
63
- "integrity": "sha512-zMRIidN2Huikv/+/U7gRPFYsXDR/7IGqFZzTLnCEj5+gkrQjsowfamaxEnyvArct5hxGA3bTxMXlYhH78V6Cew=="
61
+ "version": "14.18.40",
62
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.40.tgz",
63
+ "integrity": "sha512-pGteXO/JQX7wPxGR8lyT+doqjMa7XvlVowwrDwLfX92k5SdLkk4cwC7CYSLBxrenw/R5oQwKioVIak7ZgplM3g=="
64
64
  },
65
65
  "is-promise": {
66
66
  "version": "4.0.0",
@@ -261,11 +261,13 @@ export class EdgeFunctionsRegistry {
261
261
  const declarations = this.bundler.mergeDeclarations(
262
262
  this.declarationsFromTOML,
263
263
  this.declarationsFromSource,
264
+ {},
264
265
  this.declarationsFromDeployConfig,
265
266
  )
266
267
  const manifest = this.bundler.generateManifest({
267
268
  declarations,
268
- functionConfig: this.declarationsFromSource,
269
+ userFunctionConfig: this.declarationsFromSource,
270
+ internalFunctionConfig: {},
269
271
  functions: this.functions,
270
272
  })
271
273
  const invocationMetadata = {
@@ -279,7 +281,7 @@ export class EdgeFunctionsRegistry {
279
281
  const functionNames = routes
280
282
  .filter(({ pattern }) => pattern.test(urlPath))
281
283
  .filter(({ function: name }) => {
282
- const isExcluded = manifest.function_config[name]?.excluded_patterns.some((pattern) =>
284
+ const isExcluded = manifest.function_config[name]?.excluded_patterns?.some((pattern) =>
283
285
  new RegExp(pattern).test(urlPath),
284
286
  )
285
287
  return !isExcluded
@@ -15,6 +15,9 @@ const globalConfigDefaults = {
15
15
  // Memoise config result so that we only load it once
16
16
  let configStore
17
17
 
18
+ /**
19
+ * @returns {Promise<Configstore>}
20
+ */
18
21
  const getGlobalConfig = async function () {
19
22
  if (!configStore) {
20
23
  const configPath = getPathInHome(['config.json'])
@@ -1,15 +1,18 @@
1
1
  // @ts-check
2
2
  import { dirname, join } from 'path'
3
- import process from 'process'
3
+ import process, { version as nodejsVersion } from 'process'
4
4
  import { fileURLToPath } from 'url'
5
5
 
6
6
  import { isCI } from 'ci-info'
7
7
 
8
8
  import execa from '../execa.mjs'
9
9
  import getGlobalConfig from '../get-global-config.mjs'
10
+ import getPackageJson from '../get-package-json.mjs'
10
11
 
11
12
  import isValidEventName from './validation.mjs'
12
13
 
14
+ const { version: cliVersion } = await getPackageJson()
15
+
13
16
  const isTelemetryDisabled = function (config) {
14
17
  return config.get('telemetryDisabled')
15
18
  }
@@ -80,7 +83,7 @@ export const track = async function (eventName, payload = {}) {
80
83
  anonymousId: cliId,
81
84
  duration,
82
85
  status,
83
- properties,
86
+ properties: { ...properties, nodejsVersion, cliVersion },
84
87
  }
85
88
 
86
89
  return send('track', defaultData)