@angular-devkit/core 8.3.4 → 8.3.8
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
package/src/analytics/index.d.ts
CHANGED
package/src/analytics/index.js
CHANGED
|
@@ -23,6 +23,7 @@ var NgCliAnalyticsDimensions;
|
|
|
23
23
|
NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["NodeVersion"] = 4] = "NodeVersion";
|
|
24
24
|
NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["NgAddCollection"] = 6] = "NgAddCollection";
|
|
25
25
|
NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["NgBuildBuildEventLog"] = 7] = "NgBuildBuildEventLog";
|
|
26
|
+
NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["NgIvyEnabled"] = 8] = "NgIvyEnabled";
|
|
26
27
|
NgCliAnalyticsDimensions[NgCliAnalyticsDimensions["BuildErrors"] = 20] = "BuildErrors";
|
|
27
28
|
})(NgCliAnalyticsDimensions = exports.NgCliAnalyticsDimensions || (exports.NgCliAnalyticsDimensions = {}));
|
|
28
29
|
var NgCliAnalyticsMetrics;
|
|
@@ -52,6 +53,7 @@ exports.NgCliAnalyticsDimensionsFlagInfo = {
|
|
|
52
53
|
NodeVersion: ['Node Version', 'number'],
|
|
53
54
|
NgAddCollection: ['--collection', 'string'],
|
|
54
55
|
NgBuildBuildEventLog: ['--buildEventLog', 'boolean'],
|
|
56
|
+
NgIvyEnabled: ['Ivy Enabled', 'boolean'],
|
|
55
57
|
BuildErrors: ['Build Errors (comma separated)', 'string'],
|
|
56
58
|
};
|
|
57
59
|
// This table is used when generating the analytics.md file. It should match the enum above
|
|
@@ -16,8 +16,8 @@ function _getObjectSubSchema(schema, key) {
|
|
|
16
16
|
}
|
|
17
17
|
// Is it an object schema?
|
|
18
18
|
if (typeof schema.properties == 'object' || schema.type == 'object') {
|
|
19
|
-
if (typeof schema.properties == 'object'
|
|
20
|
-
|
|
19
|
+
if (typeof schema.properties == 'object' &&
|
|
20
|
+
typeof schema.properties[key] == 'object') {
|
|
21
21
|
return schema.properties[key];
|
|
22
22
|
}
|
|
23
23
|
if (typeof schema.additionalProperties == 'object') {
|
|
@@ -31,8 +31,7 @@ function _getObjectSubSchema(schema, key) {
|
|
|
31
31
|
}
|
|
32
32
|
return undefined;
|
|
33
33
|
}
|
|
34
|
-
function _visitJsonRecursive(json, visitor, ptr, schema, refResolver, context,
|
|
35
|
-
root) {
|
|
34
|
+
function _visitJsonRecursive(json, visitor, ptr, schema, refResolver, context, root) {
|
|
36
35
|
if (schema === true || schema === false) {
|
|
37
36
|
// There's no schema definition, so just visit the JSON recursively.
|
|
38
37
|
schema = undefined;
|
|
@@ -48,12 +47,17 @@ root) {
|
|
|
48
47
|
return (rxjs_1.isObservable(value) ? value : rxjs_1.of(value)).pipe(operators_1.concatMap(value => {
|
|
49
48
|
if (Array.isArray(value)) {
|
|
50
49
|
return rxjs_1.concat(rxjs_1.from(value).pipe(operators_1.mergeMap((item, i) => {
|
|
51
|
-
return _visitJsonRecursive(item, visitor, pointer_1.joinJsonPointer(ptr, '' + i), _getObjectSubSchema(schema, '' + i), refResolver, context, root || value).pipe(operators_1.tap(x => value[i] = x));
|
|
50
|
+
return _visitJsonRecursive(item, visitor, pointer_1.joinJsonPointer(ptr, '' + i), _getObjectSubSchema(schema, '' + i), refResolver, context, root || value).pipe(operators_1.tap(x => (value[i] = x)));
|
|
52
51
|
}), operators_1.ignoreElements()), rxjs_1.of(value));
|
|
53
52
|
}
|
|
54
53
|
else if (typeof value == 'object' && value !== null) {
|
|
55
54
|
return rxjs_1.concat(rxjs_1.from(Object.getOwnPropertyNames(value)).pipe(operators_1.mergeMap(key => {
|
|
56
|
-
return _visitJsonRecursive(value[key], visitor, pointer_1.joinJsonPointer(ptr, key), _getObjectSubSchema(schema, key), refResolver, context, root || value).pipe(operators_1.tap(x =>
|
|
55
|
+
return _visitJsonRecursive(value[key], visitor, pointer_1.joinJsonPointer(ptr, key), _getObjectSubSchema(schema, key), refResolver, context, root || value).pipe(operators_1.tap(x => {
|
|
56
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
57
|
+
if (descriptor && descriptor.writable && value[key] !== x) {
|
|
58
|
+
value[key] = x;
|
|
59
|
+
}
|
|
60
|
+
}));
|
|
57
61
|
}), operators_1.ignoreElements()), rxjs_1.of(value));
|
|
58
62
|
}
|
|
59
63
|
else {
|