@angular/compiler 20.3.17 → 20.3.18
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.
- package/fesm2022/compiler.mjs +12 -11
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.3.
|
|
2
|
+
* @license Angular v20.3.18
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -21579,7 +21579,7 @@ function extractPlaceholderName(input) {
|
|
|
21579
21579
|
* tags use '*'.
|
|
21580
21580
|
*
|
|
21581
21581
|
* Extracted from, and should be kept in sync with
|
|
21582
|
-
* https://
|
|
21582
|
+
* https://www.w3.org/TR/trusted-types/#integrations
|
|
21583
21583
|
*/
|
|
21584
21584
|
const TRUSTED_TYPES_SINKS = new Set([
|
|
21585
21585
|
// NOTE: All strings in this set *must* be lowercase!
|
|
@@ -21590,6 +21590,7 @@ const TRUSTED_TYPES_SINKS = new Set([
|
|
|
21590
21590
|
// NB: no TrustedScript here, as the corresponding tags are stripped by the compiler.
|
|
21591
21591
|
// TrustedScriptURL
|
|
21592
21592
|
'embed|src',
|
|
21593
|
+
'iframe|src',
|
|
21593
21594
|
'object|codebase',
|
|
21594
21595
|
'object|data',
|
|
21595
21596
|
]);
|
|
@@ -34315,7 +34316,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
34315
34316
|
function compileDeclareClassMetadata(metadata) {
|
|
34316
34317
|
const definitionMap = new DefinitionMap();
|
|
34317
34318
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
34318
|
-
definitionMap.set('version', literal('20.3.
|
|
34319
|
+
definitionMap.set('version', literal('20.3.18'));
|
|
34319
34320
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34320
34321
|
definitionMap.set('type', metadata.type);
|
|
34321
34322
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -34333,7 +34334,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
34333
34334
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
34334
34335
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
34335
34336
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
34336
|
-
definitionMap.set('version', literal('20.3.
|
|
34337
|
+
definitionMap.set('version', literal('20.3.18'));
|
|
34337
34338
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34338
34339
|
definitionMap.set('type', metadata.type);
|
|
34339
34340
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -34428,7 +34429,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
34428
34429
|
const definitionMap = new DefinitionMap();
|
|
34429
34430
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
34430
34431
|
definitionMap.set('minVersion', literal(minVersion));
|
|
34431
|
-
definitionMap.set('version', literal('20.3.
|
|
34432
|
+
definitionMap.set('version', literal('20.3.18'));
|
|
34432
34433
|
// e.g. `type: MyDirective`
|
|
34433
34434
|
definitionMap.set('type', meta.type.value);
|
|
34434
34435
|
if (meta.isStandalone !== undefined) {
|
|
@@ -34844,7 +34845,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
34844
34845
|
function compileDeclareFactoryFunction(meta) {
|
|
34845
34846
|
const definitionMap = new DefinitionMap();
|
|
34846
34847
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
34847
|
-
definitionMap.set('version', literal('20.3.
|
|
34848
|
+
definitionMap.set('version', literal('20.3.18'));
|
|
34848
34849
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34849
34850
|
definitionMap.set('type', meta.type.value);
|
|
34850
34851
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -34879,7 +34880,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
34879
34880
|
function createInjectableDefinitionMap(meta) {
|
|
34880
34881
|
const definitionMap = new DefinitionMap();
|
|
34881
34882
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
34882
|
-
definitionMap.set('version', literal('20.3.
|
|
34883
|
+
definitionMap.set('version', literal('20.3.18'));
|
|
34883
34884
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34884
34885
|
definitionMap.set('type', meta.type.value);
|
|
34885
34886
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -34930,7 +34931,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
34930
34931
|
function createInjectorDefinitionMap(meta) {
|
|
34931
34932
|
const definitionMap = new DefinitionMap();
|
|
34932
34933
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
34933
|
-
definitionMap.set('version', literal('20.3.
|
|
34934
|
+
definitionMap.set('version', literal('20.3.18'));
|
|
34934
34935
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34935
34936
|
definitionMap.set('type', meta.type.value);
|
|
34936
34937
|
definitionMap.set('providers', meta.providers);
|
|
@@ -34963,7 +34964,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
34963
34964
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
34964
34965
|
}
|
|
34965
34966
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
34966
|
-
definitionMap.set('version', literal('20.3.
|
|
34967
|
+
definitionMap.set('version', literal('20.3.18'));
|
|
34967
34968
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34968
34969
|
definitionMap.set('type', meta.type.value);
|
|
34969
34970
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -35014,7 +35015,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
35014
35015
|
function createPipeDefinitionMap(meta) {
|
|
35015
35016
|
const definitionMap = new DefinitionMap();
|
|
35016
35017
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
35017
|
-
definitionMap.set('version', literal('20.3.
|
|
35018
|
+
definitionMap.set('version', literal('20.3.18'));
|
|
35018
35019
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
35019
35020
|
// e.g. `type: MyPipe`
|
|
35020
35021
|
definitionMap.set('type', meta.type.value);
|
|
@@ -35170,7 +35171,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
35170
35171
|
* @description
|
|
35171
35172
|
* Entry point for all public APIs of the compiler package.
|
|
35172
35173
|
*/
|
|
35173
|
-
const VERSION = new Version('20.3.
|
|
35174
|
+
const VERSION = new Version('20.3.18');
|
|
35174
35175
|
|
|
35175
35176
|
//////////////////////////////////////
|
|
35176
35177
|
// THIS FILE HAS GLOBAL SIDE EFFECT //
|