netlify-cli 13.2.0 → 13.2.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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "13.2.0",
3
+ "version": "13.2.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "13.2.0",
9
+ "version": "13.2.1",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
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.1",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "engines": {
@@ -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",
@@ -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)