@angular-devkit/core 12.0.0-rc.0 → 12.0.0

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.
Files changed (162) hide show
  1. package/README.md +36 -34
  2. package/node/_golden-api.d.ts +1 -1
  3. package/node/_golden-api.js +1 -1
  4. package/node/cli-logger.d.ts +7 -0
  5. package/node/cli-logger.js +4 -6
  6. package/node/experimental/index.d.ts +2 -2
  7. package/node/experimental/index.js +3 -3
  8. package/node/experimental/jobs/index.d.ts +1 -1
  9. package/node/experimental/jobs/index.js +7 -7
  10. package/node/experimental/jobs/job-registry.d.ts +1 -1
  11. package/node/experimental/jobs/job-registry.js +4 -4
  12. package/node/fs.d.ts +7 -0
  13. package/node/fs.js +3 -3
  14. package/node/host.d.ts +2 -2
  15. package/node/host.js +31 -33
  16. package/node/index.d.ts +2 -2
  17. package/node/index.js +1 -1
  18. package/node/testing/index.d.ts +2 -2
  19. package/node/testing/index.js +8 -5
  20. package/package.json +3 -3
  21. package/src/_golden-api.d.ts +1 -1
  22. package/src/_golden-api.js +1 -1
  23. package/src/analytics/api.d.ts +1 -1
  24. package/src/analytics/api.js +7 -0
  25. package/src/analytics/forwarder.d.ts +1 -1
  26. package/src/analytics/forwarder.js +7 -0
  27. package/src/analytics/index.d.ts +1 -1
  28. package/src/analytics/index.js +7 -7
  29. package/src/analytics/logging.d.ts +1 -1
  30. package/src/analytics/logging.js +7 -0
  31. package/src/analytics/multi.d.ts +1 -1
  32. package/src/analytics/multi.js +6 -6
  33. package/src/analytics/noop.d.ts +1 -1
  34. package/src/analytics/noop.js +10 -1
  35. package/src/exception/exception.d.ts +1 -1
  36. package/src/exception/exception.js +25 -9
  37. package/src/exception/index.d.ts +1 -1
  38. package/src/exception/index.js +1 -1
  39. package/src/experimental/jobs/README.md +133 -112
  40. package/src/experimental/jobs/api.d.ts +1 -1
  41. package/src/experimental/jobs/api.js +8 -3
  42. package/src/experimental/jobs/architecture.md +43 -38
  43. package/src/experimental/jobs/create-job-handler.d.ts +1 -2
  44. package/src/experimental/jobs/create-job-handler.js +17 -14
  45. package/src/experimental/jobs/dispatcher.d.ts +1 -2
  46. package/src/experimental/jobs/dispatcher.js +7 -0
  47. package/src/experimental/jobs/exception.d.ts +1 -1
  48. package/src/experimental/jobs/exception.js +3 -3
  49. package/src/experimental/jobs/fallback-registry.d.ts +1 -1
  50. package/src/experimental/jobs/fallback-registry.js +4 -4
  51. package/src/experimental/jobs/index.d.ts +1 -1
  52. package/src/experimental/jobs/index.js +7 -7
  53. package/src/experimental/jobs/simple-registry.d.ts +1 -1
  54. package/src/experimental/jobs/simple-registry.js +6 -4
  55. package/src/experimental/jobs/simple-scheduler.d.ts +1 -1
  56. package/src/experimental/jobs/simple-scheduler.js +38 -29
  57. package/src/experimental/jobs/strategy.d.ts +7 -0
  58. package/src/experimental/jobs/strategy.js +10 -9
  59. package/src/experimental.d.ts +2 -2
  60. package/src/experimental.js +3 -3
  61. package/src/index.d.ts +2 -2
  62. package/src/index.js +7 -7
  63. package/src/json/index.d.ts +2 -2
  64. package/src/json/index.js +9 -9
  65. package/src/json/interface.d.ts +1 -1
  66. package/src/json/interface.js +7 -0
  67. package/src/json/parser.d.ts +1 -1
  68. package/src/json/parser.js +39 -22
  69. package/src/json/schema/index.d.ts +2 -2
  70. package/src/json/schema/index.js +9 -9
  71. package/src/json/schema/interface.d.ts +1 -1
  72. package/src/json/schema/interface.js +7 -0
  73. package/src/json/schema/pointer.d.ts +1 -1
  74. package/src/json/schema/pointer.js +17 -5
  75. package/src/json/schema/registry.d.ts +1 -1
  76. package/src/json/schema/registry.js +28 -47
  77. package/src/json/schema/schema.d.ts +1 -1
  78. package/src/json/schema/schema.js +3 -3
  79. package/src/json/schema/transforms.d.ts +1 -1
  80. package/src/json/schema/transforms.js +14 -13
  81. package/src/json/schema/utility.d.ts +7 -0
  82. package/src/json/schema/utility.js +7 -7
  83. package/src/json/schema/visitor.d.ts +1 -1
  84. package/src/json/schema/visitor.js +8 -7
  85. package/src/logger/indent.d.ts +7 -0
  86. package/src/logger/indent.js +5 -5
  87. package/src/logger/index.d.ts +1 -1
  88. package/src/logger/index.js +7 -7
  89. package/src/logger/level.d.ts +1 -1
  90. package/src/logger/level.js +7 -0
  91. package/src/logger/logger.d.ts +1 -1
  92. package/src/logger/logger.js +13 -6
  93. package/src/logger/null-logger.d.ts +7 -0
  94. package/src/logger/null-logger.js +3 -3
  95. package/src/logger/transform-logger.d.ts +1 -1
  96. package/src/logger/transform-logger.js +7 -0
  97. package/src/utils/array.d.ts +1 -1
  98. package/src/utils/array.js +2 -2
  99. package/src/utils/index.d.ts +1 -1
  100. package/src/utils/index.js +7 -7
  101. package/src/utils/lang.d.ts +1 -1
  102. package/src/utils/lang.js +3 -3
  103. package/src/utils/literals.d.ts +1 -1
  104. package/src/utils/literals.js +15 -8
  105. package/src/utils/object.d.ts +1 -1
  106. package/src/utils/object.js +3 -3
  107. package/src/utils/partially-ordered-set.d.ts +2 -2
  108. package/src/utils/partially-ordered-set.js +12 -8
  109. package/src/utils/priority-queue.d.ts +1 -1
  110. package/src/utils/priority-queue.js +2 -2
  111. package/src/utils/strings.d.ts +7 -0
  112. package/src/utils/strings.js +12 -9
  113. package/src/utils/template.d.ts +1 -1
  114. package/src/utils/template.js +24 -30
  115. package/src/virtual-fs/host/alias.d.ts +1 -1
  116. package/src/virtual-fs/host/alias.js +7 -5
  117. package/src/virtual-fs/host/buffer.d.ts +1 -1
  118. package/src/virtual-fs/host/buffer.js +7 -0
  119. package/src/virtual-fs/host/create.d.ts +7 -0
  120. package/src/virtual-fs/host/create.js +3 -3
  121. package/src/virtual-fs/host/empty.d.ts +1 -1
  122. package/src/virtual-fs/host/empty.js +3 -3
  123. package/src/virtual-fs/host/index.d.ts +1 -1
  124. package/src/virtual-fs/host/index.js +1 -1
  125. package/src/virtual-fs/host/interface.d.ts +1 -1
  126. package/src/virtual-fs/host/interface.js +7 -0
  127. package/src/virtual-fs/host/memory.d.ts +1 -1
  128. package/src/virtual-fs/host/memory.js +32 -20
  129. package/src/virtual-fs/host/pattern.d.ts +1 -1
  130. package/src/virtual-fs/host/pattern.js +17 -8
  131. package/src/virtual-fs/host/record.d.ts +1 -1
  132. package/src/virtual-fs/host/record.js +45 -28
  133. package/src/virtual-fs/host/resolver.d.ts +1 -1
  134. package/src/virtual-fs/host/resolver.js +10 -1
  135. package/src/virtual-fs/host/safe.d.ts +1 -1
  136. package/src/virtual-fs/host/safe.js +3 -3
  137. package/src/virtual-fs/host/scoped.d.ts +1 -1
  138. package/src/virtual-fs/host/scoped.js +3 -3
  139. package/src/virtual-fs/host/sync.d.ts +1 -1
  140. package/src/virtual-fs/host/sync.js +12 -3
  141. package/src/virtual-fs/host/test.d.ts +1 -1
  142. package/src/virtual-fs/host/test.js +11 -2
  143. package/src/virtual-fs/index.d.ts +2 -2
  144. package/src/virtual-fs/index.js +8 -8
  145. package/src/virtual-fs/path.d.ts +1 -1
  146. package/src/virtual-fs/path.js +17 -8
  147. package/src/workspace/core.d.ts +7 -0
  148. package/src/workspace/core.js +3 -3
  149. package/src/workspace/definitions.d.ts +1 -1
  150. package/src/workspace/definitions.js +7 -0
  151. package/src/workspace/host.d.ts +1 -1
  152. package/src/workspace/host.js +3 -3
  153. package/src/workspace/index.d.ts +1 -1
  154. package/src/workspace/index.js +7 -7
  155. package/src/workspace/json/metadata.d.ts +1 -1
  156. package/src/workspace/json/metadata.js +8 -1
  157. package/src/workspace/json/reader.d.ts +7 -0
  158. package/src/workspace/json/reader.js +4 -4
  159. package/src/workspace/json/utilities.d.ts +1 -1
  160. package/src/workspace/json/utilities.js +12 -5
  161. package/src/workspace/json/writer.d.ts +7 -0
  162. package/src/workspace/json/writer.js +4 -4
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.AnalyticsReporter = exports.ForwardingAnalytics = exports.AnalyticsReportKind = void 0;
4
11
  var AnalyticsReportKind;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ */
2
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
10
  if (k2 === undefined) k2 = k;
4
11
  Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
@@ -11,13 +18,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
18
  };
12
19
  Object.defineProperty(exports, "__esModule", { value: true });
13
20
  exports.NgCliAnalyticsMetricsFlagInfo = exports.NgCliAnalyticsDimensionsFlagInfo = exports.NgCliAnalyticsMetrics = exports.NgCliAnalyticsDimensions = void 0;
14
- /**
15
- * @license
16
- * Copyright Google Inc. All Rights Reserved.
17
- *
18
- * Use of this source code is governed by an MIT-style license that can be
19
- * found in the LICENSE file at https://angular.io/license
20
- */
21
21
  __exportStar(require("./api"), exports);
22
22
  __exportStar(require("./forwarder"), exports);
23
23
  __exportStar(require("./logging"), exports);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.LoggingAnalytics = void 0;
4
11
  /**
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @license
4
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
@@ -19,19 +19,19 @@ class MultiAnalytics {
19
19
  this._backends.push(...backend);
20
20
  }
21
21
  event(category, action, options) {
22
- this._backends.forEach(be => be.event(category, action, options));
22
+ this._backends.forEach((be) => be.event(category, action, options));
23
23
  }
24
24
  screenview(screenName, appName, options) {
25
- this._backends.forEach(be => be.screenview(screenName, appName, options));
25
+ this._backends.forEach((be) => be.screenview(screenName, appName, options));
26
26
  }
27
27
  pageview(path, options) {
28
- this._backends.forEach(be => be.pageview(path, options));
28
+ this._backends.forEach((be) => be.pageview(path, options));
29
29
  }
30
30
  timing(category, variable, time, options) {
31
- this._backends.forEach(be => be.timing(category, variable, time, options));
31
+ this._backends.forEach((be) => be.timing(category, variable, time, options));
32
32
  }
33
33
  flush() {
34
- return Promise.all(this._backends.map(x => x.flush())).then(() => { });
34
+ return Promise.all(this._backends.map((x) => x.flush())).then(() => { });
35
35
  }
36
36
  }
37
37
  exports.MultiAnalytics = MultiAnalytics;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.NoopAnalytics = void 0;
4
11
  /**
@@ -9,6 +16,8 @@ class NoopAnalytics {
9
16
  screenview() { }
10
17
  pageview() { }
11
18
  timing() { }
12
- flush() { return Promise.resolve(); }
19
+ flush() {
20
+ return Promise.resolve();
21
+ }
13
22
  }
14
23
  exports.NoopAnalytics = NoopAnalytics;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @license
4
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
@@ -15,24 +15,34 @@ class BaseException extends Error {
15
15
  }
16
16
  exports.BaseException = BaseException;
17
17
  class UnknownException extends BaseException {
18
- constructor(message) { super(message); }
18
+ constructor(message) {
19
+ super(message);
20
+ }
19
21
  }
20
22
  exports.UnknownException = UnknownException;
21
23
  // Exceptions
22
24
  class FileDoesNotExistException extends BaseException {
23
- constructor(path) { super(`Path "${path}" does not exist.`); }
25
+ constructor(path) {
26
+ super(`Path "${path}" does not exist.`);
27
+ }
24
28
  }
25
29
  exports.FileDoesNotExistException = FileDoesNotExistException;
26
30
  class FileAlreadyExistException extends BaseException {
27
- constructor(path) { super(`Path "${path}" already exist.`); }
31
+ constructor(path) {
32
+ super(`Path "${path}" already exist.`);
33
+ }
28
34
  }
29
35
  exports.FileAlreadyExistException = FileAlreadyExistException;
30
36
  class PathIsDirectoryException extends BaseException {
31
- constructor(path) { super(`Path "${path}" is a directory.`); }
37
+ constructor(path) {
38
+ super(`Path "${path}" is a directory.`);
39
+ }
32
40
  }
33
41
  exports.PathIsDirectoryException = PathIsDirectoryException;
34
42
  class PathIsFileException extends BaseException {
35
- constructor(path) { super(`Path "${path}" is a file.`); }
43
+ constructor(path) {
44
+ super(`Path "${path}" is a file.`);
45
+ }
36
46
  }
37
47
  exports.PathIsFileException = PathIsFileException;
38
48
  class ContentHasMutatedException extends BaseException {
@@ -42,7 +52,9 @@ class ContentHasMutatedException extends BaseException {
42
52
  }
43
53
  exports.ContentHasMutatedException = ContentHasMutatedException;
44
54
  class InvalidUpdateRecordException extends BaseException {
45
- constructor() { super(`Invalid record instance.`); }
55
+ constructor() {
56
+ super(`Invalid record instance.`);
57
+ }
46
58
  }
47
59
  exports.InvalidUpdateRecordException = InvalidUpdateRecordException;
48
60
  class MergeConflictException extends BaseException {
@@ -52,10 +64,14 @@ class MergeConflictException extends BaseException {
52
64
  }
53
65
  exports.MergeConflictException = MergeConflictException;
54
66
  class UnimplementedException extends BaseException {
55
- constructor() { super('This function is unimplemented.'); }
67
+ constructor() {
68
+ super('This function is unimplemented.');
69
+ }
56
70
  }
57
71
  exports.UnimplementedException = UnimplementedException;
58
72
  class UnsupportedPlatformException extends BaseException {
59
- constructor() { super('This platform is not supported by this code path.'); }
73
+ constructor() {
74
+ super('This platform is not supported by this code path.');
75
+ }
60
76
  }
61
77
  exports.UnsupportedPlatformException = UnsupportedPlatformException;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright Google Inc. All Rights Reserved.
3
+ * Copyright Google LLC All Rights Reserved.
4
4
  *
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @license
4
- * Copyright Google Inc. All Rights Reserved.
4
+ * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license