Socket
Socket
Sign inDemoInstall

@angular/compiler

Package Overview
Dependencies
Maintainers
1
Versions
837
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/compiler - npm Package Compare versions

Comparing version 2.4.3 to 2.4.4

2

bundles/compiler-testing.umd.js
/**
* @license Angular v2.4.3
* @license Angular v2.4.4
* (c) 2010-2016 Google, Inc. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

{
"name": "@angular/compiler",
"version": "2.4.3",
"version": "2.4.4",
"description": "Angular - the compiler library",

@@ -11,3 +11,3 @@ "main": "bundles/compiler.umd.js",

"peerDependencies": {
"@angular/core": "2.4.3"
"@angular/core": "2.4.4"
},

@@ -14,0 +14,0 @@ "repository": {

@@ -7,7 +7,7 @@ var __extends = (this && this.__extends) || function (d, b) {

/**
* @license undefined
* Copyright Google Inc. All Rights Reserved.
* *
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
* @abstract

@@ -14,0 +14,0 @@ */

@@ -123,2 +123,3 @@ /**

/**
* \@internal
* @param {?} ast

@@ -139,2 +140,3 @@ * @param {?} context

/**
* \@internal
* @param {?} ast

@@ -141,0 +143,0 @@ * @param {?} startingStylesExpr

@@ -36,3 +36,3 @@ /**

/**
* Creates a new AotCompiler based on options and a host.
* Creates a new AotCompiler based on options and a host.
* @param {?} compilerHost

@@ -39,0 +39,0 @@ * @param {?} options

/**
* @license undefined
* Copyright Google Inc. All Rights Reserved.
* *
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

@@ -8,0 +8,0 @@ export var GeneratedFile = (function () {

@@ -25,4 +25,4 @@ /**

/**
* A static reflector implements enough of the Reflector API that is necessary to compile
* templates statically.
* A static reflector implements enough of the Reflector API that is necessary to compile
* templates statically.
*/

@@ -298,5 +298,5 @@ export var StaticReflector = (function () {

/**
* getStaticSymbol produces a Type whose metadata is known but whose implementation is not loaded.
* All types passed to the StaticResolver should be pseudo-types returned by this method.
* *
* getStaticSymbol produces a Type whose metadata is known but whose implementation is not loaded.
* All types passed to the StaticResolver should be pseudo-types returned by this method.
*
* @param {?} declarationFile the absolute path of the file where the symbol is declared

@@ -325,2 +325,3 @@ * @param {?} name the name of the type.

/**
* \@internal
* @param {?} context

@@ -327,0 +328,0 @@ * @param {?} value

@@ -34,4 +34,4 @@ /**

/**
* This class is responsible for loading metadata per symbol,
* and normalizing references between symbols.
* This class is responsible for loading metadata per symbol,
* and normalizing references between symbols.
*/

@@ -109,5 +109,5 @@ export var StaticSymbolResolver = (function () {

/**
* getStaticSymbol produces a Type whose metadata is known but whose implementation is not loaded.
* All types passed to the StaticResolver should be pseudo-types returned by this method.
* *
* getStaticSymbol produces a Type whose metadata is known but whose implementation is not loaded.
* All types passed to the StaticResolver should be pseudo-types returned by this method.
*
* @param {?} declarationFile the absolute path of the file where the symbol is declared

@@ -114,0 +114,0 @@ * @param {?} name the name of the type.

/**
* A token representing the a reference to a static type.
* *
* This token is unique for a filePath and name and can be used as a hash table key.
* A token representing the a reference to a static type.
*
* This token is unique for a filePath and name and can be used as a hash table key.
*/

@@ -28,4 +28,4 @@ export var StaticSymbol = (function () {

/**
* A cache of static symbol used by the StaticReflector to return the same symbol for the
* same symbol values.
* A cache of static symbol used by the StaticReflector to return the same symbol for the
* same symbol values.
*/

@@ -32,0 +32,0 @@ export var StaticSymbolCache = (function () {

@@ -277,3 +277,3 @@ /**

/**
* Metadata about a stylesheet
* Metadata about a stylesheet
*/

@@ -301,3 +301,3 @@ export var CompileStylesheetMetadata = (function () {

/**
* Metadata regarding compilation of a template.
* Metadata regarding compilation of a template.
*/

@@ -356,3 +356,3 @@ export var CompileTemplateMetadata = (function () {

/**
* Metadata regarding compilation of a directive.
* Metadata regarding compilation of a directive.
*/

@@ -504,3 +504,3 @@ export var CompileDirectiveMetadata = (function () {

/**
* Construct {@link CompileDirectiveMetadata} from {@link ComponentTypeMetadata} and a selector.
* Construct {\@link CompileDirectiveMetadata} from {\@link ComponentTypeMetadata} and a selector.
* @param {?} typeReference

@@ -568,3 +568,3 @@ * @param {?} compMeta

/**
* Metadata regarding compilation of a module.
* Metadata regarding compilation of a module.
*/

@@ -571,0 +571,0 @@ export var CompileNgModuleMetadata = (function () {

@@ -46,4 +46,4 @@ /**

/**
* Converts the given expression AST into an executable output AST, assuming the expression is
* used in a property binding.
* Converts the given expression AST into an executable output AST, assuming the expression is
* used in a property binding.
* @param {?} builder

@@ -103,4 +103,4 @@ * @param {?} nameResolver

/**
* Converts the given expression AST into an executable output AST, assuming the expression is
* used in an action binding (e.g. an event handler).
* Converts the given expression AST into an executable output AST, assuming the expression is
* used in an action binding (e.g. an event handler).
* @param {?} builder

@@ -138,4 +138,4 @@ * @param {?} nameResolver

/**
* Creates variables that are shared by multiple calls to `convertActionBinding` /
* `convertPropertyBinding`
* Creates variables that are shared by multiple calls to `convertActionBinding` /
* `convertPropertyBinding`
* @param {?} stmts

@@ -142,0 +142,0 @@ * @return {?}

@@ -63,5 +63,5 @@ /**

/**
* Types used for the renderer.
* Can be replaced to specialize the generated output to a specific renderer
* to help tree shaking.
* Types used for the renderer.
* Can be replaced to specialize the generated output to a specific renderer
* to help tree shaking.
* @abstract

@@ -68,0 +68,0 @@ */

@@ -23,9 +23,2 @@ /**

import { splitAtColon } from './util';
/*
* Resolve a `Type` for {@link Directive}.
*
* This interface can be overridden by the application developer to create custom behavior.
*
* See {@link Compiler}
*/
export var DirectiveResolver = (function () {

@@ -48,3 +41,3 @@ /**

/**
* Return {@link Directive} for a given `Type`.
* Return {\@link Directive} for a given `Type`.
* @param {?} type

@@ -51,0 +44,0 @@ * @param {?=} throwIfNotFound

@@ -62,8 +62,8 @@ /**

/**
* We generate directive wrappers to prevent code bloat when a directive is used.
* A directive wrapper encapsulates
* the dirty checking for `@Input`, the handling of `@HostListener` / `@HostBinding`
* and calling the lifecyclehooks `ngOnInit`, `ngOnChanges`, `ngDoCheck`.
* *
* So far, only `@Input` and the lifecycle hooks have been implemented.
* We generate directive wrappers to prevent code bloat when a directive is used.
* A directive wrapper encapsulates
* the dirty checking for `\@Input`, the handling of `\@HostListener` / `\@HostBinding`
* and calling the lifecyclehooks `ngOnInit`, `ngOnChanges`, `ngDoCheck`.
*
* So far, only `\@Input` and the lifecycle hooks have been implemented.
*/

@@ -70,0 +70,0 @@ export var DirectiveWrapperCompiler = (function () {

@@ -83,13 +83,13 @@ /**

/**
* Represents a quoted expression of the form:
* *
* quote = prefix `:` uninterpretedExpression
* prefix = identifier
* uninterpretedExpression = arbitrary string
* *
* A quoted expression is meant to be pre-processed by an AST transformer that
* converts it into another AST that no longer contains quoted expressions.
* It is meant to allow third-party developers to extend Angular template
* expression language. The `uninterpretedExpression` part of the quote is
* therefore not interpreted by the Angular's own expression parser.
* Represents a quoted expression of the form:
*
* quote = prefix `:` uninterpretedExpression
* prefix = identifier
* uninterpretedExpression = arbitrary string
*
* A quoted expression is meant to be pre-processed by an AST transformer that
* converts it into another AST that no longer contains quoted expressions.
* It is meant to allow third-party developers to extend Angular template
* expression language. The `uninterpretedExpression` part of the quote is
* therefore not interpreted by the Angular's own expression parser.
*/

@@ -166,3 +166,3 @@ export var Quote = (function (_super) {

/**
* Multiple expressions separated by a semicolon.
* Multiple expressions separated by a semicolon.
*/

@@ -169,0 +169,0 @@ export var Chain = (function (_super) {

@@ -332,4 +332,4 @@ /**

/**
* Tokenize a 2/3 char long operator
* *
* Tokenize a 2/3 char long operator
*
* @param {?} start start index in the expression

@@ -336,0 +336,0 @@ * @param {?} one first symbol (always part of the operator)

@@ -852,3 +852,3 @@ /**

/**
* An identifier, a keyword, a string with an optional `-` inbetween.
* An identifier, a keyword, a string with an optional `-` inbetween.
* @return {?}

@@ -855,0 +855,0 @@ */

@@ -10,3 +10,3 @@ /**

/**
* Wraps Javascript Objects
* Wraps Javascript Objects
*/

@@ -13,0 +13,0 @@ export var StringMapWrapper = (function () {

@@ -7,7 +7,7 @@ var __extends = (this && this.__extends) || function (d, b) {

/**
* @license undefined
* Copyright Google Inc. All Rights Reserved.
* *
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
* @return {?}

@@ -19,3 +19,3 @@ */

/**
* @stable
* \@stable
*/

@@ -77,7 +77,10 @@ export var BaseError = (function (_super) {

function BaseError_tsickle_Closure_declarations() {
/** @type {?} */
/**
* \@internal *
* @type {?}
*/
BaseError.prototype._nativeError;
}
/**
* @stable
* \@stable
*/

@@ -84,0 +87,0 @@ export var WrappedError = (function (_super) {

@@ -30,6 +30,7 @@ /**

/**
* Serialize the i18n ast to something xml-like in order to generate an UID.
* *
* The visitor is also used in the i18n parser tests
* *
* Serialize the i18n ast to something xml-like in order to generate an UID.
*
* The visitor is also used in the i18n parser tests
*
* \@internal
*/

@@ -102,6 +103,7 @@ var _SerializerVisitor = (function () {

/**
* Serialize the i18n ast to something xml-like in order to generate an UID.
* *
* Ignore the ICU expressions so that message IDs stays identical if only the expression changes.
* *
* Serialize the i18n ast to something xml-like in order to generate an UID.
*
* Ignore the ICU expressions so that message IDs stays identical if only the expression changes.
*
* \@internal
*/

@@ -127,8 +129,8 @@ var _SerializerIgnoreIcuExpVisitor = (function (_super) {

/**
* Compute the SHA1 of the given string
* *
* see http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf
* *
* WARNING: this function has not been designed not tested with security in mind.
* DO NOT USE IT IN A SECURITY SENSITIVE CONTEXT.
* Compute the SHA1 of the given string
*
* see http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf
*
* WARNING: this function has not been designed not tested with security in mind.
* DO NOT USE IT IN A SECURITY SENSITIVE CONTEXT.
* @param {?} str

@@ -183,8 +185,8 @@ * @return {?}

/**
* Compute the fingerprint of the given string
* *
* The output is 64 bit number encoded as a decimal string
* *
* based on:
* https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/GoogleJsMessageIdGenerator.java
* Compute the fingerprint of the given string
*
* The output is 64 bit number encoded as a decimal string
*
* based on:
* https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/GoogleJsMessageIdGenerator.java
* @param {?} str

@@ -191,0 +193,0 @@ * @return {?}

@@ -17,3 +17,3 @@ /**

/**
* Extract translatable messages from an html AST
* Extract translatable messages from an html AST
* @param {?} nodes

@@ -64,6 +64,7 @@ * @param {?} interpolationConfig

/**
* This Visitor is used:
* 1. to extract all the translatable strings from an html AST (see `extract()`),
* 2. to replace the translatable strings with the actual translations (see `merge()`)
* *
* This Visitor is used:
* 1. to extract all the translatable strings from an html AST (see `extract()`),
* 2. to replace the translatable strings with the actual translations (see `merge()`)
*
* \@internal
*/

@@ -80,3 +81,3 @@ var _Visitor = (function () {

/**
* Extracts the messages from the tree
* Extracts the messages from the tree
* @param {?} nodes

@@ -96,3 +97,3 @@ * @param {?} interpolationConfig

/**
* Returns a tree where all translatable nodes are translated
* Returns a tree where all translatable nodes are translated
* @param {?} nodes

@@ -389,6 +390,6 @@ * @param {?} translations

/**
* Add the node as a child of the block when:
* - we are in a block,
* - we are not inside a ICU message (those are handled separately),
* - the node is a "direct child" of the block
* Add the node as a child of the block when:
* - we are in a block,
* - we are not inside a ICU message (those are handled separately),
* - the node is a "direct child" of the block
* @param {?} node

@@ -403,3 +404,3 @@ * @return {?}

/**
* Marks the start of a section, see `_endSection`
* Marks the start of a section, see `_endSection`
* @param {?} node

@@ -418,5 +419,5 @@ * @return {?}

/**
* A translatable section could be:
* - the content of translatable element,
* - nodes between `<!-- i18n -->` and `<!-- /i18n -->` comments
* A translatable section could be:
* - the content of translatable element,
* - nodes between `<!-- i18n -->` and `<!-- /i18n -->` comments
* @return {?}

@@ -431,16 +432,16 @@ */

/**
* Terminates a section.
* *
* If a section has only one significant children (comments not significant) then we should not
* keep the message from this children:
* *
* `<p i18n="meaning|description">{ICU message}</p>` would produce two messages:
* - one for the <p> content with meaning and description,
* - another one for the ICU message.
* *
* In this case the last message is discarded as it contains less information (the AST is
* otherwise identical).
* *
* Note that we should still keep messages extracted from attributes inside the section (ie in the
* ICU message here)
* Terminates a section.
*
* If a section has only one significant children (comments not significant) then we should not
* keep the message from this children:
*
* `<p i18n="meaning|description">{ICU message}</p>` would produce two messages:
* - one for the <p> content with meaning and description,
* - another one for the ICU message.
*
* In this case the last message is discarded as it contains less information (the AST is
* otherwise identical).
*
* Note that we should still keep messages extracted from attributes inside the section (ie in the
* ICU message here)
* @param {?} node

@@ -447,0 +448,0 @@ * @param {?} directChildren

@@ -60,3 +60,2 @@ /**

}
// TODO(vicb): do we really need this node (vs an array) ?
export var Container = (function () {

@@ -63,0 +62,0 @@ /**

@@ -16,3 +16,3 @@ /**

/**
* Returns a function converting html nodes to an i18n Message given an interpolationConfig
* Returns a function converting html nodes to an i18n Message given an interpolationConfig
* @param {?} interpolationConfig

@@ -19,0 +19,0 @@ * @return {?}

@@ -10,3 +10,3 @@ /**

/**
* A container for message extracted from the templates.
* A container for message extracted from the templates.
*/

@@ -13,0 +13,0 @@ export var MessageBundle = (function () {

@@ -15,3 +15,3 @@ /**

/**
* An i18n error.
* An i18n error.
*/

@@ -18,0 +18,0 @@ export var I18nError = (function (_super) {

@@ -41,6 +41,7 @@ /**

/**
* Creates unique names for placeholder with different content.
* *
* Returns the same placeholder name when the content is identical.
* *
* Creates unique names for placeholder with different content.
*
* Returns the same placeholder name when the content is identical.
*
* \@internal
*/

@@ -47,0 +48,0 @@ export var PlaceholderRegistry = (function () {

@@ -22,4 +22,2 @@ /**

var /** @type {?} */ _UNIT_TAG = 'trans-unit';
// http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html
// http://docs.oasis-open.org/xliff/v1.2/xliff-profile-html/xliff-profile-html-1.2.html
export var Xliff = (function () {

@@ -175,4 +173,2 @@ function Xliff() {

}
// TODO(vicb): add error management (structure)
// Extract messages as xml nodes from the xliff file
var XliffParser = (function () {

@@ -286,3 +282,2 @@ function XliffParser() {

}
// Convert ml nodes (xliff syntax) to i18n nodes
var XmlToI18n = (function () {

@@ -289,0 +284,0 @@ function XmlToI18n() {

@@ -152,3 +152,2 @@ /**

}
// TC requires at least one non-empty example on placeholders
var ExampleVisitor = (function () {

@@ -155,0 +154,0 @@ function ExampleVisitor() {

@@ -53,3 +53,2 @@ /**

}());
// Extract messages as xml nodes from the xtb file
var XtbParser = (function () {

@@ -156,3 +155,2 @@ function XtbParser() {

}
// Convert ml nodes (xtb syntax) to i18n nodes
var XmlToI18n = (function () {

@@ -159,0 +157,0 @@ function XmlToI18n() {

@@ -11,3 +11,3 @@ /**

/**
* A container for translated messages
* A container for translated messages
*/

@@ -14,0 +14,0 @@ export var TranslationBundle = (function () {

/**
* A replacement for @Injectable to be used in the compiler, so that
* we don't try to evaluate the metadata in the compiler during AoT.
* This decorator is enough to make the compiler work with the ReflectiveInjector though.
* A replacement for \@Injectable to be used in the compiler, so that
* we don't try to evaluate the metadata in the compiler during AoT.
* This decorator is enough to make the compiler work with the ReflectiveInjector though.
* @return {?}

@@ -6,0 +6,0 @@ */

@@ -35,8 +35,9 @@ /**

/**
* An internal module of the Angular compiler that begins with component types,
* extracts templates, and eventually produces a compiled version of the component
* ready for linking into an application.
* *
* from a trusted source. Attacker-controlled data introduced by a template could expose your
* application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).
* An internal module of the Angular compiler that begins with component types,
* extracts templates, and eventually produces a compiled version of the component
* ready for linking into an application.
*
* \@security When compiling templates at runtime, you must ensure that the entire template comes
* from a trusted source. Attacker-controlled data introduced by a template could expose your
* application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).
*/

@@ -203,2 +204,3 @@ export var JitCompiler = (function () {

/**
* \@internal
* @param {?} mainModule

@@ -526,3 +528,3 @@ * @param {?} allComponentFactories

/**
* Implements `Compiler` by delegating to the JitCompiler using a known module.
* Implements `Compiler` by delegating to the JitCompiler using a known module.
*/

@@ -582,3 +584,3 @@ var ModuleBoundCompiler = (function () {

/**
* Clears all caches
* Clears all caches
* @return {?}

@@ -588,3 +590,3 @@ */

/**
* Clears the cache for the given component/ngModule.
* Clears the cache for the given component/ngModule.
* @param {?} type

@@ -591,0 +593,0 @@ * @return {?}

@@ -40,9 +40,2 @@ /**

export var /** @type {?} */ ERROR_COLLECTOR_TOKEN = new OpaqueToken('ErrorCollector');
// Design notes:
// - don't lazily create metadata:
// For some metadata, we need to do async work sometimes,
// so the user has to kick off this loading.
// But we want to report errors even when the async work is
// not required to check that the user would have been able
// to wait correctly.
export var CompileMetadataResolver = (function () {

@@ -322,4 +315,4 @@ /**

/**
* Gets the metadata for the given directive.
* This assumes `loadNgModuleMetadata` has been called first.
* Gets the metadata for the given directive.
* This assumes `loadNgModuleMetadata` has been called first.
* @param {?} directiveType

@@ -372,3 +365,3 @@ * @return {?}

/**
* Loads the declared directives and pipes of an NgModule.
* Loads the declared directives and pipes of an NgModule.
* @param {?} moduleType

@@ -684,4 +677,4 @@ * @param {?} isSync

/**
* Gets the metadata for the given pipe.
* This assumes `loadNgModuleMetadata` has been called first.
* Gets the metadata for the given pipe.
* This assumes `loadNgModuleMetadata` has been called first.
* @param {?} pipeType

@@ -688,0 +681,0 @@ * @return {?}

@@ -18,23 +18,23 @@ /**

/**
* Expands special forms into elements.
* *
* For example,
* *
* ```
* { messages.length, plural,
* =0 {zero}
* =1 {one}
* other {more than one}
* }
* ```
* *
* will be expanded into
* *
* ```
* <ng-container [ngPlural]="messages.length">
* <template ngPluralCase="=0">zero</template>
* <template ngPluralCase="=1">one</template>
* <template ngPluralCase="other">more than one</template>
* </ng-container>
* ```
* Expands special forms into elements.
*
* For example,
*
* ```
* { messages.length, plural,
* =0 {zero}
* =1 {one}
* other {more than one}
* }
* ```
*
* will be expanded into
*
* ```
* <ng-container [ngPlural]="messages.length">
* <template ngPluralCase="=0">zero</template>
* <template ngPluralCase="=1">one</template>
* <template ngPluralCase="other">more than one</template>
* </ng-container>
* ```
* @param {?} nodes

@@ -80,4 +80,5 @@ * @return {?}

/**
* Expand expansion forms (plural, select) to directives
* *
* Expand expansion forms (plural, select) to directives
*
* \@internal
*/

@@ -84,0 +85,0 @@ var _Expander = (function () {

@@ -156,3 +156,2 @@ /**

}
// See http://www.w3.org/TR/html51/syntax.html#writing
var _Tokenizer = (function () {

@@ -239,2 +238,3 @@ /**

/**
* \@internal
* @return {?}

@@ -241,0 +241,0 @@ */

@@ -408,5 +408,5 @@ /**

/**
* Returns the parent in the DOM and the container.
* *
* `<ng-container>` elements are skipped as they are not rendered as DOM element.
* Returns the parent in the DOM and the container.
*
* `<ng-container>` elements are skipped as they are not rendered as DOM element.
* @return {?}

@@ -438,6 +438,7 @@ */

/**
* Insert a node between the parent and the container.
* When no container is given, the node is appended as a child of the parent.
* Also updates the element stack accordingly.
* *
* Insert a node between the parent and the container.
* When no container is given, the node is appended as a child of the parent.
* Also updates the element stack accordingly.
*
* \@internal
* @param {?} parent

@@ -444,0 +445,0 @@ * @param {?} container

@@ -30,3 +30,3 @@ /**

/**
* Resolves types to {@link NgModule}.
* Resolves types to {\@link NgModule}.
*/

@@ -33,0 +33,0 @@ export var NgModuleResolver = (function () {

@@ -10,3 +10,3 @@ /**

/**
* Create a new class stmts based on the given data.
* Create a new class stmts based on the given data.
* @param {?} config

@@ -13,0 +13,0 @@ * @return {?}

/**
* Interface that defines how import statements should be generated.
* Interface that defines how import statements should be generated.
* @abstract

@@ -9,4 +9,4 @@ */

/**
* Converts a file path to a module name that can be used as an `import.
* I.e. `path/to/importedFile.ts` should be imported by `path/to/containingFile.ts`.
* Converts a file path to a module name that can be used as an `import.
* I.e. `path/to/importedFile.ts` should be imported by `path/to/containingFile.ts`.
* @abstract

@@ -13,0 +13,0 @@ * @param {?} importedFilePath

@@ -30,7 +30,7 @@ /**

/**
* Resolve a `Type` for {@link Pipe}.
* *
* This interface can be overridden by the application developer to create custom behavior.
* *
* See {@link Compiler}
* Resolve a `Type` for {\@link Pipe}.
*
* This interface can be overridden by the application developer to create custom behavior.
*
* See {\@link Compiler}
*/

@@ -54,3 +54,3 @@ export var PipeResolver = (function () {

/**
* Return {@link Pipe} for a given `Type`.
* Return {\@link Pipe} for a given `Type`.
* @param {?} type

@@ -57,0 +57,0 @@ * @param {?=} throwIfNotFound

@@ -50,5 +50,11 @@ /**

function ProviderViewContext_tsickle_Closure_declarations() {
/** @type {?} */
/**
* \@internal
* @type {?}
*/
ProviderViewContext.prototype.viewQueries;
/** @type {?} */
/**
* \@internal
* @type {?}
*/
ProviderViewContext.prototype.viewProviders;

@@ -55,0 +61,0 @@ /** @type {?} */

/**
* An interface for retrieving documents by URL that the compiler uses
* to load templates.
* An interface for retrieving documents by URL that the compiler uses
* to load templates.
*/

@@ -5,0 +5,0 @@ export var ResourceLoader = (function () {

@@ -331,10 +331,10 @@ /**

/**
* securityContext returns the security context for the given property on the given DOM tag.
* *
* Tag and property name are statically known and cannot change at runtime, i.e. it is not
* possible to bind a value into a changing attribute or tag name.
* *
* The filtering is white list based. All attributes in the schema above are assumed to have the
* 'NONE' security context, i.e. that they are safe inert string values. Only specific well known
* attack vectors are assigned their appropriate context.
* securityContext returns the security context for the given property on the given DOM tag.
*
* Tag and property name are statically known and cannot change at runtime, i.e. it is not
* possible to bind a value into a changing attribute or tag name.
*
* The filtering is white list based. All attributes in the schema above are assumed to have the
* 'NONE' security context, i.e. that they are safe inert string values. Only specific well known
* attack vectors are assigned their appropriate context.
* @param {?} tagName

@@ -341,0 +341,0 @@ * @param {?} propName

@@ -17,5 +17,5 @@ /**

/**
* A css selector contains an element name,
* css classes and attribute/value pairs with the purpose
* of selecting subsets out of them.
* A css selector contains an element name,
* css classes and attribute/value pairs with the purpose
* of selecting subsets out of them.
*/

@@ -100,3 +100,3 @@ export var CssSelector = (function () {

/**
* Gets a template string for an element that matches the selector.
* Gets a template string for an element that matches the selector.
* @return {?}

@@ -161,4 +161,4 @@ */

/**
* Reads a list of CssSelectors and allows to calculate which ones
* are contained in a given CssSelector.
* Reads a list of CssSelectors and allows to calculate which ones
* are contained in a given CssSelector.
*/

@@ -200,3 +200,3 @@ export var SelectorMatcher = (function () {

/**
* Add an object that can be found later on by calling `match`.
* Add an object that can be found later on by calling `match`.
* @param {?} cssSelector A css selector

@@ -288,4 +288,4 @@ * @param {?} callbackCtxt An opaque object that will be given to the callback of the `match` function

/**
* Find the objects that have been added via `addSelectable`
* whose css selector is contained in the given css selector.
* Find the objects that have been added via `addSelectable`
* whose css selector is contained in the given css selector.
* @param {?} cssSelector A css selector

@@ -338,2 +338,3 @@ * @param {?} matchedCallback This callback will be called with the object handed into `addSelectable`

/**
* \@internal
* @param {?} map

@@ -366,2 +367,3 @@ * @param {?} name

/**
* \@internal
* @param {?} map

@@ -420,3 +422,2 @@ * @param {?} name

}
// Store context to pass back selector and context when a selector is matched
export var SelectorContext = (function () {

@@ -423,0 +424,0 @@ /**

@@ -1,132 +0,1 @@

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* This file is a port of shadowCSS from webcomponents.js to TypeScript.
*
* Please make sure to keep to edits in sync with the source file.
*
* Source:
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
*
* The original file level comment is reproduced below
*/
/*
This is a limited shim for ShadowDOM css styling.
https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#styles
The intention here is to support only the styling features which can be
relatively simply implemented. The goal is to allow users to avoid the
most obvious pitfalls and do so without compromising performance significantly.
For ShadowDOM styling that's not covered here, a set of best practices
can be provided that should allow users to accomplish more complex styling.
The following is a list of specific ShadowDOM styling features and a brief
discussion of the approach used to shim.
Shimmed features:
* :host, :host-context: ShadowDOM allows styling of the shadowRoot's host
element using the :host rule. To shim this feature, the :host styles are
reformatted and prefixed with a given scope name and promoted to a
document level stylesheet.
For example, given a scope name of .foo, a rule like this:
:host {
background: red;
}
}
becomes:
.foo {
background: red;
}
* encapsulation: Styles defined within ShadowDOM, apply only to
dom inside the ShadowDOM. Polymer uses one of two techniques to implement
this feature.
By default, rules are prefixed with the host element tag name
as a descendant selector. This ensures styling does not leak out of the 'top'
of the element's ShadowDOM. For example,
div {
font-weight: bold;
}
becomes:
x-foo div {
font-weight: bold;
}
becomes:
Alternatively, if WebComponents.ShadowCSS.strictStyling is set to true then
selectors are scoped by adding an attribute selector suffix to each
simple selector that contains the host element tag name. Each element
in the element's ShadowDOM template is also given the scope attribute.
Thus, these rules match only elements that have the scope attribute.
For example, given a scope name of x-foo, a rule like this:
div {
font-weight: bold;
}
becomes:
div[x-foo] {
font-weight: bold;
}
Note that elements that are dynamically added to a scope must have the scope
selector added to them manually.
* upper/lower bound encapsulation: Styles which are defined outside a
shadowRoot should not cross the ShadowDOM boundary and should not apply
inside a shadowRoot.
This styling behavior is not emulated. Some possible ways to do this that
were rejected due to complexity and/or performance concerns include: (1) reset
every possible property for every possible selector for a given scope name;
(2) re-implement css in javascript.
As an alternative, users should make sure to use selectors
specific to the scope in which they are working.
* ::distributed: This behavior is not emulated. It's often not necessary
to style the contents of a specific insertion point and instead, descendants
of the host element can be styled selectively. Users can also create an
extra node around an insertion point and style that node's contents
via descendent selectors. For example, with a shadowRoot like this:
<style>
::content(div) {
background: red;
}
</style>
<content></content>
could become:
<style>
/ *@polyfill .content-container div * /
::content(div) {
background: red;
}
</style>
<div class="content-container">
<content></content>
</div>
Note the use of @polyfill in the comment above a ShadowDOM specific style
declaration. This is a directive to the styling shim to use the selector
in comments in lieu of the next selector when running under polyfill.
*/
export var ShadowCss = (function () {

@@ -133,0 +2,0 @@ function ShadowCss() {

@@ -36,4 +36,4 @@ /**

/**
* Rewrites stylesheets by resolving and removing the @import urls that
* are either relative or don't have a `package:` scheme
* Rewrites stylesheets by resolving and removing the \@import urls that
* are either relative or don't have a `package:` scheme
* @param {?} resolver

@@ -40,0 +40,0 @@ * @param {?} baseUrl

@@ -33,3 +33,3 @@ /**

/**
* Represents a parsed property.
* Represents a parsed property.
*/

@@ -78,3 +78,3 @@ export var BoundProperty = (function () {

/**
* Parses bindings in templates and in the directive host area.
* Parses bindings in templates and in the directive host area.
*/

@@ -81,0 +81,0 @@ export var BindingParser = (function () {

@@ -9,3 +9,3 @@ /**

/**
* A segment of text within the template.
* A segment of text within the template.
*/

@@ -40,3 +40,3 @@ export var TextAst = (function () {

/**
* A bound expression within the text of a template.
* A bound expression within the text of a template.
*/

@@ -73,3 +73,3 @@ export var BoundTextAst = (function () {

/**
* A plain attribute on an element.
* A plain attribute on an element.
*/

@@ -104,4 +104,4 @@ export var AttrAst = (function () {

/**
* A binding for an element property (e.g. `[property]="expression"`) or an animation trigger (e.g.
* `[@trigger]="stateExp"`)
* A binding for an element property (e.g. `[property]="expression"`) or an animation trigger (e.g.
* `[\@trigger]="stateExp"`)
*/

@@ -162,4 +162,4 @@ export var BoundElementPropertyAst = (function () {

/**
* A binding for an element event (e.g. `(event)="handler()"`) or an animation trigger event (e.g.
* `(@trigger.phase)="callback($event)"`).
* A binding for an element event (e.g. `(event)="handler()"`) or an animation trigger event (e.g.
* `(\@trigger.phase)="callback($event)"`).
*/

@@ -237,3 +237,3 @@ export var BoundEventAst = (function () {

/**
* A reference declaration on an element (e.g. `let someName="expression"`).
* A reference declaration on an element (e.g. `let someName="expression"`).
*/

@@ -270,3 +270,3 @@ export var ReferenceAst = (function () {

/**
* A variable declaration on a <template> (e.g. `var-someName="someLocalName"`).
* A variable declaration on a <template> (e.g. `var-someName="someLocalName"`).
*/

@@ -303,3 +303,3 @@ export var VariableAst = (function () {

/**
* An element declaration in a template.
* An element declaration in a template.
*/

@@ -372,3 +372,3 @@ export var ElementAst = (function () {

/**
* A `<template>` element included in an Angular template.
* A `<template>` element included in an Angular template.
*/

@@ -433,3 +433,3 @@ export var EmbeddedTemplateAst = (function () {

/**
* A directive property with a bound value (e.g. `*ngIf="condition").
* A directive property with a bound value (e.g. `*ngIf="condition").
*/

@@ -470,3 +470,3 @@ export var BoundDirectivePropertyAst = (function () {

/**
* A directive declared on an element.
* A directive declared on an element.
*/

@@ -511,3 +511,3 @@ export var DirectiveAst = (function () {

/**
* A provider declared on an element
* A provider declared on an element
*/

@@ -572,3 +572,3 @@ export var ProviderAst = (function () {

/**
* Position where content is to be projected (instance of `<ng-content>` in a template).
* Position where content is to be projected (instance of `<ng-content>` in a template).
*/

@@ -616,3 +616,3 @@ export var NgContentAst = (function () {

/**
* Visit every node in a list of {@link TemplateAst}s with the given {@link TemplateAstVisitor}.
* Visit every node in a list of {\@link TemplateAst}s with the given {\@link TemplateAstVisitor}.
* @param {?} visitor

@@ -619,0 +619,0 @@ * @param {?} asts

@@ -223,2 +223,3 @@ /**

/**
* \@internal
* @param {?} result

@@ -731,7 +732,7 @@ * @param {?} errors

/**
* Make sure that non-angular tags conform to the schemas.
* *
* Note: An element is considered an angular tag when at least one directive selector matches the
* tag name.
* *
* Make sure that non-angular tags conform to the schemas.
*
* Note: An element is considered an angular tag when at least one directive selector matches the
* tag name.
*
* @param {?} matchElement Whether any directive has matched on the tag name

@@ -738,0 +739,0 @@ * @param {?} element the html element

@@ -21,3 +21,3 @@ /**

/**
* Create a {@link UrlResolver} with no package prefix.
* Create a {\@link UrlResolver} with no package prefix.
* @return {?}

@@ -42,15 +42,16 @@ */

/**
* Used by the {@link Compiler} when resolving HTML and CSS template URLs.
* *
* This class can be overridden by the application developer to create custom behavior.
* *
* See {@link Compiler}
* *
* ## Example
* *
* {@example compiler/ts/url_resolver/url_resolver.ts region='url_resolver'}
* *
* ensure that the entire template comes from a trusted source.
* Attacker-controlled data introduced by a template could expose your
* application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).
* Used by the {\@link Compiler} when resolving HTML and CSS template URLs.
*
* This class can be overridden by the application developer to create custom behavior.
*
* See {\@link Compiler}
*
* ## Example
*
* {\@example compiler/ts/url_resolver/url_resolver.ts region='url_resolver'}
*
* \@security When compiling templates at runtime, you must
* ensure that the entire template comes from a trusted source.
* Attacker-controlled data introduced by a template could expose your
* application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).
*/

@@ -66,8 +67,8 @@ export var UrlResolver = (function () {

/**
* Resolves the `url` given the `baseUrl`:
* - when the `url` is null, the `baseUrl` is returned,
* - if `url` is relative ('path/to/here', './path/to/here'), the resolved url is a combination of
* `baseUrl` and `url`,
* - if `url` is absolute (it has a scheme: 'http://', 'https://' or start with '/'), the `url` is
* returned as is (ignoring the `baseUrl`)
* Resolves the `url` given the `baseUrl`:
* - when the `url` is null, the `baseUrl` is returned,
* - if `url` is relative ('path/to/here', './path/to/here'), the resolved url is a combination of
* `baseUrl` and `url`,
* - if `url` is absolute (it has a scheme: 'http://', 'https://' or start with '/'), the `url` is
* returned as is (ignoring the `baseUrl`)
* @param {?} baseUrl

@@ -113,3 +114,3 @@ * @param {?} url

/**
* Extract the scheme of a URL.
* Extract the scheme of a URL.
* @param {?} url

@@ -123,14 +124,14 @@ * @return {?}

/**
* Builds a URI string from already-encoded parts.
* *
* No encoding is performed. Any component may be omitted as either null or
* undefined.
* *
* Builds a URI string from already-encoded parts.
*
* No encoding is performed. Any component may be omitted as either null or
* undefined.
*
* @param {?=} opt_scheme The scheme such as 'http'.
* @param {?=} opt_userInfo The user name before the '@'.
* @param {?=} opt_userInfo The user name before the '\@'.
* @param {?=} opt_domain The domain such as 'www.google.com', already
* URI-encoded.
* URI-encoded.
* @param {?=} opt_port The port number.
* @param {?=} opt_path The path, already URI-encoded. If it is not
* empty, it must begin with a slash.
* empty, it must begin with a slash.
* @param {?=} opt_queryData The URI-encoded query data.

@@ -261,15 +262,15 @@ * @param {?=} opt_fragment The URI-encoded fragment identifier.

/**
* Splits a URI into its component parts.
* *
* Each component can be accessed via the component indices; for example:
* <pre>
* goog.uri.utils.split(someStr)[goog.uri.utils.CompontentIndex.QUERY_DATA];
* </pre>
* *
* Splits a URI into its component parts.
*
* Each component can be accessed via the component indices; for example:
* <pre>
* goog.uri.utils.split(someStr)[goog.uri.utils.CompontentIndex.QUERY_DATA];
* </pre>
*
* @param {?} uri The URI string to examine.
* @return {?} Each component still URI-encoded.
* Each component that is present will contain the encoded value, whereas
* components that are not present will be undefined or empty, depending
* on the browser's regular expression implementation. Never null, since
* arbitrary strings may still look like path names.
* Each component that is present will contain the encoded value, whereas
* components that are not present will be undefined or empty, depending
* on the browser's regular expression implementation. Never null, since
* arbitrary strings may still look like path names.
*/

@@ -280,5 +281,5 @@ function _split(uri) {

/**
* Removes dot segments in given path component, as described in
* RFC 3986, section 5.2.4.
* *
* Removes dot segments in given path component, as described in
* RFC 3986, section 5.2.4.
*
* @param {?} path A non-empty path component.

@@ -323,4 +324,4 @@ * @return {?} Path component with removed dot segments.

/**
* Takes an array of the parts from split and canonicalizes the path part
* and then joins all the parts.
* Takes an array of the parts from split and canonicalizes the path part
* and then joins all the parts.
* @param {?} parts

@@ -336,3 +337,3 @@ * @return {?}

/**
* Resolves a URL.
* Resolves a URL.
* @param {?} base The URL acting as the base URL.

@@ -339,0 +340,0 @@ * @param {?} url

@@ -12,3 +12,3 @@ /**

*/
export var /** @type {?} */ VERSION = new Version('2.4.3');
export var /** @type {?} */ VERSION = new Version('2.4.4');
//# sourceMappingURL=version.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["2.4.3"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["2.4.3"]}}}]
[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["2.4.4"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["2.4.4"]}}}]

@@ -341,6 +341,7 @@ /**

/**
* Walks up the nodes while the direct parent is a container.
* *
* Returns the outer container or the node itself when it is not a direct child of a container.
* *
* Walks up the nodes while the direct parent is a container.
*
* Returns the outer container or the node itself when it is not a direct child of a container.
*
* \@internal
* @param {?} node

@@ -357,6 +358,7 @@ * @return {?}

/**
* Walks up the nodes while they are container and returns the first parent which is not.
* *
* Returns the parent of the outer container or the node itself when it is not a container.
* *
* Walks up the nodes while they are container and returns the first parent which is not.
*
* Returns the parent of the outer container or the node itself when it is not a container.
*
* \@internal
* @param {?} el

@@ -456,3 +458,3 @@ * @return {?}

view.styles,
o.literalMap(view.animations.map(function (entry) { return [entry.name, entry.fnExp]; })),
o.literalMap(view.animations.map(function (entry) { return [entry.name, entry.fnExp]; }), null, true),
]))

@@ -459,0 +461,0 @@ .toDeclStmt(o.importType(createIdentifier(Identifiers.RenderComponentType))));

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc