Socket
Socket
Sign inDemoInstall

@angular/platform-browser-dynamic

Package Overview
Dependencies
Maintainers
1
Versions
836
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/platform-browser-dynamic - npm Package Compare versions

Comparing version 2.0.0-rc.1 to 2.0.0-rc.2

bundles/platform-browser-dynamic.umd.js

2

core_private.d.ts
import { __core_private_types__ as t } from '@angular/core';
export declare type ReflectionCapabilities = t.ReflectionCapabilities;
export declare var ReflectionCapabilities: typeof t.ReflectionCapabilities;
export declare var reflector: typeof t.reflector;
"use strict";
var core_1 = require('@angular/core');
exports.ReflectionCapabilities = core_1.__core_private__.ReflectionCapabilities;
exports.reflector = core_1.__core_private__.reflector;
//# sourceMappingURL=core_private.js.map

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

{"__symbolic":"module","metadata":{"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"___core_private__","module":"@angular/core"},"member":"ReflectionCapabilities"}}}
{"__symbolic":"module","version":1,"metadata":{"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"ReflectionCapabilities"},"reflector":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"reflector"}}}
import { __core_private_types__ as t } from '@angular/core';
export declare type ReflectionCapabilities = t.ReflectionCapabilities;
export declare var ReflectionCapabilities: typeof t.ReflectionCapabilities;
export declare var reflector: typeof t.reflector;
import { __core_private__ as r } from '@angular/core';
export var ReflectionCapabilities = r.ReflectionCapabilities;
export var reflector = r.reflector;
//# sourceMappingURL=core_private.js.map

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

{"__symbolic":"module","metadata":{"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"___core_private__","module":"@angular/core"},"member":"ReflectionCapabilities"}}}
{"__symbolic":"module","version":1,"metadata":{"ReflectionCapabilities":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"ReflectionCapabilities"},"reflector":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"___core_private__"},"member":"reflector"}}}

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

export * from './platform_browser_dynamic';
import { ApplicationRef, ComponentRef, Type } from '@angular/core';
export declare const BROWSER_APP_COMPILER_PROVIDERS: Array<any>;
export declare const CACHED_TEMPLATE_PROVIDER: Array<any>;
/**
* Bootstrapping for Angular applications.
*
* You instantiate an Angular application by explicitly specifying a component to use
* as the root component for your application via the `bootstrap()` method.
*
* ## Simple Example
*
* Assuming this `index.html`:
*
* ```html
* <html>
* <!-- load Angular script tags here. -->
* <body>
* <my-app>loading...</my-app>
* </body>
* </html>
* ```
*
* An application is bootstrapped inside an existing browser DOM, typically `index.html`.
* Unlike Angular 1, Angular 2 does not compile/process providers in `index.html`. This is
* mainly for security reasons, as well as architectural changes in Angular 2. This means
* that `index.html` can safely be processed using server-side technologies such as
* providers. Bindings can thus use double-curly `{{ syntax }}` without collision from
* Angular 2 component double-curly `{{ syntax }}`.
*
* We can use this script code:
*
* {@example core/ts/bootstrap/bootstrap.ts region='bootstrap'}
*
* When the app developer invokes `bootstrap()` with the root component `MyApp` as its
* argument, Angular performs the following tasks:
*
* 1. It uses the component's `selector` property to locate the DOM element which needs
* to be upgraded into the angular component.
* 2. It creates a new child injector (from the platform injector). Optionally, you can
* also override the injector configuration for an app by invoking `bootstrap` with the
* `componentInjectableBindings` argument.
* 3. It creates a new `Zone` and connects it to the angular application's change detection
* domain instance.
* 4. It creates an emulated or shadow DOM on the selected component's host element and loads the
* template into it.
* 5. It instantiates the specified component.
* 6. Finally, Angular performs change detection to apply the initial data providers for the
* application.
*
*
* ## Bootstrapping Multiple Applications
*
* When working within a browser window, there are many singleton resources: cookies, title,
* location, and others. Angular services that represent these resources must likewise be
* shared across all Angular applications that occupy the same browser window. For this
* reason, Angular creates exactly one global platform object which stores all shared
* services, and each angular application injector has the platform injector as its parent.
*
* Each application has its own private injector as well. When there are multiple
* applications on a page, Angular treats each application injector's services as private
* to that application.
*
* ## API
*
* - `appComponentType`: The root component which should act as the application. This is
* a reference to a `Type` which is annotated with `@Component(...)`.
* - `customProviders`: An additional set of providers that can be added to the
* app injector to override default injection behavior.
*
* Returns a `Promise` of {@link ComponentRef}.
*/
export declare function bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>;
export declare function bootstrapWorkerUi(workerScriptUri: string, customProviders?: Array<any>): Promise<ApplicationRef>;
export declare function bootstrapWorkerApp(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>;

@@ -1,2 +0,130 @@

export * from './platform_browser_dynamic';
import { COMMON_DIRECTIVES, COMMON_PIPES } from '@angular/common';
import { COMPILER_PROVIDERS, CompilerConfig, XHR } from '@angular/compiler';
import { ApplicationRef, PLATFORM_DIRECTIVES, PLATFORM_PIPES, ReflectiveInjector, coreLoadAndBootstrap } from '@angular/core';
import { BROWSER_APP_PROVIDERS, WORKER_APP_APPLICATION_PROVIDERS, WORKER_SCRIPT, WORKER_UI_APPLICATION_PROVIDERS, browserPlatform, workerAppPlatform, workerUiPlatform } from '@angular/platform-browser';
import { ReflectionCapabilities, reflector } from './core_private';
import { PromiseWrapper } from './src/facade/async';
import { isPresent } from './src/facade/lang';
import { CachedXHR } from './src/xhr/xhr_cache';
import { XHRImpl } from './src/xhr/xhr_impl';
export const BROWSER_APP_COMPILER_PROVIDERS = [
COMPILER_PROVIDERS, {
provide: CompilerConfig,
useFactory: (platformDirectives, platformPipes) => {
return new CompilerConfig({ platformDirectives, platformPipes });
},
deps: [PLATFORM_DIRECTIVES, PLATFORM_PIPES]
},
{ provide: XHR, useClass: XHRImpl },
{ provide: PLATFORM_DIRECTIVES, useValue: COMMON_DIRECTIVES, multi: true },
{ provide: PLATFORM_PIPES, useValue: COMMON_PIPES, multi: true }
];
export const CACHED_TEMPLATE_PROVIDER = [{ provide: XHR, useClass: CachedXHR }];
/**
* Bootstrapping for Angular applications.
*
* You instantiate an Angular application by explicitly specifying a component to use
* as the root component for your application via the `bootstrap()` method.
*
* ## Simple Example
*
* Assuming this `index.html`:
*
* ```html
* <html>
* <!-- load Angular script tags here. -->
* <body>
* <my-app>loading...</my-app>
* </body>
* </html>
* ```
*
* An application is bootstrapped inside an existing browser DOM, typically `index.html`.
* Unlike Angular 1, Angular 2 does not compile/process providers in `index.html`. This is
* mainly for security reasons, as well as architectural changes in Angular 2. This means
* that `index.html` can safely be processed using server-side technologies such as
* providers. Bindings can thus use double-curly `{{ syntax }}` without collision from
* Angular 2 component double-curly `{{ syntax }}`.
*
* We can use this script code:
*
* {@example core/ts/bootstrap/bootstrap.ts region='bootstrap'}
*
* When the app developer invokes `bootstrap()` with the root component `MyApp` as its
* argument, Angular performs the following tasks:
*
* 1. It uses the component's `selector` property to locate the DOM element which needs
* to be upgraded into the angular component.
* 2. It creates a new child injector (from the platform injector). Optionally, you can
* also override the injector configuration for an app by invoking `bootstrap` with the
* `componentInjectableBindings` argument.
* 3. It creates a new `Zone` and connects it to the angular application's change detection
* domain instance.
* 4. It creates an emulated or shadow DOM on the selected component's host element and loads the
* template into it.
* 5. It instantiates the specified component.
* 6. Finally, Angular performs change detection to apply the initial data providers for the
* application.
*
*
* ## Bootstrapping Multiple Applications
*
* When working within a browser window, there are many singleton resources: cookies, title,
* location, and others. Angular services that represent these resources must likewise be
* shared across all Angular applications that occupy the same browser window. For this
* reason, Angular creates exactly one global platform object which stores all shared
* services, and each angular application injector has the platform injector as its parent.
*
* Each application has its own private injector as well. When there are multiple
* applications on a page, Angular treats each application injector's services as private
* to that application.
*
* ## API
*
* - `appComponentType`: The root component which should act as the application. This is
* a reference to a `Type` which is annotated with `@Component(...)`.
* - `customProviders`: An additional set of providers that can be added to the
* app injector to override default injection behavior.
*
* Returns a `Promise` of {@link ComponentRef}.
*/
export function bootstrap(appComponentType, customProviders) {
reflector.reflectionCapabilities = new ReflectionCapabilities();
let providers = [
BROWSER_APP_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS,
isPresent(customProviders) ? customProviders : []
];
var appInjector = ReflectiveInjector.resolveAndCreate(providers, browserPlatform().injector);
return coreLoadAndBootstrap(appComponentType, appInjector);
}
export function bootstrapWorkerUi(workerScriptUri, customProviders) {
var app = ReflectiveInjector.resolveAndCreate([
WORKER_UI_APPLICATION_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS,
{ provide: WORKER_SCRIPT, useValue: workerScriptUri },
isPresent(customProviders) ? customProviders : []
], workerUiPlatform().injector);
// Return a promise so that we keep the same semantics as Dart,
// and we might want to wait for the app side to come up
// in the future...
return PromiseWrapper.resolve(app.get(ApplicationRef));
}
const WORKER_APP_COMPILER_PROVIDERS = [
COMPILER_PROVIDERS, {
provide: CompilerConfig,
useFactory: (platformDirectives, platformPipes) => {
return new CompilerConfig({ platformDirectives, platformPipes });
},
deps: [PLATFORM_DIRECTIVES, PLATFORM_PIPES]
},
{ provide: XHR, useClass: XHRImpl },
{ provide: PLATFORM_DIRECTIVES, useValue: COMMON_DIRECTIVES, multi: true },
{ provide: PLATFORM_PIPES, useValue: COMMON_PIPES, multi: true }
];
export function bootstrapWorkerApp(appComponentType, customProviders) {
var appInjector = ReflectiveInjector.resolveAndCreate([
WORKER_APP_APPLICATION_PROVIDERS, WORKER_APP_COMPILER_PROVIDERS,
isPresent(customProviders) ? customProviders : []
], workerAppPlatform().injector);
return coreLoadAndBootstrap(appComponentType, appInjector);
}
//# sourceMappingURL=index.js.map

@@ -1,3 +0,2 @@

import { __platform_browser_private__ as _ } from '@angular/platform-browser';
export declare type DomAdapter = _.DomAdapter;
export declare function getDOM(): _.DomAdapter;
import { __platform_browser_private__ as t } from '@angular/platform-browser';
export declare var getDOM: typeof t.getDOM;

@@ -1,4 +0,3 @@

import { __platform_browser_private__ as _ } from '@angular/platform-browser';
export function getDOM() { return _.getDOM(); }
;
import { __platform_browser_private__ as r } from '@angular/platform-browser';
export var getDOM = r.getDOM;
//# sourceMappingURL=platform_browser_private.js.map
/**
* A base class for the WrappedException that can be used to identify
* a WrappedException from ExceptionHandler without adding circular
* dependency.
*/
* A base class for the WrappedException that can be used to identify
* a WrappedException from ExceptionHandler without adding circular
* dependency.
*/
export class BaseWrappedException extends Error {

@@ -7,0 +7,0 @@ constructor(message) {

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

import { isJsObject, global, isPresent, isBlank, isArray, getSymbolIterator } from './lang';
import { getSymbolIterator, global, isArray, isBlank, isJsObject, isPresent } from './lang';
export var Map = global.Map;

@@ -3,0 +3,0 @@ export var Set = global.Set;

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

{"__symbolic":"module","metadata":{"Map":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"global","module":"./lang"},"member":"Map"},"Set":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"global","module":"./lang"},"member":"Set"}}}
{"__symbolic":"module","version":1,"metadata":{"Map":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./lang","name":"global"},"member":"Map"},"Set":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./lang","name":"global"},"member":"Set"}}}

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

*
* bootstrap(MyApp, [provide(ExceptionHandler, {useClass: MyExceptionHandler})])
* bootstrap(MyApp, {provide: ExceptionHandler, useClass: MyExceptionHandler}])
*
* ```
* @stable
*/

@@ -29,12 +30,2 @@ export declare class ExceptionHandler {

call(exception: any, stackTrace?: any, reason?: string): void;
/** @internal */
_extractMessage(exception: any): string;
/** @internal */
_longStackTrace(stackTrace: any): any;
/** @internal */
_findContext(exception: any): any;
/** @internal */
_findOriginalException(exception: any): any;
/** @internal */
_findOriginalStack(exception: any): any;
}

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

import { isPresent, isBlank } from './lang';
import { BaseWrappedException } from './base_wrapped_exception';
import { isListLikeIterable } from './collection';
import { isBlank, isPresent } from './lang';
class _ArrayLogger {

@@ -31,5 +31,6 @@ constructor() {

*
* bootstrap(MyApp, [provide(ExceptionHandler, {useClass: MyExceptionHandler})])
* bootstrap(MyApp, {provide: ExceptionHandler, useClass: MyExceptionHandler}])
*
* ```
* @stable
*/

@@ -45,3 +46,3 @@ export class ExceptionHandler {

e.call(exception, stackTrace, reason);
return l.res.join("\n");
return l.res.join('\n');
}

@@ -54,3 +55,3 @@ call(exception, stackTrace = null, reason = null) {

if (isPresent(stackTrace) && isBlank(originalStack)) {
this._logger.logError("STACKTRACE:");
this._logger.logError('STACKTRACE:');
this._logger.logError(this._longStackTrace(stackTrace));

@@ -65,7 +66,7 @@ }

if (isPresent(originalStack)) {
this._logger.logError("ORIGINAL STACKTRACE:");
this._logger.logError('ORIGINAL STACKTRACE:');
this._logger.logError(this._longStackTrace(originalStack));
}
if (isPresent(context)) {
this._logger.logError("ERROR CONTEXT:");
this._logger.logError('ERROR CONTEXT:');
this._logger.logError(context);

@@ -86,3 +87,3 @@ }

_longStackTrace(stackTrace) {
return isListLikeIterable(stackTrace) ? stackTrace.join("\n\n-----async gap-----\n") :
return isListLikeIterable(stackTrace) ? stackTrace.join('\n\n-----async gap-----\n') :
stackTrace.toString();

@@ -89,0 +90,0 @@ }

import { BaseWrappedException } from './base_wrapped_exception';
export { ExceptionHandler } from './exception_handler';
/**
* @stable
*/
export declare class BaseException extends Error {

@@ -11,2 +14,3 @@ message: string;

* Wraps an exception and provides additional context or information.
* @stable
*/

@@ -13,0 +17,0 @@ export declare class WrappedException extends BaseWrappedException {

import { BaseWrappedException } from './base_wrapped_exception';
import { ExceptionHandler } from './exception_handler';
export { ExceptionHandler } from './exception_handler';
/**
* @stable
*/
export class BaseException extends Error {
constructor(message = "--") {
constructor(message = '--') {
super(message);

@@ -14,5 +17,6 @@ this.message = message;

* Wraps an exception and provides additional context or information.
* @stable
*/
export class WrappedException extends BaseWrappedException {
constructor(_wrapperMessage, _originalException, _originalStack, _context) {
constructor(_wrapperMessage, _originalException /** TODO #9100 */, _originalStack /** TODO #9100 */, _context /** TODO #9100 */) {
super(_wrapperMessage);

@@ -19,0 +23,0 @@ this._wrapperMessage = _wrapperMessage;

@@ -52,2 +52,3 @@ export interface BrowserNodeGlobal {

* unidirectional data flow).
* @stable
*/

@@ -60,3 +61,3 @@ export declare function enableProdMode(): void;

export declare function isNumber(obj: any): boolean;
export declare function isString(obj: any): boolean;
export declare function isString(obj: any): obj is String;
export declare function isFunction(obj: any): boolean;

@@ -68,3 +69,3 @@ export declare function isType(obj: any): boolean;

export declare function isArray(obj: any): boolean;
export declare function isDate(obj: any): boolean;
export declare function isDate(obj: any): obj is Date;
export declare function noop(): void;

@@ -90,4 +91,4 @@ export declare function stringify(token: any): string;

export declare class StringJoiner {
parts: any[];
constructor(parts?: any[]);
parts: string[];
constructor(parts?: string[]);
add(part: string): void;

@@ -131,2 +132,3 @@ toString(): string;

static apply(fn: Function, posArgs: any): any;
static bind(fn: Function, scope: any): Function;
}

@@ -133,0 +135,0 @@ export declare function looseIdentical(a: any, b: any): boolean;

@@ -43,2 +43,3 @@ var globalScope;

* unidirectional data flow).
* @stable
*/

@@ -68,12 +69,12 @@ export function enableProdMode() {

export function isBoolean(obj) {
return typeof obj === "boolean";
return typeof obj === 'boolean';
}
export function isNumber(obj) {
return typeof obj === "number";
return typeof obj === 'number';
}
export function isString(obj) {
return typeof obj === "string";
return typeof obj === 'string';
}
export function isFunction(obj) {
return typeof obj === "function";
return typeof obj === 'function';
}

@@ -114,3 +115,3 @@ export function isType(obj) {

var res = token.toString();
var newLineIndex = res.indexOf("\n");
var newLineIndex = res.indexOf('\n');
return (newLineIndex === -1) ? res : res.substring(0, newLineIndex);

@@ -193,3 +194,3 @@ }

add(part) { this.parts.push(part); }
toString() { return this.parts.join(""); }
toString() { return this.parts.join(''); }
}

@@ -209,3 +210,3 @@ export class NumberParseError extends Error {

if (isNaN(result)) {
throw new NumberParseError("Invalid integer literal when parsing " + text);
throw new NumberParseError('Invalid integer literal when parsing ' + text);
}

@@ -231,4 +232,3 @@ return result;

}
throw new NumberParseError("Invalid integer literal when parsing " + text + " in base " +
radix);
throw new NumberParseError('Invalid integer literal when parsing ' + text + ' in base ' + radix);
}

@@ -286,6 +286,7 @@ // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.

static apply(fn, posArgs) { return fn.apply(null, posArgs); }
static bind(fn, scope) { return fn.bind(scope); }
}
// JS has NaN !== NaN
export function looseIdentical(a, b) {
return a === b || typeof a === "number" && typeof b === "number" && isNaN(a) && isNaN(b);
return a === b || typeof a === 'number' && typeof b === 'number' && isNaN(a) && isNaN(b);
}

@@ -304,3 +305,3 @@ // JS considers NaN is the same as NaN for map Key (while NaN !== NaN otherwise)

export function isJsObject(o) {
return o !== null && (typeof o === "function" || typeof o === "object");
return o !== null && (typeof o === 'function' || typeof o === 'object');
}

@@ -307,0 +308,0 @@ export function print(obj) {

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

{"__symbolic":"module","metadata":{"IS_DART":false,"Type":{"__symbolic":"reference","name":"Function"},"Math":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Math"},"Date":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Date"},"RegExp":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"RegExp"}}}
{"__symbolic":"module","version":1,"metadata":{"IS_DART":false,"Type":{"__symbolic":"reference","name":"Function"},"Math":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Math"},"Date":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Date"},"assertionsEnabled":{"__symbolic":"function","parameters":[],"value":true},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":123,"character":8},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":127,"character":8},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":131,"character":8},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":135,"character":8},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":143,"character":8},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"reference","name":"STRING_MAP_PROTO"}}}},"isPromise":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Promise"}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"serializeEnum":{"__symbolic":"function","parameters":["val"],"value":{"__symbolic":"reference","name":"val"}},"deserializeEnum":{"__symbolic":"function","parameters":["val","values"],"value":{"__symbolic":"reference","name":"val"}},"resolveEnumToken":{"__symbolic":"function","parameters":["enumValue","val"],"value":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"enumValue"},"index":{"__symbolic":"reference","name":"val"}}},"RegExp":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"RegExp"},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":381,"character":19},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":381,"character":44},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"error","message":"Expression form not supported","line":391,"character":8}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"error","message":"Expression form not supported","line":395,"character":8}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":399,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":399,"character":50},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"bitWiseOr":{"__symbolic":"function","parameters":["values"],"value":{"__symbolic":"error","message":"Function call not supported","line":492,"character":23}},"bitWiseAnd":{"__symbolic":"function","parameters":["values"],"value":{"__symbolic":"error","message":"Function call not supported","line":496,"character":23}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"encodeURI"},"arguments":[{"__symbolic":"reference","name":"s"}]}}}}
import { XHR } from '@angular/compiler';
import { BaseException } from '../../src/facade/exceptions';
import { global } from '../../src/facade/lang';
import { PromiseWrapper } from '../../src/facade/promise';
import { BaseException } from '../facade/exceptions';
import { global } from '../facade/lang';
import { PromiseWrapper } from '../facade/promise';
/**

@@ -6,0 +6,0 @@ * An implementation of XHR that uses a template cache to avoid doing an actual

import { XHR } from '@angular/compiler';
import { PromiseWrapper } from '../../src/facade/promise';
import { isPresent } from '../../src/facade/lang';
import { isPresent } from '../facade/lang';
import { PromiseWrapper } from '../facade/promise';
export class XHRImpl extends XHR {

@@ -5,0 +5,0 @@ get(url) {

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

export * from './testing/browser';
export * from './private_export_testing';
/**
* Default platform providers for testing.
*/
export declare const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: Array<any>;
/**
* Default application providers for testing.
*/
export declare const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS: Array<any>;

@@ -1,2 +0,23 @@

export * from './testing/browser';
import { DirectiveResolver, ViewResolver } from '@angular/compiler';
import { MockDirectiveResolver, MockViewResolver, TestComponentBuilder, TestComponentRenderer } from '@angular/compiler/testing';
import { TEST_BROWSER_APPLICATION_PROVIDERS, TEST_BROWSER_PLATFORM_PROVIDERS } from '@angular/platform-browser/testing';
import { BROWSER_APP_COMPILER_PROVIDERS } from './index';
import { DOMTestComponentRenderer } from './testing/dom_test_component_renderer';
export * from './private_export_testing';
/**
* Default platform providers for testing.
*/
export const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [TEST_BROWSER_PLATFORM_PROVIDERS];
/**
* Default application providers for testing.
*/
export const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS = [
TEST_BROWSER_APPLICATION_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS,
[
{ provide: DirectiveResolver, useClass: MockDirectiveResolver },
{ provide: ViewResolver, useClass: MockViewResolver },
TestComponentBuilder,
{ provide: TestComponentRenderer, useClass: DOMTestComponentRenderer },
]
];
//# sourceMappingURL=testing.js.map

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

export * from './platform_browser_dynamic';
import { ApplicationRef, ComponentRef, Type } from '@angular/core';
export declare const BROWSER_APP_COMPILER_PROVIDERS: Array<any>;
export declare const CACHED_TEMPLATE_PROVIDER: Array<any>;
/**
* Bootstrapping for Angular applications.
*
* You instantiate an Angular application by explicitly specifying a component to use
* as the root component for your application via the `bootstrap()` method.
*
* ## Simple Example
*
* Assuming this `index.html`:
*
* ```html
* <html>
* <!-- load Angular script tags here. -->
* <body>
* <my-app>loading...</my-app>
* </body>
* </html>
* ```
*
* An application is bootstrapped inside an existing browser DOM, typically `index.html`.
* Unlike Angular 1, Angular 2 does not compile/process providers in `index.html`. This is
* mainly for security reasons, as well as architectural changes in Angular 2. This means
* that `index.html` can safely be processed using server-side technologies such as
* providers. Bindings can thus use double-curly `{{ syntax }}` without collision from
* Angular 2 component double-curly `{{ syntax }}`.
*
* We can use this script code:
*
* {@example core/ts/bootstrap/bootstrap.ts region='bootstrap'}
*
* When the app developer invokes `bootstrap()` with the root component `MyApp` as its
* argument, Angular performs the following tasks:
*
* 1. It uses the component's `selector` property to locate the DOM element which needs
* to be upgraded into the angular component.
* 2. It creates a new child injector (from the platform injector). Optionally, you can
* also override the injector configuration for an app by invoking `bootstrap` with the
* `componentInjectableBindings` argument.
* 3. It creates a new `Zone` and connects it to the angular application's change detection
* domain instance.
* 4. It creates an emulated or shadow DOM on the selected component's host element and loads the
* template into it.
* 5. It instantiates the specified component.
* 6. Finally, Angular performs change detection to apply the initial data providers for the
* application.
*
*
* ## Bootstrapping Multiple Applications
*
* When working within a browser window, there are many singleton resources: cookies, title,
* location, and others. Angular services that represent these resources must likewise be
* shared across all Angular applications that occupy the same browser window. For this
* reason, Angular creates exactly one global platform object which stores all shared
* services, and each angular application injector has the platform injector as its parent.
*
* Each application has its own private injector as well. When there are multiple
* applications on a page, Angular treats each application injector's services as private
* to that application.
*
* ## API
*
* - `appComponentType`: The root component which should act as the application. This is
* a reference to a `Type` which is annotated with `@Component(...)`.
* - `customProviders`: An additional set of providers that can be added to the
* app injector to override default injection behavior.
*
* Returns a `Promise` of {@link ComponentRef}.
*/
export declare function bootstrap(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>;
export declare function bootstrapWorkerUi(workerScriptUri: string, customProviders?: Array<any>): Promise<ApplicationRef>;
export declare function bootstrapWorkerApp(appComponentType: Type, customProviders?: Array<any>): Promise<ComponentRef<any>>;
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
var common_1 = require('@angular/common');
var compiler_1 = require('@angular/compiler');
var core_1 = require('@angular/core');
var platform_browser_1 = require('@angular/platform-browser');
var core_private_1 = require('./core_private');
var async_1 = require('./src/facade/async');
var lang_1 = require('./src/facade/lang');
var xhr_cache_1 = require('./src/xhr/xhr_cache');
var xhr_impl_1 = require('./src/xhr/xhr_impl');
exports.BROWSER_APP_COMPILER_PROVIDERS = [
compiler_1.COMPILER_PROVIDERS, {
provide: compiler_1.CompilerConfig,
useFactory: function (platformDirectives, platformPipes) {
return new compiler_1.CompilerConfig({ platformDirectives: platformDirectives, platformPipes: platformPipes });
},
deps: [core_1.PLATFORM_DIRECTIVES, core_1.PLATFORM_PIPES]
},
{ provide: compiler_1.XHR, useClass: xhr_impl_1.XHRImpl },
{ provide: core_1.PLATFORM_DIRECTIVES, useValue: common_1.COMMON_DIRECTIVES, multi: true },
{ provide: core_1.PLATFORM_PIPES, useValue: common_1.COMMON_PIPES, multi: true }
];
exports.CACHED_TEMPLATE_PROVIDER = [{ provide: compiler_1.XHR, useClass: xhr_cache_1.CachedXHR }];
/**
* Bootstrapping for Angular applications.
*
* You instantiate an Angular application by explicitly specifying a component to use
* as the root component for your application via the `bootstrap()` method.
*
* ## Simple Example
*
* Assuming this `index.html`:
*
* ```html
* <html>
* <!-- load Angular script tags here. -->
* <body>
* <my-app>loading...</my-app>
* </body>
* </html>
* ```
*
* An application is bootstrapped inside an existing browser DOM, typically `index.html`.
* Unlike Angular 1, Angular 2 does not compile/process providers in `index.html`. This is
* mainly for security reasons, as well as architectural changes in Angular 2. This means
* that `index.html` can safely be processed using server-side technologies such as
* providers. Bindings can thus use double-curly `{{ syntax }}` without collision from
* Angular 2 component double-curly `{{ syntax }}`.
*
* We can use this script code:
*
* {@example core/ts/bootstrap/bootstrap.ts region='bootstrap'}
*
* When the app developer invokes `bootstrap()` with the root component `MyApp` as its
* argument, Angular performs the following tasks:
*
* 1. It uses the component's `selector` property to locate the DOM element which needs
* to be upgraded into the angular component.
* 2. It creates a new child injector (from the platform injector). Optionally, you can
* also override the injector configuration for an app by invoking `bootstrap` with the
* `componentInjectableBindings` argument.
* 3. It creates a new `Zone` and connects it to the angular application's change detection
* domain instance.
* 4. It creates an emulated or shadow DOM on the selected component's host element and loads the
* template into it.
* 5. It instantiates the specified component.
* 6. Finally, Angular performs change detection to apply the initial data providers for the
* application.
*
*
* ## Bootstrapping Multiple Applications
*
* When working within a browser window, there are many singleton resources: cookies, title,
* location, and others. Angular services that represent these resources must likewise be
* shared across all Angular applications that occupy the same browser window. For this
* reason, Angular creates exactly one global platform object which stores all shared
* services, and each angular application injector has the platform injector as its parent.
*
* Each application has its own private injector as well. When there are multiple
* applications on a page, Angular treats each application injector's services as private
* to that application.
*
* ## API
*
* - `appComponentType`: The root component which should act as the application. This is
* a reference to a `Type` which is annotated with `@Component(...)`.
* - `customProviders`: An additional set of providers that can be added to the
* app injector to override default injection behavior.
*
* Returns a `Promise` of {@link ComponentRef}.
*/
function bootstrap(appComponentType, customProviders) {
core_private_1.reflector.reflectionCapabilities = new core_private_1.ReflectionCapabilities();
var providers = [
platform_browser_1.BROWSER_APP_PROVIDERS, exports.BROWSER_APP_COMPILER_PROVIDERS,
lang_1.isPresent(customProviders) ? customProviders : []
];
var appInjector = core_1.ReflectiveInjector.resolveAndCreate(providers, platform_browser_1.browserPlatform().injector);
return core_1.coreLoadAndBootstrap(appComponentType, appInjector);
}
__export(require('./platform_browser_dynamic'));
exports.bootstrap = bootstrap;
function bootstrapWorkerUi(workerScriptUri, customProviders) {
var app = core_1.ReflectiveInjector.resolveAndCreate([
platform_browser_1.WORKER_UI_APPLICATION_PROVIDERS, exports.BROWSER_APP_COMPILER_PROVIDERS,
{ provide: platform_browser_1.WORKER_SCRIPT, useValue: workerScriptUri },
lang_1.isPresent(customProviders) ? customProviders : []
], platform_browser_1.workerUiPlatform().injector);
// Return a promise so that we keep the same semantics as Dart,
// and we might want to wait for the app side to come up
// in the future...
return async_1.PromiseWrapper.resolve(app.get(core_1.ApplicationRef));
}
exports.bootstrapWorkerUi = bootstrapWorkerUi;
var WORKER_APP_COMPILER_PROVIDERS = [
compiler_1.COMPILER_PROVIDERS, {
provide: compiler_1.CompilerConfig,
useFactory: function (platformDirectives, platformPipes) {
return new compiler_1.CompilerConfig({ platformDirectives: platformDirectives, platformPipes: platformPipes });
},
deps: [core_1.PLATFORM_DIRECTIVES, core_1.PLATFORM_PIPES]
},
{ provide: compiler_1.XHR, useClass: xhr_impl_1.XHRImpl },
{ provide: core_1.PLATFORM_DIRECTIVES, useValue: common_1.COMMON_DIRECTIVES, multi: true },
{ provide: core_1.PLATFORM_PIPES, useValue: common_1.COMMON_PIPES, multi: true }
];
function bootstrapWorkerApp(appComponentType, customProviders) {
var appInjector = core_1.ReflectiveInjector.resolveAndCreate([
platform_browser_1.WORKER_APP_APPLICATION_PROVIDERS, WORKER_APP_COMPILER_PROVIDERS,
lang_1.isPresent(customProviders) ? customProviders : []
], platform_browser_1.workerAppPlatform().injector);
return core_1.coreLoadAndBootstrap(appComponentType, appInjector);
}
exports.bootstrapWorkerApp = bootstrapWorkerApp;
//# sourceMappingURL=index.js.map
{
"name": "@angular/platform-browser-dynamic",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "",

@@ -11,7 +11,7 @@ "main": "index.js",

"peerDependencies": {
"@angular/core": "2.0.0-rc.1",
"@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1"
"@angular/core": "2.0.0-rc.2",
"@angular/common": "2.0.0-rc.2",
"@angular/compiler": "2.0.0-rc.2",
"@angular/platform-browser": "2.0.0-rc.2"
}
}

@@ -1,3 +0,2 @@

import { __platform_browser_private__ as _ } from '@angular/platform-browser';
export declare type DomAdapter = _.DomAdapter;
export declare function getDOM(): _.DomAdapter;
import { __platform_browser_private__ as t } from '@angular/platform-browser';
export declare var getDOM: typeof t.getDOM;
"use strict";
var platform_browser_1 = require('@angular/platform-browser');
function getDOM() { return platform_browser_1.__platform_browser_private__.getDOM(); }
exports.getDOM = getDOM;
;
exports.getDOM = platform_browser_1.__platform_browser_private__.getDOM;
//# sourceMappingURL=platform_browser_private.js.map

@@ -8,6 +8,6 @@ "use strict";

/**
* A base class for the WrappedException that can be used to identify
* a WrappedException from ExceptionHandler without adding circular
* dependency.
*/
* A base class for the WrappedException that can be used to identify
* a WrappedException from ExceptionHandler without adding circular
* dependency.
*/
var BaseWrappedException = (function (_super) {

@@ -14,0 +14,0 @@ __extends(BaseWrappedException, _super);

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

{"__symbolic":"module","metadata":{"Map":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"global","module":"./lang"},"member":"Map"},"Set":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"global","module":"./lang"},"member":"Set"}}}
{"__symbolic":"module","version":1,"metadata":{"Map":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./lang","name":"global"},"member":"Map"},"Set":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"./lang","name":"global"},"member":"Set"}}}

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

*
* bootstrap(MyApp, [provide(ExceptionHandler, {useClass: MyExceptionHandler})])
* bootstrap(MyApp, {provide: ExceptionHandler, useClass: MyExceptionHandler}])
*
* ```
* @stable
*/

@@ -29,12 +30,2 @@ export declare class ExceptionHandler {

call(exception: any, stackTrace?: any, reason?: string): void;
/** @internal */
_extractMessage(exception: any): string;
/** @internal */
_longStackTrace(stackTrace: any): any;
/** @internal */
_findContext(exception: any): any;
/** @internal */
_findOriginalException(exception: any): any;
/** @internal */
_findOriginalStack(exception: any): any;
}
"use strict";
var lang_1 = require('./lang');
var base_wrapped_exception_1 = require('./base_wrapped_exception');
var collection_1 = require('./collection');
var lang_1 = require('./lang');
var _ArrayLogger = (function () {

@@ -33,5 +33,6 @@ function _ArrayLogger() {

*
* bootstrap(MyApp, [provide(ExceptionHandler, {useClass: MyExceptionHandler})])
* bootstrap(MyApp, {provide: ExceptionHandler, useClass: MyExceptionHandler}])
*
* ```
* @stable
*/

@@ -50,3 +51,3 @@ var ExceptionHandler = (function () {

e.call(exception, stackTrace, reason);
return l.res.join("\n");
return l.res.join('\n');
};

@@ -61,3 +62,3 @@ ExceptionHandler.prototype.call = function (exception, stackTrace, reason) {

if (lang_1.isPresent(stackTrace) && lang_1.isBlank(originalStack)) {
this._logger.logError("STACKTRACE:");
this._logger.logError('STACKTRACE:');
this._logger.logError(this._longStackTrace(stackTrace));

@@ -72,7 +73,7 @@ }

if (lang_1.isPresent(originalStack)) {
this._logger.logError("ORIGINAL STACKTRACE:");
this._logger.logError('ORIGINAL STACKTRACE:');
this._logger.logError(this._longStackTrace(originalStack));
}
if (lang_1.isPresent(context)) {
this._logger.logError("ERROR CONTEXT:");
this._logger.logError('ERROR CONTEXT:');
this._logger.logError(context);

@@ -93,3 +94,3 @@ }

ExceptionHandler.prototype._longStackTrace = function (stackTrace) {
return collection_1.isListLikeIterable(stackTrace) ? stackTrace.join("\n\n-----async gap-----\n") :
return collection_1.isListLikeIterable(stackTrace) ? stackTrace.join('\n\n-----async gap-----\n') :
stackTrace.toString();

@@ -96,0 +97,0 @@ };

import { BaseWrappedException } from './base_wrapped_exception';
export { ExceptionHandler } from './exception_handler';
/**
* @stable
*/
export declare class BaseException extends Error {

@@ -11,2 +14,3 @@ message: string;

* Wraps an exception and provides additional context or information.
* @stable
*/

@@ -13,0 +17,0 @@ export declare class WrappedException extends BaseWrappedException {

@@ -11,6 +11,9 @@ "use strict";

exports.ExceptionHandler = exception_handler_2.ExceptionHandler;
/**
* @stable
*/
var BaseException = (function (_super) {
__extends(BaseException, _super);
function BaseException(message) {
if (message === void 0) { message = "--"; }
if (message === void 0) { message = '--'; }
_super.call(this, message);

@@ -26,6 +29,7 @@ this.message = message;

* Wraps an exception and provides additional context or information.
* @stable
*/
var WrappedException = (function (_super) {
__extends(WrappedException, _super);
function WrappedException(_wrapperMessage, _originalException, _originalStack, _context) {
function WrappedException(_wrapperMessage, _originalException /** TODO #9100 */, _originalStack /** TODO #9100 */, _context /** TODO #9100 */) {
_super.call(this, _wrapperMessage);

@@ -32,0 +36,0 @@ this._wrapperMessage = _wrapperMessage;

@@ -52,2 +52,3 @@ export interface BrowserNodeGlobal {

* unidirectional data flow).
* @stable
*/

@@ -60,3 +61,3 @@ export declare function enableProdMode(): void;

export declare function isNumber(obj: any): boolean;
export declare function isString(obj: any): boolean;
export declare function isString(obj: any): obj is String;
export declare function isFunction(obj: any): boolean;

@@ -68,3 +69,3 @@ export declare function isType(obj: any): boolean;

export declare function isArray(obj: any): boolean;
export declare function isDate(obj: any): boolean;
export declare function isDate(obj: any): obj is Date;
export declare function noop(): void;

@@ -90,4 +91,4 @@ export declare function stringify(token: any): string;

export declare class StringJoiner {
parts: any[];
constructor(parts?: any[]);
parts: string[];
constructor(parts?: string[]);
add(part: string): void;

@@ -131,2 +132,3 @@ toString(): string;

static apply(fn: Function, posArgs: any): any;
static bind(fn: Function, scope: any): Function;
}

@@ -133,0 +135,0 @@ export declare function looseIdentical(a: any, b: any): boolean;

@@ -52,2 +52,3 @@ "use strict";

* unidirectional data flow).
* @stable
*/

@@ -81,15 +82,15 @@ function enableProdMode() {

function isBoolean(obj) {
return typeof obj === "boolean";
return typeof obj === 'boolean';
}
exports.isBoolean = isBoolean;
function isNumber(obj) {
return typeof obj === "number";
return typeof obj === 'number';
}
exports.isNumber = isNumber;
function isString(obj) {
return typeof obj === "string";
return typeof obj === 'string';
}
exports.isString = isString;
function isFunction(obj) {
return typeof obj === "function";
return typeof obj === 'function';
}

@@ -138,3 +139,3 @@ exports.isFunction = isFunction;

var res = token.toString();
var newLineIndex = res.indexOf("\n");
var newLineIndex = res.indexOf('\n');
return (newLineIndex === -1) ? res : res.substring(0, newLineIndex);

@@ -232,3 +233,3 @@ }

StringJoiner.prototype.add = function (part) { this.parts.push(part); };
StringJoiner.prototype.toString = function () { return this.parts.join(""); };
StringJoiner.prototype.toString = function () { return this.parts.join(''); };
return StringJoiner;

@@ -255,3 +256,3 @@ }());

if (isNaN(result)) {
throw new NumberParseError("Invalid integer literal when parsing " + text);
throw new NumberParseError('Invalid integer literal when parsing ' + text);
}

@@ -277,4 +278,3 @@ return result;

}
throw new NumberParseError("Invalid integer literal when parsing " + text + " in base " +
radix);
throw new NumberParseError('Invalid integer literal when parsing ' + text + ' in base ' + radix);
};

@@ -349,2 +349,3 @@ // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.

FunctionWrapper.apply = function (fn, posArgs) { return fn.apply(null, posArgs); };
FunctionWrapper.bind = function (fn, scope) { return fn.bind(scope); };
return FunctionWrapper;

@@ -355,3 +356,3 @@ }());

function looseIdentical(a, b) {
return a === b || typeof a === "number" && typeof b === "number" && isNaN(a) && isNaN(b);
return a === b || typeof a === 'number' && typeof b === 'number' && isNaN(a) && isNaN(b);
}

@@ -374,3 +375,3 @@ exports.looseIdentical = looseIdentical;

function isJsObject(o) {
return o !== null && (typeof o === "function" || typeof o === "object");
return o !== null && (typeof o === 'function' || typeof o === 'object');
}

@@ -377,0 +378,0 @@ exports.isJsObject = isJsObject;

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

{"__symbolic":"module","metadata":{"IS_DART":false,"Type":{"__symbolic":"reference","name":"Function"},"Math":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Math"},"Date":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Date"},"RegExp":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"RegExp"}}}
{"__symbolic":"module","version":1,"metadata":{"IS_DART":false,"Type":{"__symbolic":"reference","name":"Function"},"Math":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Math"},"Date":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Date"},"assertionsEnabled":{"__symbolic":"function","parameters":[],"value":true},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"undefined"}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isBoolean":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":123,"character":8},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":127,"character":8},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":131,"character":8},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":135,"character":8},"right":"function"}},"isType":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isFunction"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":143,"character":8},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isStringMap"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"reference","name":"STRING_MAP_PROTO"}}}},"isPromise":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"Promise"}}},"isArray":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Array"},"member":"isArray"},"arguments":[{"__symbolic":"reference","name":"obj"}]}},"isDate":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"obj"},"right":{"__symbolic":"reference","name":"Date"}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"obj"},"member":"valueOf"}}]}}}},"serializeEnum":{"__symbolic":"function","parameters":["val"],"value":{"__symbolic":"reference","name":"val"}},"deserializeEnum":{"__symbolic":"function","parameters":["val","values"],"value":{"__symbolic":"reference","name":"val"}},"resolveEnumToken":{"__symbolic":"function","parameters":["enumValue","val"],"value":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"enumValue"},"index":{"__symbolic":"reference","name":"val"}}},"RegExp":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"RegExp"},"looseIdentical":{"__symbolic":"function","parameters":["a","b"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"a"},"right":{"__symbolic":"reference","name":"b"}},"right":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":381,"character":19},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":381,"character":44},"right":"number"}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"a"}]}},"right":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isNaN"},"arguments":[{"__symbolic":"reference","name":"b"}]}}}},"getMapKey":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"reference","name":"value"}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"error","message":"Expression form not supported","line":391,"character":8}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"error","message":"Expression form not supported","line":395,"character":8}},"isJsObject":{"__symbolic":"function","parameters":["o"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"o"},"right":null},"right":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":399,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":399,"character":50},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"hasConstructor":{"__symbolic":"function","parameters":["value","type"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"value"},"member":"constructor"},"right":{"__symbolic":"reference","name":"type"}}},"bitWiseOr":{"__symbolic":"function","parameters":["values"],"value":{"__symbolic":"error","message":"Function call not supported","line":492,"character":23}},"bitWiseAnd":{"__symbolic":"function","parameters":["values"],"value":{"__symbolic":"error","message":"Function call not supported","line":496,"character":23}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"_global"},"member":"encodeURI"},"arguments":[{"__symbolic":"reference","name":"s"}]}}}}

@@ -8,5 +8,5 @@ "use strict";

var compiler_1 = require('@angular/compiler');
var exceptions_1 = require('../../src/facade/exceptions');
var lang_1 = require('../../src/facade/lang');
var promise_1 = require('../../src/facade/promise');
var exceptions_1 = require('../facade/exceptions');
var lang_1 = require('../facade/lang');
var promise_1 = require('../facade/promise');
/**

@@ -13,0 +13,0 @@ * An implementation of XHR that uses a template cache to avoid doing an actual

@@ -8,4 +8,4 @@ "use strict";

var compiler_1 = require('@angular/compiler');
var promise_1 = require('../../src/facade/promise');
var lang_1 = require('../../src/facade/lang');
var lang_1 = require('../facade/lang');
var promise_1 = require('../facade/promise');
var XHRImpl = (function (_super) {

@@ -12,0 +12,0 @@ __extends(XHRImpl, _super);

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

export * from './testing/browser';
export * from './private_export_testing';
/**
* Default platform providers for testing.
*/
export declare const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: Array<any>;
/**
* Default application providers for testing.
*/
export declare const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS: Array<any>;

@@ -5,3 +5,24 @@ "use strict";

}
__export(require('./testing/browser'));
var compiler_1 = require('@angular/compiler');
var testing_1 = require('@angular/compiler/testing');
var testing_2 = require('@angular/platform-browser/testing');
var index_1 = require('./index');
var dom_test_component_renderer_1 = require('./testing/dom_test_component_renderer');
__export(require('./private_export_testing'));
/**
* Default platform providers for testing.
*/
exports.TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [testing_2.TEST_BROWSER_PLATFORM_PROVIDERS];
/**
* Default application providers for testing.
*/
exports.TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS = [
testing_2.TEST_BROWSER_APPLICATION_PROVIDERS, index_1.BROWSER_APP_COMPILER_PROVIDERS,
[
{ provide: compiler_1.DirectiveResolver, useClass: testing_1.MockDirectiveResolver },
{ provide: compiler_1.ViewResolver, useClass: testing_1.MockViewResolver },
testing_1.TestComponentBuilder,
{ provide: testing_1.TestComponentRenderer, useClass: dom_test_component_renderer_1.DOMTestComponentRenderer },
]
];
//# sourceMappingURL=testing.js.map

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