@angular/compiler-cli 14.0.0-rc.3 → 14.0.2

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.
@@ -828,7 +828,7 @@ var declarationFunctions = [
828
828
  ];
829
829
  function createLinkerMap(environment, sourceUrl, code) {
830
830
  const linkers = /* @__PURE__ */ new Map();
831
- const LATEST_VERSION_RANGE = getRange("<=", "14.0.0-rc.3");
831
+ const LATEST_VERSION_RANGE = getRange("<=", "14.0.2");
832
832
  linkers.set(\u0275\u0275ngDeclareDirective, [
833
833
  { range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
834
834
  ]);
@@ -875,7 +875,7 @@ var PartialLinkerSelector = class {
875
875
  throw new Error(`Unknown partial declaration function ${functionName}.`);
876
876
  }
877
877
  const linkerRanges = this.linkers.get(functionName);
878
- if (version === "14.0.0-rc.3") {
878
+ if (version === "14.0.2") {
879
879
  return linkerRanges[linkerRanges.length - 1].linker;
880
880
  }
881
881
  const declarationRange = getRange(">=", minVersion);
@@ -8,7 +8,7 @@ import {
8
8
  ImportGraph,
9
9
  isShim,
10
10
  readConfiguration
11
- } from "./chunk-AWUSLKAS.js";
11
+ } from "./chunk-XDCGNQL5.js";
12
12
  import {
13
13
  CompilationMode,
14
14
  ComponentDecoratorHandler,
@@ -32,7 +32,7 @@ import {
32
32
  TypeCheckScopeRegistry,
33
33
  forwardRefResolver,
34
34
  readBaseClass
35
- } from "./chunk-GWA6QBDZ.js";
35
+ } from "./chunk-N5CM3LUE.js";
36
36
  import {
37
37
  ClassMemberKind,
38
38
  KnownDeclaration,
@@ -5186,4 +5186,4 @@ export {
5186
5186
  * Use of this source code is governed by an MIT-style license that can be
5187
5187
  * found in the LICENSE file at https://angular.io/license
5188
5188
  */
5189
- //# sourceMappingURL=chunk-KAZROYQX.js.map
5189
+ //# sourceMappingURL=chunk-DIXBUYVP.js.map
@@ -14,7 +14,7 @@ import {
14
14
  formatDiagnostics,
15
15
  performCompilation,
16
16
  readConfiguration
17
- } from "./chunk-AWUSLKAS.js";
17
+ } from "./chunk-XDCGNQL5.js";
18
18
  import {
19
19
  __spreadProps,
20
20
  __spreadValues
@@ -379,4 +379,4 @@ export {
379
379
  * Use of this source code is governed by an MIT-style license that can be
380
380
  * found in the LICENSE file at https://angular.io/license
381
381
  */
382
- //# sourceMappingURL=chunk-EN4WVK2E.js.map
382
+ //# sourceMappingURL=chunk-EBIPNBQL.js.map
@@ -4828,7 +4828,10 @@ var NgModuleDecoratorHandler = class {
4828
4828
  schemas: []
4829
4829
  };
4830
4830
  const rawProviders = ngModule.has("providers") ? ngModule.get("providers") : null;
4831
- const wrapperProviders = rawProviders !== null ? new WrappedNodeExpr6(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(rawProviders) : rawProviders) : null;
4831
+ let wrappedProviders = null;
4832
+ if (rawProviders !== null && (!ts22.isArrayLiteralExpression(rawProviders) || rawProviders.elements.length > 0)) {
4833
+ wrappedProviders = new WrappedNodeExpr6(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(rawProviders) : rawProviders);
4834
+ }
4832
4835
  const topLevelImports = [];
4833
4836
  if (ngModule.has("imports")) {
4834
4837
  const rawImports2 = unwrapExpression(ngModule.get("imports"));
@@ -4860,7 +4863,7 @@ var NgModuleDecoratorHandler = class {
4860
4863
  name,
4861
4864
  type,
4862
4865
  internalType,
4863
- providers: wrapperProviders
4866
+ providers: wrappedProviders
4864
4867
  };
4865
4868
  const factoryMetadata = {
4866
4869
  name,
@@ -6578,4 +6581,4 @@ export {
6578
6581
  * Use of this source code is governed by an MIT-style license that can be
6579
6582
  * found in the LICENSE file at https://angular.io/license
6580
6583
  */
6581
- //# sourceMappingURL=chunk-GWA6QBDZ.js.map
6584
+ //# sourceMappingURL=chunk-N5CM3LUE.js.map