@angular/cli 8.0.5 → 8.0.6
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/models/analytics.js +4 -4
- package/package.json +10 -10
package/models/analytics.js
CHANGED
|
@@ -19,7 +19,7 @@ const config_1 = require("../utilities/config");
|
|
|
19
19
|
const tty_1 = require("../utilities/tty");
|
|
20
20
|
const analyticsDebug = debug('ng:analytics'); // Generate analytics, including settings and users.
|
|
21
21
|
const analyticsLogDebug = debug('ng:analytics:log'); // Actual logs of events.
|
|
22
|
-
const
|
|
22
|
+
const BYTES_PER_GIGABYTES = 1024 * 1024 * 1024;
|
|
23
23
|
/**
|
|
24
24
|
* This is the ultimate safelist for checking if a package name is safe to report to analytics.
|
|
25
25
|
*/
|
|
@@ -93,8 +93,8 @@ function _getCpuSpeed() {
|
|
|
93
93
|
* @private
|
|
94
94
|
*/
|
|
95
95
|
function _getRamSize() {
|
|
96
|
-
// Report in
|
|
97
|
-
return Math.
|
|
96
|
+
// Report in gigabytes (or closest). Otherwise it's too much noise.
|
|
97
|
+
return Math.round(os.totalmem() / BYTES_PER_GIGABYTES);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* Get the Node name and version. This returns a string like "Node 10.11", or "io.js 3.5".
|
|
@@ -226,7 +226,7 @@ class UniversalAnalytics {
|
|
|
226
226
|
// We set custom metrics for values we care about.
|
|
227
227
|
this._dimensions[core_1.analytics.NgCliAnalyticsDimensions.CpuCount] = _getCpuCount();
|
|
228
228
|
this._dimensions[core_1.analytics.NgCliAnalyticsDimensions.CpuSpeed] = _getCpuSpeed();
|
|
229
|
-
this._dimensions[core_1.analytics.NgCliAnalyticsDimensions.
|
|
229
|
+
this._dimensions[core_1.analytics.NgCliAnalyticsDimensions.RamInGigabytes] = _getRamSize();
|
|
230
230
|
this._dimensions[core_1.analytics.NgCliAnalyticsDimensions.NodeVersion] = _getNumericNodeVersion();
|
|
231
231
|
}
|
|
232
232
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.6",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/angular/angular-cli",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@angular-devkit/architect": "0.800.
|
|
32
|
-
"@angular-devkit/core": "8.0.
|
|
33
|
-
"@angular-devkit/schematics": "8.0.
|
|
34
|
-
"@schematics/angular": "8.0.
|
|
35
|
-
"@schematics/update": "0.800.
|
|
31
|
+
"@angular-devkit/architect": "0.800.6",
|
|
32
|
+
"@angular-devkit/core": "8.0.6",
|
|
33
|
+
"@angular-devkit/schematics": "8.0.6",
|
|
34
|
+
"@schematics/angular": "8.0.6",
|
|
35
|
+
"@schematics/update": "0.800.6",
|
|
36
36
|
"@yarnpkg/lockfile": "1.1.0",
|
|
37
37
|
"debug": "^4.1.1",
|
|
38
38
|
"ini": "1.3.5",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"ng-update": {
|
|
50
50
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
51
51
|
"packageGroup": {
|
|
52
|
-
"@angular/cli": "8.0.
|
|
53
|
-
"@angular-devkit/build-angular": "0.800.
|
|
54
|
-
"@angular-devkit/build-ng-packagr": "0.800.
|
|
55
|
-
"@angular-devkit/build-webpack": "0.800.
|
|
52
|
+
"@angular/cli": "8.0.6",
|
|
53
|
+
"@angular-devkit/build-angular": "0.800.6",
|
|
54
|
+
"@angular-devkit/build-ng-packagr": "0.800.6",
|
|
55
|
+
"@angular-devkit/build-webpack": "0.800.6"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|