@angular/cli 12.2.7 → 12.2.11
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/commands/config-impl.js +11 -3
- package/commands/update-impl.js +1 -1
- package/lib/config/schema.json +3 -2
- package/models/analytics.js +1 -1
- package/package.json +12 -12
package/commands/config-impl.js
CHANGED
|
@@ -20,7 +20,7 @@ const validCliPaths = new Map([
|
|
|
20
20
|
['cli.packageManager', undefined],
|
|
21
21
|
['cli.analytics', undefined],
|
|
22
22
|
['cli.analyticsSharing.tracking', undefined],
|
|
23
|
-
['cli.analyticsSharing.uuid', (v) => (v
|
|
23
|
+
['cli.analyticsSharing.uuid', (v) => (v === '' ? uuid_1.v4() : `${v}`)],
|
|
24
24
|
]);
|
|
25
25
|
/**
|
|
26
26
|
* Splits a JSON path string into fragments. Fragments can be used to get the value referenced
|
|
@@ -54,7 +54,6 @@ function parseJsonPath(path) {
|
|
|
54
54
|
return result.filter((fragment) => fragment != null);
|
|
55
55
|
}
|
|
56
56
|
function normalizeValue(value) {
|
|
57
|
-
var _a, _b;
|
|
58
57
|
const valueString = `${value}`.trim();
|
|
59
58
|
switch (valueString) {
|
|
60
59
|
case 'true':
|
|
@@ -69,7 +68,16 @@ function normalizeValue(value) {
|
|
|
69
68
|
if (isFinite(+valueString)) {
|
|
70
69
|
return +valueString;
|
|
71
70
|
}
|
|
72
|
-
|
|
71
|
+
try {
|
|
72
|
+
// We use `JSON.parse` instead of `parseJson` because the latter will parse UUIDs
|
|
73
|
+
// and convert them into a numberic entities.
|
|
74
|
+
// Example: 73b61974-182c-48e4-b4c6-30ddf08c5c98 -> 73.
|
|
75
|
+
// These values should never contain comments, therefore using `JSON.parse` is safe.
|
|
76
|
+
return JSON.parse(valueString);
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
73
81
|
}
|
|
74
82
|
class ConfigCommand extends command_1.Command {
|
|
75
83
|
async run(options) {
|
package/commands/update-impl.js
CHANGED
|
@@ -163,7 +163,7 @@ class UpdateCommand extends command_1.Command {
|
|
|
163
163
|
*/
|
|
164
164
|
async executeMigrations(packageName, collectionPath, from, to, commit) {
|
|
165
165
|
const collection = this.workflow.engine.createCollection(collectionPath);
|
|
166
|
-
const migrationRange = new semver.Range('>' + (semver.prerelease(from) ? from.split('-')[0] + '-0' : from) + ' <=' + to);
|
|
166
|
+
const migrationRange = new semver.Range('>' + (semver.prerelease(from) ? from.split('-')[0] + '-0' : from) + ' <=' + to.split('-')[0]);
|
|
167
167
|
const migrations = [];
|
|
168
168
|
for (const name of collection.listSchematicNames()) {
|
|
169
169
|
const schematic = this.workflow.engine.createSchematic(name, collection);
|
package/lib/config/schema.json
CHANGED
|
@@ -79,11 +79,12 @@
|
|
|
79
79
|
"tracking": {
|
|
80
80
|
"description": "Analytics sharing info tracking ID.",
|
|
81
81
|
"type": "string",
|
|
82
|
-
"pattern": "^GA
|
|
82
|
+
"pattern": "^(GA|UA)?-\\d+-\\d+$"
|
|
83
83
|
},
|
|
84
84
|
"uuid": {
|
|
85
85
|
"description": "Analytics sharing info universally unique identifier.",
|
|
86
|
-
"type": "string"
|
|
86
|
+
"type": "string",
|
|
87
|
+
"format": "uuid"
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
}
|
package/models/analytics.js
CHANGED
|
@@ -182,7 +182,7 @@ async function promptProjectAnalytics(force = false) {
|
|
|
182
182
|
if (answers.analytics) {
|
|
183
183
|
console.log('');
|
|
184
184
|
console.log(core_1.tags.stripIndent `
|
|
185
|
-
Thank you for sharing anonymous usage data.
|
|
185
|
+
Thank you for sharing anonymous usage data. Should you change your mind, the following
|
|
186
186
|
command will disable this feature entirely:
|
|
187
187
|
|
|
188
188
|
${color_1.colors.yellow('ng analytics project off')}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.11",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/angular/angular-cli",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@angular-devkit/architect": "0.1202.
|
|
32
|
-
"@angular-devkit/core": "12.2.
|
|
33
|
-
"@angular-devkit/schematics": "12.2.
|
|
34
|
-
"@schematics/angular": "12.2.
|
|
31
|
+
"@angular-devkit/architect": "0.1202.11",
|
|
32
|
+
"@angular-devkit/core": "12.2.11",
|
|
33
|
+
"@angular-devkit/schematics": "12.2.11",
|
|
34
|
+
"@schematics/angular": "12.2.11",
|
|
35
35
|
"@yarnpkg/lockfile": "1.1.0",
|
|
36
36
|
"ansi-colors": "4.1.1",
|
|
37
37
|
"debug": "4.3.2",
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
"ng-update": {
|
|
52
52
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
53
53
|
"packageGroup": {
|
|
54
|
-
"@angular/cli": "12.2.
|
|
55
|
-
"@angular-devkit/architect": "0.1202.
|
|
56
|
-
"@angular-devkit/build-angular": "12.2.
|
|
57
|
-
"@angular-devkit/build-webpack": "0.1202.
|
|
58
|
-
"@angular-devkit/core": "12.2.
|
|
59
|
-
"@angular-devkit/schematics": "12.2.
|
|
54
|
+
"@angular/cli": "12.2.11",
|
|
55
|
+
"@angular-devkit/architect": "0.1202.11",
|
|
56
|
+
"@angular-devkit/build-angular": "12.2.11",
|
|
57
|
+
"@angular-devkit/build-webpack": "0.1202.11",
|
|
58
|
+
"@angular-devkit/core": "12.2.11",
|
|
59
|
+
"@angular-devkit/schematics": "12.2.11"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": "^12.14.1 || >=14.0.0",
|
|
64
|
-
"npm": "^6.11.0 || ^7.5.6",
|
|
64
|
+
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
65
65
|
"yarn": ">= 1.13.0"
|
|
66
66
|
}
|
|
67
67
|
}
|