@angular/cli 12.2.6 → 12.2.10
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/new.md +1 -1
- package/lib/config/schema.json +3 -2
- package/package.json +11 -11
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/new.md
CHANGED
|
@@ -11,6 +11,6 @@ All prompts can safely be allowed to default.
|
|
|
11
11
|
|
|
12
12
|
- Subsequent applications that you generate in the workspace reside in the `projects/` subfolder.
|
|
13
13
|
|
|
14
|
-
If you plan to have multiple applications in the workspace, you can create an empty workspace by setting the `--
|
|
14
|
+
If you plan to have multiple applications in the workspace, you can create an empty workspace by setting the `--create-application` option to false.
|
|
15
15
|
You can then use `ng generate application` to create an initial application.
|
|
16
16
|
This allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file.
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.10",
|
|
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.10",
|
|
32
|
+
"@angular-devkit/core": "12.2.10",
|
|
33
|
+
"@angular-devkit/schematics": "12.2.10",
|
|
34
|
+
"@schematics/angular": "12.2.10",
|
|
35
35
|
"@yarnpkg/lockfile": "1.1.0",
|
|
36
36
|
"ansi-colors": "4.1.1",
|
|
37
37
|
"debug": "4.3.2",
|
|
@@ -51,12 +51,12 @@
|
|
|
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.10",
|
|
55
|
+
"@angular-devkit/architect": "0.1202.10",
|
|
56
|
+
"@angular-devkit/build-angular": "12.2.10",
|
|
57
|
+
"@angular-devkit/build-webpack": "0.1202.10",
|
|
58
|
+
"@angular-devkit/core": "12.2.10",
|
|
59
|
+
"@angular-devkit/schematics": "12.2.10"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|