@angular/compiler 14.0.1 → 14.0.4

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.1
2
+ * @license Angular v14.0.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.1
2
+ * @license Angular v14.0.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -19434,7 +19434,9 @@ class CompilerFacadeImpl {
19434
19434
  name: facade.name,
19435
19435
  type: wrapReference(facade.type),
19436
19436
  internalType: new WrappedNodeExpr(facade.type),
19437
- providers: new WrappedNodeExpr(facade.providers),
19437
+ providers: facade.providers && facade.providers.length > 0 ?
19438
+ new WrappedNodeExpr(facade.providers) :
19439
+ null,
19438
19440
  imports: facade.imports.map(i => new WrappedNodeExpr(i)),
19439
19441
  };
19440
19442
  const res = compileInjector(meta);
@@ -19869,7 +19871,8 @@ function convertDeclareInjectorFacadeToMetadata(declaration) {
19869
19871
  name: declaration.type.name,
19870
19872
  type: wrapReference(declaration.type),
19871
19873
  internalType: new WrappedNodeExpr(declaration.type),
19872
- providers: declaration.providers !== undefined ? new WrappedNodeExpr(declaration.providers) :
19874
+ providers: declaration.providers !== undefined && declaration.providers.length > 0 ?
19875
+ new WrappedNodeExpr(declaration.providers) :
19873
19876
  null,
19874
19877
  imports: declaration.imports !== undefined ?
19875
19878
  declaration.imports.map(i => new WrappedNodeExpr(i)) :
@@ -19888,7 +19891,7 @@ function publishFacade(global) {
19888
19891
  * Use of this source code is governed by an MIT-style license that can be
19889
19892
  * found in the LICENSE file at https://angular.io/license
19890
19893
  */
19891
- const VERSION = new Version('14.0.1');
19894
+ const VERSION = new Version('14.0.4');
19892
19895
 
19893
19896
  /**
19894
19897
  * @license
@@ -21921,7 +21924,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21921
21924
  function compileDeclareClassMetadata(metadata) {
21922
21925
  const definitionMap = new DefinitionMap();
21923
21926
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21924
- definitionMap.set('version', literal('14.0.1'));
21927
+ definitionMap.set('version', literal('14.0.4'));
21925
21928
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21926
21929
  definitionMap.set('type', metadata.type);
21927
21930
  definitionMap.set('decorators', metadata.decorators);
@@ -22038,7 +22041,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
22038
22041
  function createDirectiveDefinitionMap(meta) {
22039
22042
  const definitionMap = new DefinitionMap();
22040
22043
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
22041
- definitionMap.set('version', literal('14.0.1'));
22044
+ definitionMap.set('version', literal('14.0.4'));
22042
22045
  // e.g. `type: MyDirective`
22043
22046
  definitionMap.set('type', meta.internalType);
22044
22047
  if (meta.isStandalone) {
@@ -22252,7 +22255,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
22252
22255
  function compileDeclareFactoryFunction(meta) {
22253
22256
  const definitionMap = new DefinitionMap();
22254
22257
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
22255
- definitionMap.set('version', literal('14.0.1'));
22258
+ definitionMap.set('version', literal('14.0.4'));
22256
22259
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22257
22260
  definitionMap.set('type', meta.internalType);
22258
22261
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22294,7 +22297,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22294
22297
  function createInjectableDefinitionMap(meta) {
22295
22298
  const definitionMap = new DefinitionMap();
22296
22299
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22297
- definitionMap.set('version', literal('14.0.1'));
22300
+ definitionMap.set('version', literal('14.0.4'));
22298
22301
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22299
22302
  definitionMap.set('type', meta.internalType);
22300
22303
  // Only generate providedIn property if it has a non-null value
@@ -22352,7 +22355,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22352
22355
  function createInjectorDefinitionMap(meta) {
22353
22356
  const definitionMap = new DefinitionMap();
22354
22357
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22355
- definitionMap.set('version', literal('14.0.1'));
22358
+ definitionMap.set('version', literal('14.0.4'));
22356
22359
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22357
22360
  definitionMap.set('type', meta.internalType);
22358
22361
  definitionMap.set('providers', meta.providers);
@@ -22389,7 +22392,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22389
22392
  function createNgModuleDefinitionMap(meta) {
22390
22393
  const definitionMap = new DefinitionMap();
22391
22394
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22392
- definitionMap.set('version', literal('14.0.1'));
22395
+ definitionMap.set('version', literal('14.0.4'));
22393
22396
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22394
22397
  definitionMap.set('type', meta.internalType);
22395
22398
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22447,7 +22450,7 @@ function compileDeclarePipeFromMetadata(meta) {
22447
22450
  function createPipeDefinitionMap(meta) {
22448
22451
  const definitionMap = new DefinitionMap();
22449
22452
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22450
- definitionMap.set('version', literal('14.0.1'));
22453
+ definitionMap.set('version', literal('14.0.4'));
22451
22454
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22452
22455
  // e.g. `type: MyPipe`
22453
22456
  definitionMap.set('type', meta.internalType);