Socket
Socket
Sign inDemoInstall

@angular/platform-browser

Package Overview
Dependencies
5
Maintainers
1
Versions
809
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-beta.3 to 4.0.0-beta.4

2

bundles/platform-browser-testing.umd.js
/**
* @license Angular v4.0.0-beta.3
* @license Angular v4.0.0-beta.4
* (c) 2010-2016 Google, Inc. https://angular.io/

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

{
"name": "@angular/platform-browser",
"version": "4.0.0-beta.3",
"version": "4.0.0-beta.4",
"description": "Angular - library for using Angular in a web browser",

@@ -11,4 +11,4 @@ "main": "bundles/platform-browser.umd.js",

"peerDependencies": {
"@angular/core": "4.0.0-beta.3",
"@angular/common": "4.0.0-beta.3"
"@angular/core": "4.0.0-beta.4",
"@angular/common": "4.0.0-beta.4"
},

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

@@ -80,4 +80,5 @@ /**

/**
* The ng module for the browser.
* *
* The ng module for the browser.
*
* \@stable
*/

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

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

};
/**
* A `DomAdapter` powered by full browser DOM APIs.
*
* @security Tread carefully! Interacting with the DOM directly is dangerous and
* can introduce XSS risks.
*/
/* tslint:disable:requireParameterType no-console */
export var BrowserDomAdapter = (function (_super) {

@@ -71,0 +64,0 @@ __extends(BrowserDomAdapter, _super);

@@ -16,5 +16,6 @@ /**

/**
* Provides DOM operations in any browser environment.
* *
* can introduce XSS risks.
* Provides DOM operations in any browser environment.
*
* \@security Tread carefully! Interacting with the DOM directly is dangerous and
* can introduce XSS risks.
* @abstract

@@ -21,0 +22,0 @@ */

@@ -18,5 +18,5 @@ /**

/**
* `PlatformLocation` encapsulates all of the direct calls to platform APIs.
* This class should not be used directly by an application developer. Instead, use
* {@link Location}.
* `PlatformLocation` encapsulates all of the direct calls to platform APIs.
* This class should not be used directly by an application developer. Instead, use
* {\@link Location}.
*/

@@ -30,2 +30,3 @@ export var BrowserPlatformLocation = (function (_super) {

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

@@ -32,0 +33,0 @@ */

/**
* @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 {?}

@@ -8,0 +8,0 @@ */

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

/**
* A service that can be used to get and add meta tags.
* *
* A service that can be used to get and add meta tags.
*
* \@experimental
*/

@@ -15,0 +16,0 @@ export var Meta = (function () {

@@ -10,9 +10,10 @@ /**

/**
* A service that can be used to get and set the title of a current HTML document.
* *
* Since an Angular 2 application can't be bootstrapped on the entire HTML document (`<html>` tag)
* it is not possible to bind to the `text` property of the `HTMLTitleElement` elements
* (representing the `<title>` tag). Instead, this service can be used to set and get the current
* title value.
* *
* A service that can be used to get and set the title of a current HTML document.
*
* Since an Angular 2 application can't be bootstrapped on the entire HTML document (`<html>` tag)
* it is not possible to bind to the `text` property of the `HTMLTitleElement` elements
* (representing the `<title>` tag). Instead, this service can be used to set and get the current
* title value.
*
* \@experimental
*/

@@ -23,3 +24,3 @@ export var Title = (function () {

/**
* Get the title of the current HTML document.
* Get the title of the current HTML document.
* @return {?}

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

/**
* Set the title of the current HTML document.
* Set the title of the current HTML document.
* @param {?} newTitle

@@ -32,0 +33,0 @@ * @return {?}

@@ -30,4 +30,4 @@ /**

/**
* Entry point for all Angular debug tools. This object corresponds to the `ng`
* global variable accessible in the dev console.
* Entry point for all Angular debug tools. This object corresponds to the `ng`
* global variable accessible in the dev console.
*/

@@ -48,4 +48,4 @@ export var AngularTools = (function () {

/**
* Entry point for all Angular profiling-related debug tools. This object
* corresponds to the `ng.profiler` in the dev console.
* Entry point for all Angular profiling-related debug tools. This object
* corresponds to the `ng.profiler` in the dev console.
*/

@@ -60,16 +60,16 @@ export var AngularProfiler = (function () {

/**
* Exercises change detection in a loop and then prints the average amount of
* time in milliseconds how long a single round of change detection takes for
* the current state of the UI. It runs a minimum of 5 rounds for a minimum
* of 500 milliseconds.
* *
* Optionally, a user may pass a `config` parameter containing a map of
* options. Supported options are:
* *
* `record` (boolean) - causes the profiler to record a CPU profile while
* it exercises the change detector. Example:
* *
* ```
* ng.profiler.timeChangeDetection({record: true})
* ```
* Exercises change detection in a loop and then prints the average amount of
* time in milliseconds how long a single round of change detection takes for
* the current state of the UI. It runs a minimum of 5 rounds for a minimum
* of 500 milliseconds.
*
* Optionally, a user may pass a `config` parameter containing a map of
* options. Supported options are:
*
* `record` (boolean) - causes the profiler to record a CPU profile while
* it exercises the change detector. Example:
*
* ```
* ng.profiler.timeChangeDetection({record: true})
* ```
* @param {?} config

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

@@ -12,12 +12,13 @@ /**

/**
* Enabled Angular 2 debug tools that are accessible via your browser's
* developer console.
* *
* Usage:
* *
* 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
* 1. Type `ng.` (usually the console will show auto-complete suggestion)
* 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
* then hit Enter.
* *
* Enabled Angular 2 debug tools that are accessible via your browser's
* developer console.
*
* Usage:
*
* 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
* 1. Type `ng.` (usually the console will show auto-complete suggestion)
* 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
* then hit Enter.
*
* \@experimental All debugging apis are currently experimental.
* @param {?} ref

@@ -31,4 +32,5 @@ * @return {?}

/**
* Disables Angular 2 tools.
* *
* Disables Angular 2 tools.
*
* \@experimental All debugging apis are currently experimental.
* @return {?}

@@ -35,0 +37,0 @@ */

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

/**
* @experimental
* \@experimental
*/

@@ -33,2 +33,3 @@ export var NoOpAnimationDriver = (function () {

/**
* \@experimental
* @abstract

@@ -35,0 +36,0 @@ */

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

/**
* Predicates for use with {@link DebugElement}'s query functions.
* *
* Predicates for use with {\@link DebugElement}'s query functions.
*
* \@experimental All debugging apis are currently experimental.
*/

@@ -19,7 +20,7 @@ export var By = (function () {

/**
* Match all elements.
* *
* ## Example
* *
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
* Match all elements.
*
* ## Example
*
* {\@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
* @return {?}

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

/**
* Match elements by the given CSS selector.
* *
* ## Example
* *
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}
* Match elements by the given CSS selector.
*
* ## Example
*
* {\@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}
* @param {?} selector

@@ -46,7 +47,7 @@ * @return {?}

/**
* Match elements that have the given directive present.
* *
* ## Example
* *
* {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
* Match elements that have the given directive present.
*
* ## Example
*
* {\@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
* @param {?} type

@@ -53,0 +54,0 @@ * @return {?}

@@ -20,5 +20,5 @@ /**

/**
* Returns a {@link DebugElement} for the given native DOM element, or
* null if the given native element does not have an Angular view associated
* with it.
* Returns a {\@link DebugElement} for the given native DOM element, or
* null if the given native element does not have an Angular view associated
* with it.
* @param {?} element

@@ -31,3 +31,3 @@ * @return {?}

/**
* Deprecated. Use the one from '@angular/core'.
* Deprecated. Use the one from '\@angular/core'.
* @deprecated

@@ -34,0 +34,0 @@ */

@@ -32,5 +32,6 @@ /**

/**
* Provides DOM operations in an environment-agnostic way.
* *
* can introduce XSS risks.
* Provides DOM operations in an environment-agnostic way.
*
* \@security Tread carefully! Interacting with the DOM directly is dangerous and
* can introduce XSS risks.
* @abstract

@@ -97,4 +98,4 @@ */

/**
* Maps attribute names to their corresponding property names for cases
* where attribute name doesn't match property name.
* Maps attribute names to their corresponding property names for cases
* where attribute name doesn't match property name.
* @return {?}

@@ -193,3 +194,3 @@ */

/**
* Returns content if el is a <template> element, null otherwise.
* Returns content if el is a <template> element, null otherwise.
* @abstract

@@ -810,5 +811,8 @@ * @param {?} el

DomAdapter.prototype.resourceLoaderType;
/** @type {?} */
/**
* \@internal
* @type {?}
*/
DomAdapter.prototype._attrToPropMap;
}
//# sourceMappingURL=dom_adapter.js.map

@@ -8,3 +8,3 @@ /**

*/
import { OpaqueToken } from '@angular/core';
import { InjectionToken } from '@angular/core';
/**

@@ -18,2 +18,2 @@ * A DI Token representing the main rendering context. In a browser this is the DOM Document.

*/
export declare const DOCUMENT: OpaqueToken;
export declare const DOCUMENT: InjectionToken<Document>;

@@ -8,3 +8,3 @@ /**

*/
import { OpaqueToken } from '@angular/core';
import { InjectionToken } from '@angular/core';
/**

@@ -18,3 +18,3 @@ * A DI Token representing the main rendering context. In a browser this is the DOM Document.

*/
export var /** @type {?} */ DOCUMENT = new OpaqueToken('DocumentToken');
export var /** @type {?} */ DOCUMENT = new InjectionToken('DocumentToken');
//# sourceMappingURL=dom_tokens.js.map

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

[{"__symbolic":"module","version":3,"metadata":{"DOCUMENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["DocumentToken"]}}},{"__symbolic":"module","version":1,"metadata":{"DOCUMENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["DocumentToken"]}}}]
[{"__symbolic":"module","version":3,"metadata":{"DOCUMENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["DocumentToken"]}}},{"__symbolic":"module","version":1,"metadata":{"DOCUMENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["DocumentToken"]}}}]

@@ -8,7 +8,7 @@ /**

*/
import { NgZone, OpaqueToken } from '@angular/core';
import { InjectionToken, NgZone } from '@angular/core';
/**
* @stable
*/
export declare const EVENT_MANAGER_PLUGINS: OpaqueToken;
export declare const EVENT_MANAGER_PLUGINS: InjectionToken<EventManagerPlugin[]>;
/**

@@ -15,0 +15,0 @@ * @stable

@@ -8,3 +8,3 @@ /**

*/
import { Inject, Injectable, NgZone, OpaqueToken } from '@angular/core';
import { Inject, Injectable, InjectionToken, NgZone } from '@angular/core';
import { getDOM } from '../dom_adapter';

@@ -14,5 +14,5 @@ /**

*/
export var /** @type {?} */ EVENT_MANAGER_PLUGINS = new OpaqueToken('EventManagerPlugins');
export var /** @type {?} */ EVENT_MANAGER_PLUGINS = new InjectionToken('EventManagerPlugins');
/**
* @stable
* \@stable
*/

@@ -56,2 +56,3 @@ export var EventManager = (function () {

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

@@ -58,0 +59,0 @@ * @return {?}

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

[{"__symbolic":"module","version":3,"metadata":{"EVENT_MANAGER_PLUGINS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["EventManagerPlugins"]},"EventManager":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"EVENT_MANAGER_PLUGINS"}]}],null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"EventManagerPlugin"}]},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"addEventListener":[{"__symbolic":"method"}],"addGlobalEventListener":[{"__symbolic":"method"}],"getZone":[{"__symbolic":"method"}],"_findPluginFor":[{"__symbolic":"method"}]}},"EventManagerPlugin":{"__symbolic":"class","members":{"supports":[{"__symbolic":"method"}],"addEventListener":[{"__symbolic":"method"}],"addGlobalEventListener":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"EVENT_MANAGER_PLUGINS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["EventManagerPlugins"]},"EventManager":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"EVENT_MANAGER_PLUGINS"}]}],null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"EventManagerPlugin"}]},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"addEventListener":[{"__symbolic":"method"}],"addGlobalEventListener":[{"__symbolic":"method"}],"getZone":[{"__symbolic":"method"}],"_findPluginFor":[{"__symbolic":"method"}]}},"EventManagerPlugin":{"__symbolic":"class","members":{"supports":[{"__symbolic":"method"}],"addEventListener":[{"__symbolic":"method"}],"addGlobalEventListener":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"EVENT_MANAGER_PLUGINS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["EventManagerPlugins"]},"EventManager":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"EVENT_MANAGER_PLUGINS"}]}],null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"EventManagerPlugin"}]},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"addEventListener":[{"__symbolic":"method"}],"addGlobalEventListener":[{"__symbolic":"method"}],"getZone":[{"__symbolic":"method"}],"_findPluginFor":[{"__symbolic":"method"}]}},"EventManagerPlugin":{"__symbolic":"class","members":{"supports":[{"__symbolic":"method"}],"addEventListener":[{"__symbolic":"method"}],"addGlobalEventListener":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"EVENT_MANAGER_PLUGINS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["EventManagerPlugins"]},"EventManager":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"EVENT_MANAGER_PLUGINS"}]}],null],"parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"EventManagerPlugin"}]},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"addEventListener":[{"__symbolic":"method"}],"addGlobalEventListener":[{"__symbolic":"method"}],"getZone":[{"__symbolic":"method"}],"_findPluginFor":[{"__symbolic":"method"}]}},"EventManagerPlugin":{"__symbolic":"class","members":{"supports":[{"__symbolic":"method"}],"addEventListener":[{"__symbolic":"method"}],"addGlobalEventListener":[{"__symbolic":"method"}]}}}}]

@@ -8,3 +8,3 @@ /**

*/
import { OpaqueToken } from '@angular/core';
import { InjectionToken } from '@angular/core';
import { EventManagerPlugin } from './event_manager';

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

*/
export declare const HAMMER_GESTURE_CONFIG: OpaqueToken;
export declare const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
export interface HammerInstance {

@@ -20,0 +20,0 @@ on(eventName: string, callback: Function): void;

@@ -13,3 +13,3 @@ /**

};
import { Inject, Injectable, OpaqueToken } from '@angular/core';
import { Inject, Injectable, InjectionToken } from '@angular/core';
import { EventManagerPlugin } from './event_manager';

@@ -59,5 +59,5 @@ var /** @type {?} */ EVENT_NAMES = {

*/
export var /** @type {?} */ HAMMER_GESTURE_CONFIG = new OpaqueToken('HammerGestureConfig');
export var /** @type {?} */ HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');
/**
* @experimental
* \@experimental
*/

@@ -64,0 +64,0 @@ export var HammerGestureConfig = (function () {

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

[{"__symbolic":"module","version":3,"metadata":{"HAMMER_GESTURE_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["HammerGestureConfig"]},"HammerGestureConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"buildHammer":[{"__symbolic":"method"}]}},"HammerGesturesPlugin":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./event_manager","name":"EventManagerPlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"HAMMER_GESTURE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"HammerGestureConfig"}]}],"supports":[{"__symbolic":"method"}],"addEventListener":[{"__symbolic":"method"}],"isCustomEvent":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"HAMMER_GESTURE_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["HammerGestureConfig"]},"HammerGestureConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"buildHammer":[{"__symbolic":"method"}]}},"HammerGesturesPlugin":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./event_manager","name":"EventManagerPlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"HAMMER_GESTURE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"HammerGestureConfig"}]}],"supports":[{"__symbolic":"method"}],"addEventListener":[{"__symbolic":"method"}],"isCustomEvent":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"HAMMER_GESTURE_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["HammerGestureConfig"]},"HammerGestureConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"buildHammer":[{"__symbolic":"method"}]}},"HammerGesturesPlugin":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./event_manager","name":"EventManagerPlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"HAMMER_GESTURE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"HammerGestureConfig"}]}],"supports":[{"__symbolic":"method"}],"addEventListener":[{"__symbolic":"method"}],"isCustomEvent":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"HAMMER_GESTURE_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["HammerGestureConfig"]},"HammerGestureConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"buildHammer":[{"__symbolic":"method"}]}},"HammerGesturesPlugin":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./event_manager","name":"EventManagerPlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"HAMMER_GESTURE_CONFIG"}]}]],"parameters":[{"__symbolic":"reference","name":"HammerGestureConfig"}]}],"supports":[{"__symbolic":"method"}],"addEventListener":[{"__symbolic":"method"}],"isCustomEvent":[{"__symbolic":"method"}]}}}}]

@@ -24,3 +24,3 @@ /**

/**
* @experimental
* \@experimental
*/

@@ -118,2 +118,3 @@ export var KeyEventsPlugin = (function (_super) {

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

@@ -120,0 +121,0 @@ * @return {?}

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

SharedStylesHost.ctorParameters;
/** @type {?} */
/**
* \@internal
* @type {?}
*/
SharedStylesHost.prototype._styles;
/** @type {?} */
/**
* \@internal
* @type {?}
*/
SharedStylesHost.prototype._stylesSet;

@@ -79,2 +85,3 @@ }

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

@@ -81,0 +88,0 @@ * @param {?} host

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

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

@@ -103,3 +104,5 @@ * @param {?} keyframes

WebAnimationsPlayer.prototype._triggerWebAnimation = function (element, keyframes, options) {
return (element.animate(keyframes, options));
// jscompiler doesn't seem to know animate is a native property because it's not fully
// supported yet across common browsers (we polyfill it for Edge/Safari) [CL #143630929]
return (element['animate'](keyframes, options));
};

@@ -106,0 +109,0 @@ Object.defineProperty(WebAnimationsPlayer.prototype, "domPlayer", {

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

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

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

@@ -19,29 +19,31 @@ /**

/**
* DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing
* values to be safe to use in the different DOM contexts.
* *
* For example, when binding a URL in an `<a [href]="someValue">` hyperlink, `someValue` will be
* sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on
* the website.
* *
* In specific situations, it might be necessary to disable sanitization, for example if the
* application genuinely needs to produce a `javascript:` style link with a dynamic value in it.
* Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`
* methods, and then binding to that value from the template.
* *
* These situations should be very rare, and extraordinary care must be taken to avoid creating a
* Cross Site Scripting (XSS) security bug!
* *
* When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as
* close as possible to the source of the value, to make it easy to verify no security bug is
* created by its use.
* *
* It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that
* does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous
* code. The sanitizer leaves safe values intact.
* *
* sanitization for the value passed in. Carefully check and audit all values and code paths going
* into this call. Make sure any user data is appropriately escaped for this security context.
* For more detail, see the [Security Guide](http://g.co/ng/security).
* *
* DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing
* values to be safe to use in the different DOM contexts.
*
* For example, when binding a URL in an `<a [href]="someValue">` hyperlink, `someValue` will be
* sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on
* the website.
*
* In specific situations, it might be necessary to disable sanitization, for example if the
* application genuinely needs to produce a `javascript:` style link with a dynamic value in it.
* Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`
* methods, and then binding to that value from the template.
*
* These situations should be very rare, and extraordinary care must be taken to avoid creating a
* Cross Site Scripting (XSS) security bug!
*
* When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as
* close as possible to the source of the value, to make it easy to verify no security bug is
* created by its use.
*
* It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that
* does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous
* code. The sanitizer leaves safe values intact.
*
* \@security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in
* sanitization for the value passed in. Carefully check and audit all values and code paths going
* into this call. Make sure any user data is appropriately escaped for this security context.
* For more detail, see the [Security Guide](http://g.co/ng/security).
*
* \@stable
* @abstract

@@ -53,8 +55,8 @@ */

/**
* Sanitizes a value for use in the given SecurityContext.
* *
* If value is trusted for the context, this method will unwrap the contained safe value and use
* it directly. Otherwise, value will be sanitized to be safe in the given context, for example
* by replacing URLs that have an unsafe protocol part (such as `javascript:`). The implementation
* is responsible to make sure that the value can definitely be safely used in the given context.
* Sanitizes a value for use in the given SecurityContext.
*
* If value is trusted for the context, this method will unwrap the contained safe value and use
* it directly. Otherwise, value will be sanitized to be safe in the given context, for example
* by replacing URLs that have an unsafe protocol part (such as `javascript:`). The implementation
* is responsible to make sure that the value can definitely be safely used in the given context.
* @abstract

@@ -67,8 +69,8 @@ * @param {?} context

/**
* Bypass security and trust the given value to be safe HTML. Only use this when the bound HTML
* is unsafe (e.g. contains `<script>` tags) and the code should be executed. The sanitizer will
* leave safe HTML intact, so in most situations this method should not be used.
* *
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* Bypass security and trust the given value to be safe HTML. Only use this when the bound HTML
* is unsafe (e.g. contains `<script>` tags) and the code should be executed. The sanitizer will
* leave safe HTML intact, so in most situations this method should not be used.
*
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* @abstract

@@ -80,6 +82,6 @@ * @param {?} value

/**
* Bypass security and trust the given value to be safe style value (CSS).
* *
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* Bypass security and trust the given value to be safe style value (CSS).
*
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* @abstract

@@ -91,6 +93,6 @@ * @param {?} value

/**
* Bypass security and trust the given value to be safe JavaScript.
* *
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* Bypass security and trust the given value to be safe JavaScript.
*
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* @abstract

@@ -102,7 +104,7 @@ * @param {?} value

/**
* Bypass security and trust the given value to be a safe style URL, i.e. a value that can be used
* in hyperlinks or `<img src>`.
* *
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* Bypass security and trust the given value to be a safe style URL, i.e. a value that can be used
* in hyperlinks or `<img src>`.
*
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* @abstract

@@ -114,7 +116,7 @@ * @param {?} value

/**
* Bypass security and trust the given value to be a safe resource URL, i.e. a location that may
* be used to load executable code from, like `<script src>`, or `<iframe src>`.
* *
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* Bypass security and trust the given value to be a safe resource URL, i.e. a location that may
* be used to load executable code from, like `<script src>`, or `<iframe src>`.
*
* **WARNING:** calling this method with untrusted user data exposes your application to XSS
* security risks!
* @abstract

@@ -121,0 +123,0 @@ * @param {?} value

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

/**
* Returns an HTML element that is guaranteed to not execute code when creating elements in it.
* Returns an HTML element that is guaranteed to not execute code when creating elements in it.
* @return {?}

@@ -108,4 +108,4 @@ */

/**
* SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe
* attributes.
* SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe
* attributes.
*/

@@ -217,5 +217,5 @@ var SanitizingHtmlSerializer = (function () {

/**
* Escapes all potentially dangerous characters, so that the
* resulting string can be safely inserted into attribute or
* element text.
* Escapes all potentially dangerous characters, so that the
* resulting string can be safely inserted into attribute or
* element text.
* @param {?} value

@@ -236,7 +236,7 @@ * @return {?}

/**
* When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'
* attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g. 'ns1:xlink:foo').
* *
* This is undesirable since we don't want to allow any of these custom attributes. This method
* strips them all.
* When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'
* attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g. 'ns1:xlink:foo').
*
* This is undesirable since we don't want to allow any of these custom attributes. This method
* strips them all.
* @param {?} el

@@ -258,4 +258,4 @@ * @return {?}

/**
* Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to
* the DOM in a browser environment.
* Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to
* the DOM in a browser environment.
* @param {?} unsafeHtmlInput

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

@@ -28,4 +28,8 @@ /**

var /** @type {?} */ COLOR_FNS = '(?:rgb|hsl)a?';
var /** @type {?} */ FN_ARGS = '\\([-0-9.%, a-zA-Z]+\\)';
var /** @type {?} */ SAFE_STYLE_VALUE = new RegExp("^(" + VALUES + "|(?:" + TRANSFORMATION_FNS + "|" + COLOR_FNS + ")" + FN_ARGS + ")$", 'g');
var /** @type {?} */ GRADIENTS = '(?:repeating-)?(?:linear|radial)-gradient';
var /** @type {?} */ CSS3_FNS = '(?:calc|attr)';
var /** @type {?} */ FN_ARGS = '\\([-0-9.%, #a-zA-Z]+\\)';
var /** @type {?} */ SAFE_STYLE_VALUE = new RegExp(("^(" + VALUES + "|") +
("(?:" + TRANSFORMATION_FNS + "|" + COLOR_FNS + "|" + GRADIENTS + "|" + CSS3_FNS + ")") +
(FN_ARGS + ")$"), 'g');
/**

@@ -51,8 +55,8 @@ * Matches a `url(...)` value with an arbitrary argument as long as it does

/**
* Checks that quotes (" and ') are properly balanced inside a string. Assumes
* that neither escape (\) nor any other character that could result in
* breaking out of a string parsing context are allowed;
* see http://www.w3.org/TR/css3-syntax/#string-token-diagram.
* *
* This code was taken from the Closure sanitization library.
* Checks that quotes (" and ') are properly balanced inside a string. Assumes
* that neither escape (\) nor any other character that could result in
* breaking out of a string parsing context are allowed;
* see http://www.w3.org/TR/css3-syntax/#string-token-diagram.
*
* This code was taken from the Closure sanitization library.
* @param {?} value

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

/**
* Sanitizes the given untrusted CSS style property value (i.e. not an entire object, just a single
* value) and returns a value that is safe to use in a browser environment.
* Sanitizes the given untrusted CSS style property value (i.e. not an entire object, just a single
* value) and returns a value that is safe to use in a browser environment.
* @param {?} value

@@ -80,0 +84,0 @@ * @return {?}

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

*/
export var /** @type {?} */ VERSION = new Version('4.0.0-beta.3');
export var /** @type {?} */ VERSION = new Version('4.0.0-beta.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":["4.0.0-beta.3"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.3"]}}}]
[{"__symbolic":"module","version":3,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.4"]}}},{"__symbolic":"module","version":1,"metadata":{"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-beta.4"]}}}]

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc