@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
  */
@@ -4977,7 +4977,6 @@ function conditionallyCreateMapObjectLiteral(keys, keepDeclared) {
4977
4977
  function mapToExpression(map, keepDeclared) {
4978
4978
  return literalMap(Object.getOwnPropertyNames(map).map(key => {
4979
4979
  // canonical syntax: `dirProp: publicProp`
4980
- // if there is no `:`, use dirProp = elProp
4981
4980
  const value = map[key];
4982
4981
  let declaredName;
4983
4982
  let publicName;
@@ -4989,12 +4988,9 @@ function mapToExpression(map, keepDeclared) {
4989
4988
  needsDeclaredName = publicName !== declaredName;
4990
4989
  }
4991
4990
  else {
4992
- [declaredName, publicName] = splitAtColon(key, [key, value]);
4993
- minifiedName = declaredName;
4994
- // Only include the declared name if extracted from the key, i.e. the key contains a colon.
4995
- // Otherwise the declared name should be omitted even if it is different from the public name,
4996
- // as it may have already been minified.
4997
- needsDeclaredName = publicName !== declaredName && key.includes(':');
4991
+ minifiedName = declaredName = key;
4992
+ publicName = value;
4993
+ needsDeclaredName = false;
4998
4994
  }
4999
4995
  return {
5000
4996
  key: minifiedName,
@@ -19805,10 +19801,10 @@ function isOutput(value) {
19805
19801
  return value.ngMetadataName === 'Output';
19806
19802
  }
19807
19803
  function parseInputOutputs(values) {
19808
- return values.reduce((map, value) => {
19809
- const [field, property] = value.split(',').map(piece => piece.trim());
19810
- map[field] = property || field;
19811
- return map;
19804
+ return values.reduce((results, value) => {
19805
+ const [field, property] = value.split(':', 2).map(str => str.trim());
19806
+ results[field] = property || field;
19807
+ return results;
19812
19808
  }, {});
19813
19809
  }
19814
19810
  function convertDeclarePipeFacadeToMetadata(declaration) {
@@ -19849,7 +19845,7 @@ function publishFacade(global) {
19849
19845
  * Use of this source code is governed by an MIT-style license that can be
19850
19846
  * found in the LICENSE file at https://angular.io/license
19851
19847
  */
19852
- const VERSION = new Version('14.0.6');
19848
+ const VERSION = new Version('14.0.7');
19853
19849
 
19854
19850
  /**
19855
19851
  * @license
@@ -21876,7 +21872,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21876
21872
  function compileDeclareClassMetadata(metadata) {
21877
21873
  const definitionMap = new DefinitionMap();
21878
21874
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21879
- definitionMap.set('version', literal('14.0.6'));
21875
+ definitionMap.set('version', literal('14.0.7'));
21880
21876
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21881
21877
  definitionMap.set('type', metadata.type);
21882
21878
  definitionMap.set('decorators', metadata.decorators);
@@ -21993,7 +21989,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
21993
21989
  function createDirectiveDefinitionMap(meta) {
21994
21990
  const definitionMap = new DefinitionMap();
21995
21991
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
21996
- definitionMap.set('version', literal('14.0.6'));
21992
+ definitionMap.set('version', literal('14.0.7'));
21997
21993
  // e.g. `type: MyDirective`
21998
21994
  definitionMap.set('type', meta.internalType);
21999
21995
  if (meta.isStandalone) {
@@ -22207,7 +22203,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
22207
22203
  function compileDeclareFactoryFunction(meta) {
22208
22204
  const definitionMap = new DefinitionMap();
22209
22205
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
22210
- definitionMap.set('version', literal('14.0.6'));
22206
+ definitionMap.set('version', literal('14.0.7'));
22211
22207
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22212
22208
  definitionMap.set('type', meta.internalType);
22213
22209
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22249,7 +22245,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22249
22245
  function createInjectableDefinitionMap(meta) {
22250
22246
  const definitionMap = new DefinitionMap();
22251
22247
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22252
- definitionMap.set('version', literal('14.0.6'));
22248
+ definitionMap.set('version', literal('14.0.7'));
22253
22249
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22254
22250
  definitionMap.set('type', meta.internalType);
22255
22251
  // Only generate providedIn property if it has a non-null value
@@ -22307,7 +22303,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22307
22303
  function createInjectorDefinitionMap(meta) {
22308
22304
  const definitionMap = new DefinitionMap();
22309
22305
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22310
- definitionMap.set('version', literal('14.0.6'));
22306
+ definitionMap.set('version', literal('14.0.7'));
22311
22307
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22312
22308
  definitionMap.set('type', meta.internalType);
22313
22309
  definitionMap.set('providers', meta.providers);
@@ -22344,7 +22340,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22344
22340
  function createNgModuleDefinitionMap(meta) {
22345
22341
  const definitionMap = new DefinitionMap();
22346
22342
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22347
- definitionMap.set('version', literal('14.0.6'));
22343
+ definitionMap.set('version', literal('14.0.7'));
22348
22344
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22349
22345
  definitionMap.set('type', meta.internalType);
22350
22346
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22402,7 +22398,7 @@ function compileDeclarePipeFromMetadata(meta) {
22402
22398
  function createPipeDefinitionMap(meta) {
22403
22399
  const definitionMap = new DefinitionMap();
22404
22400
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22405
- definitionMap.set('version', literal('14.0.6'));
22401
+ definitionMap.set('version', literal('14.0.7'));
22406
22402
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22407
22403
  // e.g. `type: MyPipe`
22408
22404
  definitionMap.set('type', meta.internalType);