@angular/compiler 14.0.6 → 14.0.7

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.6
2
+ * @license Angular v14.0.7
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.6
2
+ * @license Angular v14.0.7
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4973,7 +4973,6 @@ function conditionallyCreateMapObjectLiteral(keys, keepDeclared) {
4973
4973
  function mapToExpression(map, keepDeclared) {
4974
4974
  return literalMap(Object.getOwnPropertyNames(map).map(key => {
4975
4975
  // canonical syntax: `dirProp: publicProp`
4976
- // if there is no `:`, use dirProp = elProp
4977
4976
  const value = map[key];
4978
4977
  let declaredName;
4979
4978
  let publicName;
@@ -4985,12 +4984,9 @@ function mapToExpression(map, keepDeclared) {
4985
4984
  needsDeclaredName = publicName !== declaredName;
4986
4985
  }
4987
4986
  else {
4988
- [declaredName, publicName] = splitAtColon(key, [key, value]);
4989
- minifiedName = declaredName;
4990
- // Only include the declared name if extracted from the key, i.e. the key contains a colon.
4991
- // Otherwise the declared name should be omitted even if it is different from the public name,
4992
- // as it may have already been minified.
4993
- needsDeclaredName = publicName !== declaredName && key.includes(':');
4987
+ minifiedName = declaredName = key;
4988
+ publicName = value;
4989
+ needsDeclaredName = false;
4994
4990
  }
4995
4991
  return {
4996
4992
  key: minifiedName,
@@ -19848,10 +19844,10 @@ function isOutput(value) {
19848
19844
  return value.ngMetadataName === 'Output';
19849
19845
  }
19850
19846
  function parseInputOutputs(values) {
19851
- return values.reduce((map, value) => {
19852
- const [field, property] = value.split(',').map(piece => piece.trim());
19853
- map[field] = property || field;
19854
- return map;
19847
+ return values.reduce((results, value) => {
19848
+ const [field, property] = value.split(':', 2).map(str => str.trim());
19849
+ results[field] = property || field;
19850
+ return results;
19855
19851
  }, {});
19856
19852
  }
19857
19853
  function convertDeclarePipeFacadeToMetadata(declaration) {
@@ -19891,7 +19887,7 @@ function publishFacade(global) {
19891
19887
  * Use of this source code is governed by an MIT-style license that can be
19892
19888
  * found in the LICENSE file at https://angular.io/license
19893
19889
  */
19894
- const VERSION = new Version('14.0.6');
19890
+ const VERSION = new Version('14.0.7');
19895
19891
 
19896
19892
  /**
19897
19893
  * @license
@@ -21924,7 +21920,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21924
21920
  function compileDeclareClassMetadata(metadata) {
21925
21921
  const definitionMap = new DefinitionMap();
21926
21922
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21927
- definitionMap.set('version', literal('14.0.6'));
21923
+ definitionMap.set('version', literal('14.0.7'));
21928
21924
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21929
21925
  definitionMap.set('type', metadata.type);
21930
21926
  definitionMap.set('decorators', metadata.decorators);
@@ -22041,7 +22037,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
22041
22037
  function createDirectiveDefinitionMap(meta) {
22042
22038
  const definitionMap = new DefinitionMap();
22043
22039
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
22044
- definitionMap.set('version', literal('14.0.6'));
22040
+ definitionMap.set('version', literal('14.0.7'));
22045
22041
  // e.g. `type: MyDirective`
22046
22042
  definitionMap.set('type', meta.internalType);
22047
22043
  if (meta.isStandalone) {
@@ -22255,7 +22251,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
22255
22251
  function compileDeclareFactoryFunction(meta) {
22256
22252
  const definitionMap = new DefinitionMap();
22257
22253
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
22258
- definitionMap.set('version', literal('14.0.6'));
22254
+ definitionMap.set('version', literal('14.0.7'));
22259
22255
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22260
22256
  definitionMap.set('type', meta.internalType);
22261
22257
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22297,7 +22293,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22297
22293
  function createInjectableDefinitionMap(meta) {
22298
22294
  const definitionMap = new DefinitionMap();
22299
22295
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22300
- definitionMap.set('version', literal('14.0.6'));
22296
+ definitionMap.set('version', literal('14.0.7'));
22301
22297
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22302
22298
  definitionMap.set('type', meta.internalType);
22303
22299
  // Only generate providedIn property if it has a non-null value
@@ -22355,7 +22351,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22355
22351
  function createInjectorDefinitionMap(meta) {
22356
22352
  const definitionMap = new DefinitionMap();
22357
22353
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22358
- definitionMap.set('version', literal('14.0.6'));
22354
+ definitionMap.set('version', literal('14.0.7'));
22359
22355
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22360
22356
  definitionMap.set('type', meta.internalType);
22361
22357
  definitionMap.set('providers', meta.providers);
@@ -22392,7 +22388,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22392
22388
  function createNgModuleDefinitionMap(meta) {
22393
22389
  const definitionMap = new DefinitionMap();
22394
22390
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22395
- definitionMap.set('version', literal('14.0.6'));
22391
+ definitionMap.set('version', literal('14.0.7'));
22396
22392
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22397
22393
  definitionMap.set('type', meta.internalType);
22398
22394
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22450,7 +22446,7 @@ function compileDeclarePipeFromMetadata(meta) {
22450
22446
  function createPipeDefinitionMap(meta) {
22451
22447
  const definitionMap = new DefinitionMap();
22452
22448
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22453
- definitionMap.set('version', literal('14.0.6'));
22449
+ definitionMap.set('version', literal('14.0.7'));
22454
22450
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22455
22451
  // e.g. `type: MyPipe`
22456
22452
  definitionMap.set('type', meta.internalType);