Socket
Socket
Sign inDemoInstall

@angular/core

Package Overview
Dependencies
Maintainers
1
Versions
839
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/core - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0-beta.0

src/animation/animation_transition.d.ts

43

bundles/core-testing.umd.js
/**
* @license Angular v2.1.0
* @license Angular v2.2.0-beta.0
* (c) 2010-2016 Google, Inc. https://angular.io/

@@ -131,43 +131,2 @@ * License: MIT

}
var NumberWrapper = (function () {
function NumberWrapper() {
}
NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };
NumberWrapper.equal = function (a, b) { return a === b; };
NumberWrapper.parseIntAutoRadix = function (text) {
var result = parseInt(text);
if (isNaN(result)) {
throw new Error('Invalid integer literal when parsing ' + text);
}
return result;
};
NumberWrapper.parseInt = function (text, radix) {
if (radix == 10) {
if (/^(\-|\+)?[0-9]+$/.test(text)) {
return parseInt(text, radix);
}
}
else if (radix == 16) {
if (/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(text)) {
return parseInt(text, radix);
}
}
else {
var result = parseInt(text, radix);
if (!isNaN(result)) {
return result;
}
}
throw new Error('Invalid integer literal when parsing ' + text + ' in base ' + radix);
};
Object.defineProperty(NumberWrapper, "NaN", {
get: function () { return NaN; },
enumerable: true,
configurable: true
});
NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };
NumberWrapper.isNaN = function (value) { return isNaN(value); };
NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };
return NumberWrapper;
}());

@@ -174,0 +133,0 @@ /**

{
"name": "@angular/core",
"version": "2.1.0",
"version": "2.2.0-beta.0",
"description": "Angular - the core framework",

@@ -5,0 +5,0 @@ "main": "bundles/core.umd.js",

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

import { isPresent, scheduleMicroTask } from '../facade/lang';
import { Math } from '../facade/math';
export var AnimationGroupPlayer = (function () {

@@ -12,0 +11,0 @@ function AnimationGroupPlayer(_players) {

@@ -43,7 +43,9 @@ /**

totalTime: number;
constructor({fromState, toState, totalTime}: {
phaseName: string;
constructor({fromState, toState, totalTime, phaseName}: {
fromState: string;
toState: string;
totalTime: number;
phaseName: string;
});
}

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

function AnimationTransitionEvent(_a) {
var fromState = _a.fromState, toState = _a.toState, totalTime = _a.totalTime;
var fromState = _a.fromState, toState = _a.toState, totalTime = _a.totalTime, phaseName = _a.phaseName;
this.fromState = fromState;
this.toState = toState;
this.totalTime = totalTime;
this.phaseName = phaseName;
}

@@ -47,0 +48,0 @@ return AnimationTransitionEvent;

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

};
import { isArray, isPresent, isString } from '../facade/lang';
import { isPresent } from '../facade/lang';
/**

@@ -378,7 +378,7 @@ * @experimental Animation support is experimental.

var offset = null;
if (isString(tokens)) {
if (typeof tokens === 'string') {
input = [tokens];
}
else {
if (isArray(tokens)) {
if (Array.isArray(tokens)) {
input = tokens;

@@ -612,4 +612,3 @@ }

export function transition(stateChangeExpr, steps) {
var animationData = isArray(steps) ? new AnimationSequenceMetadata(steps) :
steps;
var animationData = Array.isArray(steps) ? new AnimationSequenceMetadata(steps) : steps;
return new AnimationStateTransitionMetadata(stateChangeExpr, animationData);

@@ -616,0 +615,0 @@ }

@@ -5,3 +5,2 @@ import { AnimationPlayer } from './animation_player';

private _allPlayers;
length: number;
find(element: any, animationName: string): AnimationPlayer;

@@ -8,0 +7,0 @@ findAllPlayersByElement(element: any): AnimationPlayer[];

@@ -14,7 +14,2 @@ /**

}
Object.defineProperty(ViewAnimationMap.prototype, "length", {
get: function () { return this.getAllPlayers().length; },
enumerable: true,
configurable: true
});
ViewAnimationMap.prototype.find = function (element, animationName) {

@@ -21,0 +16,0 @@ var playersByAnimation = this._map.get(element);

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

import { isListLikeIterable, iterateListLike } from '../../facade/collection';
import { getMapKey, isArray, isBlank, isPresent, looseIdentical, stringify } from '../../facade/lang';
import { isBlank, looseIdentical, stringify } from '../../facade/lang';
export var DefaultIterableDifferFactory = (function () {

@@ -165,10 +165,10 @@ function DefaultIterableDifferFactory() {

var itemTrackBy;
if (isArray(collection)) {
if (Array.isArray(collection)) {
var list = collection;
this._length = collection.length;
for (index = 0; index < this._length; index++) {
item = list[index];
itemTrackBy = this._trackByFn(index, item);
for (var index_1 = 0; index_1 < this._length; index_1++) {
item = list[index_1];
itemTrackBy = this._trackByFn(index_1, item);
if (record === null || !looseIdentical(record.trackById, itemTrackBy)) {
record = this._mismatch(record, item, itemTrackBy, index);
record = this._mismatch(record, item, itemTrackBy, index_1);
mayBeDirty = true;

@@ -179,3 +179,3 @@ }

// TODO(misko): can we limit this to duplicates only?
record = this._verifyReinsertion(record, item, itemTrackBy, index);
record = this._verifyReinsertion(record, item, itemTrackBy, index_1);
}

@@ -666,6 +666,5 @@ if (!looseIdentical(record.item, item))

_DuplicateMap.prototype.put = function (record) {
// todo(vicb) handle corner cases
var key = getMapKey(record.trackById);
var key = record.trackById;
var duplicates = this.map.get(key);
if (!isPresent(duplicates)) {
if (!duplicates) {
duplicates = new _DuplicateItemRecordList();

@@ -685,3 +684,3 @@ this.map.set(key, duplicates);

if (afterIndex === void 0) { afterIndex = null; }
var key = getMapKey(trackById);
var key = trackById;
var recordList = this.map.get(key);

@@ -696,5 +695,3 @@ return recordList ? recordList.get(trackById, afterIndex) : null;

_DuplicateMap.prototype.remove = function (record) {
var key = getMapKey(record.trackById);
// todo(vicb)
// assert(this.map.containsKey(key));
var key = record.trackById;
var recordList = this.map.get(key);

@@ -701,0 +698,0 @@ // Remove the list of duplicates when it gets empty

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

import { AnimationStyles as AnimationStyles_ } from './animation/animation_styles';
import { AnimationTransition } from './animation/animation_transition';
import * as change_detection_util from './change_detection/change_detection_util';

@@ -66,8 +67,2 @@ import * as constants from './change_detection/constants';

_ViewType?: view_type.ViewType;
MAX_INTERPOLATION_VALUES: typeof view_utils.MAX_INTERPOLATION_VALUES;
checkBinding: typeof view_utils.checkBinding;
flattenNestedViewRenderNodes: typeof view_utils.flattenNestedViewRenderNodes;
interpolate: typeof view_utils.interpolate;
ViewUtils: typeof view_utils.ViewUtils;
_ViewUtils?: view_utils.ViewUtils;
ViewMetadata: typeof metadata_view.ViewMetadata;

@@ -92,15 +87,2 @@ _ViewMetadata?: metadata_view.ViewMetadata;

_DebugDomRootRenderer?: debug.DebugDomRootRenderer;
EMPTY_ARRAY: typeof view_utils.EMPTY_ARRAY;
EMPTY_MAP: typeof view_utils.EMPTY_MAP;
pureProxy1: typeof view_utils.pureProxy1;
pureProxy2: typeof view_utils.pureProxy2;
pureProxy3: typeof view_utils.pureProxy3;
pureProxy4: typeof view_utils.pureProxy4;
pureProxy5: typeof view_utils.pureProxy5;
pureProxy6: typeof view_utils.pureProxy6;
pureProxy7: typeof view_utils.pureProxy7;
pureProxy8: typeof view_utils.pureProxy8;
pureProxy9: typeof view_utils.pureProxy9;
pureProxy10: typeof view_utils.pureProxy10;
castByValue: typeof view_utils.castByValue;
Console: typeof console.Console;

@@ -136,2 +118,4 @@ _Console?: console.Console;

isPromise: typeof isPromise;
AnimationTransition: typeof AnimationTransition;
view_utils: typeof view_utils;
};

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

import { AnimationStyles as AnimationStyles_ } from './animation/animation_styles';
import { AnimationTransition } from './animation/animation_transition';
import * as change_detection_util from './change_detection/change_detection_util';

@@ -53,7 +54,3 @@ import * as constants from './change_detection/constants';

ViewType: view_type.ViewType,
MAX_INTERPOLATION_VALUES: view_utils.MAX_INTERPOLATION_VALUES,
checkBinding: view_utils.checkBinding,
flattenNestedViewRenderNodes: view_utils.flattenNestedViewRenderNodes,
interpolate: view_utils.interpolate,
ViewUtils: view_utils.ViewUtils,
view_utils: view_utils,
ViewMetadata: metadata_view.ViewMetadata,

@@ -70,15 +67,2 @@ DebugContext: debug_context.DebugContext,

DebugDomRootRenderer: debug.DebugDomRootRenderer,
EMPTY_ARRAY: view_utils.EMPTY_ARRAY,
EMPTY_MAP: view_utils.EMPTY_MAP,
pureProxy1: view_utils.pureProxy1,
pureProxy2: view_utils.pureProxy2,
pureProxy3: view_utils.pureProxy3,
pureProxy4: view_utils.pureProxy4,
pureProxy5: view_utils.pureProxy5,
pureProxy6: view_utils.pureProxy6,
pureProxy7: view_utils.pureProxy7,
pureProxy8: view_utils.pureProxy8,
pureProxy9: view_utils.pureProxy9,
pureProxy10: view_utils.pureProxy10,
castByValue: view_utils.castByValue,
Console: console.Console,

@@ -104,4 +88,5 @@ reflector: reflection.reflector,

ComponentStillLoadingError: ComponentStillLoadingError,
isPromise: isPromise
isPromise: isPromise,
AnimationTransition: AnimationTransition
};
//# sourceMappingURL=core_private_export.js.map

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

{"__symbolic":"module","version":1,"metadata":{"___core_private__":{"isDefaultChangeDetectionStrategy":{"__symbolic":"reference","module":"./change_detection/constants","name":"isDefaultChangeDetectionStrategy"},"ChangeDetectorStatus":{"__symbolic":"reference","module":"./change_detection/constants","name":"ChangeDetectorStatus"},"constructDependencies":{"__symbolic":"reference","module":"./di/reflective_provider","name":"constructDependencies"},"LifecycleHooks":{"__symbolic":"reference","module":"./metadata/lifecycle_hooks","name":"LifecycleHooks"},"LIFECYCLE_HOOKS_VALUES":{"__symbolic":"reference","module":"./metadata/lifecycle_hooks","name":"LIFECYCLE_HOOKS_VALUES"},"ReflectorReader":{"__symbolic":"reference","module":"./reflection/reflector_reader","name":"ReflectorReader"},"CodegenComponentFactoryResolver":{"__symbolic":"reference","module":"./linker/component_factory_resolver","name":"CodegenComponentFactoryResolver"},"AppElement":{"__symbolic":"reference","module":"./linker/element","name":"AppElement"},"AppView":{"__symbolic":"reference","module":"./linker/view","name":"AppView"},"DebugAppView":{"__symbolic":"reference","module":"./linker/view","name":"DebugAppView"},"NgModuleInjector":{"__symbolic":"reference","module":"./linker/ng_module_factory","name":"NgModuleInjector"},"registerModuleFactory":{"__symbolic":"reference","module":"./linker/ng_module_factory_loader","name":"registerModuleFactory"},"ViewType":{"__symbolic":"reference","module":"./linker/view_type","name":"ViewType"},"MAX_INTERPOLATION_VALUES":{"__symbolic":"reference","module":"./linker/view_utils","name":"MAX_INTERPOLATION_VALUES"},"checkBinding":{"__symbolic":"reference","module":"./linker/view_utils","name":"checkBinding"},"flattenNestedViewRenderNodes":{"__symbolic":"reference","module":"./linker/view_utils","name":"flattenNestedViewRenderNodes"},"interpolate":{"__symbolic":"reference","module":"./linker/view_utils","name":"interpolate"},"ViewUtils":{"__symbolic":"reference","module":"./linker/view_utils","name":"ViewUtils"},"ViewMetadata":{"__symbolic":"reference","module":"./metadata/view","name":"ViewMetadata"},"DebugContext":{"__symbolic":"reference","module":"./linker/debug_context","name":"DebugContext"},"StaticNodeDebugInfo":{"__symbolic":"reference","module":"./linker/debug_context","name":"StaticNodeDebugInfo"},"devModeEqual":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"devModeEqual"},"UNINITIALIZED":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"UNINITIALIZED"},"ValueUnwrapper":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"ValueUnwrapper"},"RenderDebugInfo":{"__symbolic":"reference","module":"./render/api","name":"RenderDebugInfo"},"TemplateRef_":{"__symbolic":"reference","module":"./linker/template_ref","name":"TemplateRef_"},"ReflectionCapabilities":{"__symbolic":"reference","module":"./reflection/reflection_capabilities","name":"ReflectionCapabilities"},"makeDecorator":{"__symbolic":"reference","module":"./util/decorators","name":"makeDecorator"},"DebugDomRootRenderer":{"__symbolic":"reference","module":"./debug/debug_renderer","name":"DebugDomRootRenderer"},"EMPTY_ARRAY":{"__symbolic":"reference","module":"./linker/view_utils","name":"EMPTY_ARRAY"},"EMPTY_MAP":{"__symbolic":"reference","module":"./linker/view_utils","name":"EMPTY_MAP"},"pureProxy1":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy1"},"pureProxy2":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy2"},"pureProxy3":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy3"},"pureProxy4":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy4"},"pureProxy5":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy5"},"pureProxy6":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy6"},"pureProxy7":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy7"},"pureProxy8":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy8"},"pureProxy9":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy9"},"pureProxy10":{"__symbolic":"reference","module":"./linker/view_utils","name":"pureProxy10"},"castByValue":{"__symbolic":"reference","module":"./linker/view_utils","name":"castByValue"},"Console":{"__symbolic":"reference","module":"./console","name":"Console"},"reflector":{"__symbolic":"reference","module":"./reflection/reflection","name":"reflector"},"Reflector":{"__symbolic":"reference","module":"./reflection/reflection","name":"Reflector"},"NoOpAnimationPlayer":{"__symbolic":"reference","module":"./animation/animation_player","name":"NoOpAnimationPlayer"},"AnimationPlayer":{"__symbolic":"reference","module":"./animation/animation_player","name":"AnimationPlayer"},"AnimationSequencePlayer":{"__symbolic":"reference","module":"./animation/animation_sequence_player","name":"AnimationSequencePlayer"},"AnimationGroupPlayer":{"__symbolic":"reference","module":"./animation/animation_group_player","name":"AnimationGroupPlayer"},"AnimationKeyframe":{"__symbolic":"reference","module":"./animation/animation_keyframe","name":"AnimationKeyframe"},"prepareFinalAnimationStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"prepareFinalAnimationStyles"},"balanceAnimationKeyframes":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"balanceAnimationKeyframes"},"flattenStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"flattenStyles"},"clearStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"clearStyles"},"renderStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"renderStyles"},"collectAndResolveStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"collectAndResolveStyles"},"AnimationStyles":{"__symbolic":"reference","module":"./animation/animation_styles","name":"AnimationStyles"},"ANY_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"ANY_STATE"},"DEFAULT_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"DEFAULT_STATE"},"EMPTY_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"EMPTY_STATE"},"FILL_STYLE_FLAG":{"__symbolic":"reference","module":"./animation/animation_constants","name":"FILL_STYLE_FLAG"},"ComponentStillLoadingError":{"__symbolic":"reference","module":"./linker/compiler","name":"ComponentStillLoadingError"},"isPromise":{"__symbolic":"reference","module":"./util/lang","name":"isPromise"}}}}
{"__symbolic":"module","version":1,"metadata":{"___core_private__":{"isDefaultChangeDetectionStrategy":{"__symbolic":"reference","module":"./change_detection/constants","name":"isDefaultChangeDetectionStrategy"},"ChangeDetectorStatus":{"__symbolic":"reference","module":"./change_detection/constants","name":"ChangeDetectorStatus"},"constructDependencies":{"__symbolic":"reference","module":"./di/reflective_provider","name":"constructDependencies"},"LifecycleHooks":{"__symbolic":"reference","module":"./metadata/lifecycle_hooks","name":"LifecycleHooks"},"LIFECYCLE_HOOKS_VALUES":{"__symbolic":"reference","module":"./metadata/lifecycle_hooks","name":"LIFECYCLE_HOOKS_VALUES"},"ReflectorReader":{"__symbolic":"reference","module":"./reflection/reflector_reader","name":"ReflectorReader"},"CodegenComponentFactoryResolver":{"__symbolic":"reference","module":"./linker/component_factory_resolver","name":"CodegenComponentFactoryResolver"},"AppElement":{"__symbolic":"reference","module":"./linker/element","name":"AppElement"},"AppView":{"__symbolic":"reference","module":"./linker/view","name":"AppView"},"DebugAppView":{"__symbolic":"reference","module":"./linker/view","name":"DebugAppView"},"NgModuleInjector":{"__symbolic":"reference","module":"./linker/ng_module_factory","name":"NgModuleInjector"},"registerModuleFactory":{"__symbolic":"reference","module":"./linker/ng_module_factory_loader","name":"registerModuleFactory"},"ViewType":{"__symbolic":"reference","module":"./linker/view_type","name":"ViewType"},"view_utils":{"__symbolic":"reference","module":"./linker/view_utils"},"ViewMetadata":{"__symbolic":"reference","module":"./metadata/view","name":"ViewMetadata"},"DebugContext":{"__symbolic":"reference","module":"./linker/debug_context","name":"DebugContext"},"StaticNodeDebugInfo":{"__symbolic":"reference","module":"./linker/debug_context","name":"StaticNodeDebugInfo"},"devModeEqual":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"devModeEqual"},"UNINITIALIZED":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"UNINITIALIZED"},"ValueUnwrapper":{"__symbolic":"reference","module":"./change_detection/change_detection_util","name":"ValueUnwrapper"},"RenderDebugInfo":{"__symbolic":"reference","module":"./render/api","name":"RenderDebugInfo"},"TemplateRef_":{"__symbolic":"reference","module":"./linker/template_ref","name":"TemplateRef_"},"ReflectionCapabilities":{"__symbolic":"reference","module":"./reflection/reflection_capabilities","name":"ReflectionCapabilities"},"makeDecorator":{"__symbolic":"reference","module":"./util/decorators","name":"makeDecorator"},"DebugDomRootRenderer":{"__symbolic":"reference","module":"./debug/debug_renderer","name":"DebugDomRootRenderer"},"Console":{"__symbolic":"reference","module":"./console","name":"Console"},"reflector":{"__symbolic":"reference","module":"./reflection/reflection","name":"reflector"},"Reflector":{"__symbolic":"reference","module":"./reflection/reflection","name":"Reflector"},"NoOpAnimationPlayer":{"__symbolic":"reference","module":"./animation/animation_player","name":"NoOpAnimationPlayer"},"AnimationPlayer":{"__symbolic":"reference","module":"./animation/animation_player","name":"AnimationPlayer"},"AnimationSequencePlayer":{"__symbolic":"reference","module":"./animation/animation_sequence_player","name":"AnimationSequencePlayer"},"AnimationGroupPlayer":{"__symbolic":"reference","module":"./animation/animation_group_player","name":"AnimationGroupPlayer"},"AnimationKeyframe":{"__symbolic":"reference","module":"./animation/animation_keyframe","name":"AnimationKeyframe"},"prepareFinalAnimationStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"prepareFinalAnimationStyles"},"balanceAnimationKeyframes":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"balanceAnimationKeyframes"},"flattenStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"flattenStyles"},"clearStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"clearStyles"},"renderStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"renderStyles"},"collectAndResolveStyles":{"__symbolic":"reference","module":"./animation/animation_style_util","name":"collectAndResolveStyles"},"AnimationStyles":{"__symbolic":"reference","module":"./animation/animation_styles","name":"AnimationStyles"},"ANY_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"ANY_STATE"},"DEFAULT_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"DEFAULT_STATE"},"EMPTY_STATE":{"__symbolic":"reference","module":"./animation/animation_constants","name":"EMPTY_STATE"},"FILL_STYLE_FLAG":{"__symbolic":"reference","module":"./animation/animation_constants","name":"FILL_STYLE_FLAG"},"ComponentStillLoadingError":{"__symbolic":"reference","module":"./linker/compiler","name":"ComponentStillLoadingError"},"isPromise":{"__symbolic":"reference","module":"./util/lang","name":"isPromise"},"AnimationTransition":{"__symbolic":"reference","module":"./animation/animation_transition","name":"AnimationTransition"}}}}

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

*/
import { isFunction, stringify } from '../facade/lang';
import { stringify } from '../facade/lang';
/**

@@ -40,3 +40,3 @@ * Allows to refer to references which are not yet defined.

export function resolveForwardRef(type) {
if (isFunction(type) && type.hasOwnProperty('__forward_ref__') &&
if (typeof type === 'function' && type.hasOwnProperty('__forward_ref__') &&
type.__forward_ref__ === forwardRef) {

@@ -43,0 +43,0 @@ return type();

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

import { ListWrapper, MapWrapper } from '../facade/collection';
import { isArray, isBlank, isPresent } from '../facade/lang';
import { isBlank, isPresent } from '../facade/lang';
import { reflector } from '../reflection/reflection';

@@ -184,3 +184,3 @@ import { Type } from '../type';

var optional = false;
if (!isArray(metadata)) {
if (!Array.isArray(metadata)) {
if (metadata instanceof Inject) {

@@ -187,0 +187,0 @@ return _createDependency(metadata.token, optional, null, null, depProps);

@@ -5,7 +5,2 @@ export declare class MapWrapper {

}): Map<string, T>;
static toStringMap<T>(m: Map<string, T>): {
[key: string]: T;
};
static createFromPairs(pairs: any[]): Map<any, any>;
static iterable<T>(m: T): T;
static keys<K>(m: Map<K, any>): K[];

@@ -12,0 +7,0 @@ static values<V>(m: Map<any, V>): V[];

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

*/
import { getSymbolIterator, isArray, isBlank, isJsObject, isPresent } from './lang';
// Safari and Internet Explorer do not support the iterable parameter to the
// Map constructor. We work around that by manually adding the items.
var createMapFromPairs = (function () {
try {
if (new Map([[1, 2]]).size === 1) {
return function createMapFromPairs(pairs) { return new Map(pairs); };
}
}
catch (e) {
}
return function createMapAndPopulateFromPairs(pairs) {
var map = new Map();
for (var i = 0; i < pairs.length; i++) {
var pair = pairs[i];
map.set(pair[0], pair[1]);
}
return map;
};
})();
var createMapFromMap = (function () {
try {
if (new Map(new Map())) {
return function createMapFromMap(m) { return new Map(m); };
}
}
catch (e) {
}
return function createMapAndPopulateFromMap(m) {
var map = new Map();
m.forEach(function (v, k) { map.set(k, v); });
return map;
};
})();
var _clearValues = (function () {
if ((new Map()).keys().next) {
return function _clearValues(m) {
var keyIterator = m.keys();
var k;
while (!((k = keyIterator.next()).done)) {
m.set(k.value, null);
}
};
}
else {
return function _clearValuesWithForeEach(m) {
m.forEach(function (v, k) { m.set(k, null); });
};
}
})();
import { getSymbolIterator, isBlank, isJsObject, isPresent } from './lang';
// Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from

@@ -90,9 +41,2 @@ // TODO(mlaval): remove the work around once we have a working polyfill of Array.from

};
MapWrapper.toStringMap = function (m) {
var r = {};
m.forEach(function (v, k) { return r[k] = v; });
return r;
};
MapWrapper.createFromPairs = function (pairs) { return createMapFromPairs(pairs); };
MapWrapper.iterable = function (m) { return m; };
MapWrapper.keys = function (m) { return _arrayFromMap(m, false); };

@@ -256,3 +200,3 @@ MapWrapper.values = function (m) { return _arrayFromMap(m, true); };

var item = source[i];
if (isArray(item)) {
if (Array.isArray(item)) {
_flattenArray(item, target);

@@ -270,3 +214,3 @@ }

return false;
return isArray(obj) ||
return Array.isArray(obj) ||
(!(obj instanceof Map) &&

@@ -290,3 +234,3 @@ getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop

export function iterateListLike(obj, fn) {
if (isArray(obj)) {
if (Array.isArray(obj)) {
for (var i = 0; i < obj.length; i++) {

@@ -298,3 +242,3 @@ fn(obj[i]);

var iterator = obj[getSymbolIterator()]();
var item;
var item = void 0;
while (!((item = iterator.next()).done)) {

@@ -301,0 +245,0 @@ fn(item.value);

@@ -36,36 +36,12 @@

export declare function isBlank(obj: any): boolean;
export declare function isBoolean(obj: any): boolean;
export declare function isNumber(obj: any): boolean;
export declare function isString(obj: any): obj is string;
export declare function isFunction(obj: any): boolean;
export declare function isType(obj: any): boolean;
export declare function isStringMap(obj: any): obj is Object;
export declare function isStrictStringMap(obj: any): boolean;
export declare function isArray(obj: any): boolean;
export declare function isDate(obj: any): obj is Date;
export declare function noop(): void;
export declare function stringify(token: any): string;
export declare class StringJoiner {
parts: string[];
constructor(parts?: string[]);
add(part: string): void;
toString(): string;
}
export declare class NumberWrapper {
static toFixed(n: number, fractionDigits: number): string;
static equal(a: number, b: number): boolean;
static parseIntAutoRadix(text: string): number;
static parseInt(text: string, radix: number): number;
static NaN: number;
static isNumeric(value: any): boolean;
static isNaN(value: any): boolean;
static isInteger(value: any): boolean;
}
export declare var RegExp: RegExpConstructor;
export declare class FunctionWrapper {
static apply(fn: Function, posArgs: any): any;
static bind(fn: Function, scope: any): Function;
}
export declare function looseIdentical(a: any, b: any): boolean;
export declare function getMapKey<T>(value: T): T;
export declare function normalizeBlank(obj: Object): any;

@@ -76,14 +52,5 @@ export declare function normalizeBool(obj: boolean): boolean;

export declare function warn(obj: Error | Object): void;
export declare class Json {
static parse(s: string): Object;
static stringify(data: Object): string;
}
export declare function setValueOnPath(global: any, path: string, value: any): void;
export declare function getSymbolIterator(): string | symbol;
export declare function evalExpression(sourceUrl: string, expr: string, declarations: string, vars: {
[key: string]: any;
}): any;
export declare function isPrimitive(obj: any): boolean;
export declare function hasConstructor(value: Object, type: any): boolean;
export declare function escape(s: string): string;
export declare function escapeRegExp(s: string): string;

@@ -43,27 +43,6 @@ /**

}
export function isBoolean(obj) {
return typeof obj === 'boolean';
}
export function isNumber(obj) {
return typeof obj === 'number';
}
export function isString(obj) {
return typeof obj === 'string';
}
export function isFunction(obj) {
return typeof obj === 'function';
}
export function isType(obj) {
return isFunction(obj);
}
export function isStringMap(obj) {
return typeof obj === 'object' && obj !== null;
}
var STRING_MAP_PROTO = Object.getPrototypeOf({});
export function isStrictStringMap(obj) {
return isStringMap(obj) && Object.getPrototypeOf(obj) === STRING_MAP_PROTO;
return typeof obj === 'object' && obj !== null && Object.getPrototypeOf(obj) === STRING_MAP_PROTO;
}
export function isArray(obj) {
return Array.isArray(obj);
}
export function isDate(obj) {

@@ -90,16 +69,5 @@ return obj instanceof Date && !isNaN(obj.valueOf());

}
export var StringJoiner = (function () {
function StringJoiner(parts) {
if (parts === void 0) { parts = []; }
this.parts = parts;
}
StringJoiner.prototype.add = function (part) { this.parts.push(part); };
StringJoiner.prototype.toString = function () { return this.parts.join(''); };
return StringJoiner;
}());
export var NumberWrapper = (function () {
function NumberWrapper() {
}
NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };
NumberWrapper.equal = function (a, b) { return a === b; };
NumberWrapper.parseIntAutoRadix = function (text) {

@@ -131,20 +99,5 @@ var result = parseInt(text);

};
Object.defineProperty(NumberWrapper, "NaN", {
get: function () { return NaN; },
enumerable: true,
configurable: true
});
NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };
NumberWrapper.isNaN = function (value) { return isNaN(value); };
NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };
return NumberWrapper;
}());
export var RegExp = _global.RegExp;
export var FunctionWrapper = (function () {
function FunctionWrapper() {
}
FunctionWrapper.apply = function (fn, posArgs) { return fn.apply(null, posArgs); };
FunctionWrapper.bind = function (fn, scope) { return fn.bind(scope); };
return FunctionWrapper;
}());
// JS has NaN !== NaN

@@ -154,7 +107,2 @@ export function looseIdentical(a, b) {

}
// JS considers NaN is the same as NaN for map Key (while NaN !== NaN otherwise)
// see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
export function getMapKey(value) {
return value;
}
export function normalizeBlank(obj) {

@@ -175,13 +123,2 @@ return isBlank(obj) ? null : obj;

}
// Can't be all uppercase as our transpiler would think it is a special directive...
export var Json = (function () {
function Json() {
}
Json.parse = function (s) { return _global.JSON.parse(s); };
Json.stringify = function (data) {
// Dart doesn't take 3 arguments
return _global.JSON.stringify(data, null, 2);
};
return Json;
}());
export function setValueOnPath(global, path, value) {

@@ -224,21 +161,5 @@ var parts = path.split('.');

}
export function evalExpression(sourceUrl, expr, declarations, vars) {
var fnBody = declarations + "\nreturn " + expr + "\n//# sourceURL=" + sourceUrl;
var fnArgNames = [];
var fnArgValues = [];
for (var argName in vars) {
fnArgNames.push(argName);
fnArgValues.push(vars[argName]);
}
return new (Function.bind.apply(Function, [void 0].concat(fnArgNames.concat(fnBody))))().apply(void 0, fnArgValues);
}
export function isPrimitive(obj) {
return !isJsObject(obj);
}
export function hasConstructor(value, type) {
return value.constructor === type;
}
export function escape(s) {
return _global.encodeURI(s);
}
export function escapeRegExp(s) {

@@ -245,0 +166,0 @@ return s.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');

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

{"__symbolic":"module","version":1,"metadata":{"getTypeNameForDebugging":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"type"},"index":"name"},"right":{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25}}},"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":80,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":84,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":88,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":92,"character":9},"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":100,"character":9},"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":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"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"}}]}}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"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":198,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":198,"character":45},"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":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"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":216,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":216,"character":51},"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"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":300,"character":19}}}}
{"__symbolic":"module","version":1,"metadata":{"getTypeNameForDebugging":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"type"},"index":"name"},"right":{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25}}},"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}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":81,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"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"}}]}}}},"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":143,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":143,"character":45},"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"}]}}}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"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":155,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":155,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":210,"character":19}}}}

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

import { SimpleChange } from '../change_detection/change_detection';
import { ViewEncapsulation } from '../metadata/view';
import { RenderComponentType, RootRenderer } from '../render/api';
import { RenderComponentType, Renderer, RootRenderer } from '../render/api';
import { Sanitizer } from '../security';

@@ -35,1 +36,5 @@ export declare class ViewUtils {

export declare function pureProxy10<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, R>(fn: (p0: P0, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9) => R): (p0: P0, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, p7: P7, p8: P8, p9: P9) => R;
export declare function setBindingDebugInfoForChanges(renderer: Renderer, el: any, changes: {
[key: string]: SimpleChange;
}): void;
export declare function setBindingDebugInfo(renderer: Renderer, el: any, propName: string, value: any): void;

@@ -316,2 +316,25 @@ /**

}
export function setBindingDebugInfoForChanges(renderer, el, changes) {
Object.keys(changes).forEach(function (propName) {
setBindingDebugInfo(renderer, el, propName, changes[propName].currentValue);
});
}
export function setBindingDebugInfo(renderer, el, propName, value) {
try {
renderer.setBindingDebugInfo(el, "ng-reflect-" + camelCaseToDashCase(propName), value ? value.toString() : null);
}
catch (e) {
renderer.setBindingDebugInfo(el, "ng-reflect-" + camelCaseToDashCase(propName), '[ERROR] Exception while trying to serialize the value');
}
}
var CAMEL_CASE_REGEXP = /([A-Z])/g;
function camelCaseToDashCase(input) {
return input.replace(CAMEL_CASE_REGEXP, function () {
var m = [];
for (var _i = 0; _i < arguments.length; _i++) {
m[_i - 0] = arguments[_i];
}
return '-' + m[1].toLowerCase();
});
}
//# sourceMappingURL=view_utils.js.map

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

{"__symbolic":"module","version":1,"metadata":{"ViewUtils":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../di","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../di","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"../application_tokens","name":"APP_ID"}]}],null],"parameters":[{"__symbolic":"reference","module":"../render/api","name":"RootRenderer"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../security","name":"Sanitizer"}]}],"createRenderComponentType":[{"__symbolic":"method"}],"renderComponent":[{"__symbolic":"method"}]}},"flattenNestedViewRenderNodes":{"__symbolic":"function","parameters":["nodes"],"value":{"__symbolic":"error","message":"Reference to a non-exported function","line":52,"character":9,"context":{"name":"_flattenNestedViewRenderNodes"}}},"MAX_INTERPOLATION_VALUES":9,"castByValue":{"__symbolic":"function","parameters":["input","value"],"value":{"__symbolic":"reference","name":"input"}},"EMPTY_ARRAY":[],"EMPTY_MAP":{}}}
{"__symbolic":"module","version":1,"metadata":{"ViewUtils":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../di","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"../di","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"../application_tokens","name":"APP_ID"}]}],null],"parameters":[{"__symbolic":"reference","module":"../render/api","name":"RootRenderer"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"../security","name":"Sanitizer"}]}],"createRenderComponentType":[{"__symbolic":"method"}],"renderComponent":[{"__symbolic":"method"}]}},"flattenNestedViewRenderNodes":{"__symbolic":"function","parameters":["nodes"],"value":{"__symbolic":"error","message":"Reference to a non-exported function","line":53,"character":9,"context":{"name":"_flattenNestedViewRenderNodes"}}},"MAX_INTERPOLATION_VALUES":9,"castByValue":{"__symbolic":"function","parameters":["input","value"],"value":{"__symbolic":"reference","name":"input"}},"EMPTY_ARRAY":[],"EMPTY_MAP":{}}}

@@ -1,7 +0,12 @@

import { AnimationPlayer } from '../animation/animation_player';
import { AnimationTransitionEvent } from '../animation/animation_transition_event';
import { ViewAnimationMap } from '../animation/view_animation_map';
/**
* @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
*/
import { ChangeDetectorRef, ChangeDetectorStatus } from '../change_detection/change_detection';
import { Injector } from '../di/injector';
import { RenderComponentType, RenderDebugInfo, Renderer } from '../render/api';
import { AnimationViewContext } from './animation_view_context';
import { DebugContext, StaticNodeDebugInfo } from './debug_context';

@@ -36,11 +41,7 @@ import { AppElement } from './element';

private _hasExternalHostElement;
animationPlayers: ViewAnimationMap;
private _animationListeners;
private _animationContext;
context: T;
constructor(clazz: any, componentType: RenderComponentType, type: ViewType, viewUtils: ViewUtils, parentInjector: Injector, declarationAppElement: AppElement, cdMode: ChangeDetectorStatus);
animationContext: AnimationViewContext;
destroyed: boolean;
cancelActiveAnimation(element: any, animationName: string, removeAllAnimations?: boolean): void;
queueAnimation(element: any, animationName: string, player: AnimationPlayer, totalTime: number, fromState: string, toState: string): void;
triggerAnimationOutput(element: any, animationName: string, phase: string, event: AnimationTransitionEvent): void;
registerAnimationOutput(element: any, eventName: string, eventPhase: string, eventHandler: Function): void;
create(context: T, givenProjectableNodes: Array<any | any[]>, rootSelectorOrNode: string | any): AppElement;

@@ -47,0 +48,0 @@ /**

@@ -13,6 +13,2 @@ /**

};
import { AnimationGroupPlayer } from '../animation/animation_group_player';
import { queueAnimation } from '../animation/animation_queue';
import { AnimationTransitionEvent } from '../animation/animation_transition_event';
import { ViewAnimationMap } from '../animation/view_animation_map';
import { ChangeDetectorStatus } from '../change_detection/change_detection';

@@ -22,2 +18,3 @@ import { ListWrapper } from '../facade/collection';

import { wtfCreateScope, wtfLeave } from '../profile/profile';
import { AnimationViewContext } from './animation_view_context';
import { DebugContext } from './debug_context';

@@ -48,4 +45,2 @@ import { AppElement } from './element';

this.numberOfChecks = 0;
this.animationPlayers = new ViewAnimationMap();
this._animationListeners = new Map();
this.ref = new ViewRef_(this);

@@ -59,2 +54,12 @@ if (type === ViewType.COMPONENT || type === ViewType.HOST) {

}
Object.defineProperty(AppView.prototype, "animationContext", {
get: function () {
if (!this._animationContext) {
this._animationContext = new AnimationViewContext();
}
return this._animationContext;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AppView.prototype, "destroyed", {

@@ -65,47 +70,2 @@ get: function () { return this.cdMode === ChangeDetectorStatus.Destroyed; },

});
AppView.prototype.cancelActiveAnimation = function (element, animationName, removeAllAnimations) {
if (removeAllAnimations === void 0) { removeAllAnimations = false; }
if (removeAllAnimations) {
this.animationPlayers.findAllPlayersByElement(element).forEach(function (player) { return player.destroy(); });
}
else {
var player = this.animationPlayers.find(element, animationName);
if (isPresent(player)) {
player.destroy();
}
}
};
AppView.prototype.queueAnimation = function (element, animationName, player, totalTime, fromState, toState) {
var _this = this;
queueAnimation(player);
var event = new AnimationTransitionEvent({ 'fromState': fromState, 'toState': toState, 'totalTime': totalTime });
this.animationPlayers.set(element, animationName, player);
player.onDone(function () {
// TODO: make this into a datastructure for done|start
_this.triggerAnimationOutput(element, animationName, 'done', event);
_this.animationPlayers.remove(element, animationName);
});
player.onStart(function () { _this.triggerAnimationOutput(element, animationName, 'start', event); });
};
AppView.prototype.triggerAnimationOutput = function (element, animationName, phase, event) {
var listeners = this._animationListeners.get(element);
if (isPresent(listeners) && listeners.length) {
for (var i = 0; i < listeners.length; i++) {
var listener = listeners[i];
// we check for both the name in addition to the phase in the event
// that there may be more than one @trigger on the same element
if (listener.eventName === animationName && listener.eventPhase === phase) {
listener.handler(event);
break;
}
}
}
};
AppView.prototype.registerAnimationOutput = function (element, eventName, eventPhase, eventHandler) {
var animations = this._animationListeners.get(element);
if (!isPresent(animations)) {
this._animationListeners.set(element, animations = []);
}
animations.push(new _AnimationOutputHandler(eventName, eventPhase, eventHandler));
};
AppView.prototype.create = function (context, givenProjectableNodes, rootSelectorOrNode) {

@@ -210,8 +170,7 @@ this.context = context;

this.dirtyParentQueriesInternal();
if (this.animationPlayers.length == 0) {
this.renderer.destroyView(hostElement, this.allNodes);
if (this._animationContext) {
this._animationContext.onAllActiveAnimationsDone(function () { return _this.renderer.destroyView(hostElement, _this.allNodes); });
}
else {
var player = new AnimationGroupPlayer(this.animationPlayers.getAllPlayers());
player.onDone(function () { _this.renderer.destroyView(hostElement, _this.allNodes); });
this.renderer.destroyView(hostElement, this.allNodes);
}

@@ -230,8 +189,7 @@ };

this.detachInternal();
if (this.animationPlayers.length == 0) {
this.renderer.detachView(this.flatRootNodes);
if (this._animationContext) {
this._animationContext.onAllActiveAnimationsDone(function () { return _this.renderer.detachView(_this.flatRootNodes); });
}
else {
var player = new AnimationGroupPlayer(this.animationPlayers.getAllPlayers());
player.onDone(function () { _this.renderer.detachView(_this.flatRootNodes); });
this.renderer.detachView(this.flatRootNodes);
}

@@ -440,10 +398,2 @@ };

}
var _AnimationOutputHandler = (function () {
function _AnimationOutputHandler(eventName, eventPhase, handler) {
this.eventName = eventName;
this.eventPhase = eventPhase;
this.handler = handler;
}
return _AnimationOutputHandler;
}());
//# sourceMappingURL=view.js.map

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

factory(type: Type<any>): Function;
interfaces(type: Type<any>): any[];
hasLifecycleHook(type: any, lcInterface: Type<any>, lcProperty: string): boolean;
hasLifecycleHook(type: any, lcProperty: string): boolean;
parameters(type: Type<any>): any[][];

@@ -17,0 +16,0 @@ annotations(type: Type<any>): any[];

@@ -14,4 +14,3 @@ import { Type } from '../type';

};
interfaces(type: Type<any>): any[];
hasLifecycleHook(type: any, lcInterface: Type<any>, lcProperty: string): boolean;
hasLifecycleHook(type: any, lcProperty: string): boolean;
getter(name: string): GetterFn;

@@ -18,0 +17,0 @@ setter(name: string): SetterFn;

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

*/
import { global, isFunction, isPresent, stringify } from '../facade/lang';
import { global, isPresent, stringify } from '../facade/lang';
import { Type } from '../type';

@@ -80,3 +80,3 @@ export var ReflectionCapabilities = (function () {

var annotations = typeOrFunc.annotations;
if (isFunction(annotations) && annotations.annotations) {
if (typeof annotations === 'function' && annotations.annotations) {
annotations = annotations.annotations;

@@ -102,3 +102,3 @@ }

var propMetadata = typeOrFunc.propMetadata;
if (isFunction(propMetadata) && propMetadata.propMetadata) {
if (typeof propMetadata === 'function' && propMetadata.propMetadata) {
propMetadata = propMetadata.propMetadata;

@@ -125,11 +125,4 @@ }

};
// Note: JavaScript does not support to query for interfaces during runtime.
// However, we can't throw here as the reflector will always call this method
// when asked for a lifecycle interface as this is what we check in Dart.
ReflectionCapabilities.prototype.interfaces = function (type) { return []; };
ReflectionCapabilities.prototype.hasLifecycleHook = function (type, lcInterface, lcProperty) {
if (!(type instanceof Type))
return false;
var proto = type.prototype;
return !!proto[lcProperty];
ReflectionCapabilities.prototype.hasLifecycleHook = function (type, lcProperty) {
return type instanceof Type && lcProperty in type.prototype;
};

@@ -136,0 +129,0 @@ ReflectionCapabilities.prototype.getter = function (name) { return new Function('o', 'return o.' + name + ';'); };

import { Reflector } from './reflector';
export { ReflectionInfo, Reflector } from './reflector';
export { Reflector } from './reflector';
/**

@@ -4,0 +4,0 @@ * The {@link Reflector} used internally in Angular to access metadata

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

import { Reflector } from './reflector';
export { ReflectionInfo, Reflector } from './reflector';
export { Reflector } from './reflector';
/**

@@ -13,0 +13,0 @@ * The {@link Reflector} used internally in Angular to access metadata

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

{"__symbolic":"module","version":1,"metadata":{"reflector":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflector","name":"Reflector"},"arguments":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflection_capabilities","name":"ReflectionCapabilities"}}]}},"exports":[{"from":"./reflector","export":["ReflectionInfo","Reflector"]}]}
{"__symbolic":"module","version":1,"metadata":{"reflector":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflector","name":"Reflector"},"arguments":[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./reflection_capabilities","name":"ReflectionCapabilities"}}]}},"exports":[{"from":"./reflector","export":["Reflector"]}]}

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

/**
* @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
*/
import { Type } from '../type';

@@ -8,17 +15,2 @@ import { PlatformReflectionCapabilities } from './platform_reflection_capabilities';

/**
* Reflective information about a symbol, including annotations, interfaces, and other metadata.
*/
export declare class ReflectionInfo {
annotations: any[];
parameters: any[][];
factory: Function;
interfaces: any[];
propMetadata: {
[key: string]: any[];
};
constructor(annotations?: any[], parameters?: any[][], factory?: Function, interfaces?: any[], propMetadata?: {
[key: string]: any[];
});
}
/**
* Provides access to reflection data about symbols. Used internally by Angular

@@ -31,25 +23,2 @@ * to power dependency injection and compilation.

updateCapabilities(caps: PlatformReflectionCapabilities): void;
isReflectionEnabled(): boolean;
/**
* Causes `this` reflector to track keys used to access
* {@link ReflectionInfo} objects.
*/
trackUsage(): void;
/**
* Lists types for which reflection information was not requested since
* {@link #trackUsage} was called. This list could later be audited as
* potential dead code.
*/
listUnusedKeys(): any[];
registerFunction(func: Function, funcInfo: ReflectionInfo): void;
registerType(type: Type<any>, typeInfo: ReflectionInfo): void;
registerGetters(getters: {
[key: string]: GetterFn;
}): void;
registerSetters(setters: {
[key: string]: SetterFn;
}): void;
registerMethods(methods: {
[key: string]: MethodFn;
}): void;
factory(type: Type<any>): Function;

@@ -61,4 +30,3 @@ parameters(typeOrFunc: Type<any>): any[][];

};
interfaces(type: Type<any>): any[];
hasLifecycleHook(type: any, lcInterface: Type<any>, lcProperty: string): boolean;
hasLifecycleHook(type: any, lcProperty: string): boolean;
getter(name: string): GetterFn;

@@ -65,0 +33,0 @@ setter(name: string): SetterFn;

@@ -13,18 +13,4 @@ /**

};
import { MapWrapper } from '../facade/collection';
import { ReflectorReader } from './reflector_reader';
/**
* Reflective information about a symbol, including annotations, interfaces, and other metadata.
*/
export var ReflectionInfo = (function () {
function ReflectionInfo(annotations, parameters, factory, interfaces, propMetadata) {
this.annotations = annotations;
this.parameters = parameters;
this.factory = factory;
this.interfaces = interfaces;
this.propMetadata = propMetadata;
}
return ReflectionInfo;
}());
/**
* Provides access to reflection data about symbols. Used internally by Angular

@@ -38,99 +24,20 @@ * to power dependency injection and compilation.

this.reflectionCapabilities = reflectionCapabilities;
/** @internal */
this._injectableInfo = new Map();
/** @internal */
this._getters = new Map();
/** @internal */
this._setters = new Map();
/** @internal */
this._methods = new Map();
/** @internal */
this._usedKeys = null;
}
Reflector.prototype.updateCapabilities = function (caps) { this.reflectionCapabilities = caps; };
Reflector.prototype.isReflectionEnabled = function () { return this.reflectionCapabilities.isReflectionEnabled(); };
/**
* Causes `this` reflector to track keys used to access
* {@link ReflectionInfo} objects.
*/
Reflector.prototype.trackUsage = function () { this._usedKeys = new Set(); };
/**
* Lists types for which reflection information was not requested since
* {@link #trackUsage} was called. This list could later be audited as
* potential dead code.
*/
Reflector.prototype.listUnusedKeys = function () {
var _this = this;
if (!this._usedKeys) {
throw new Error('Usage tracking is disabled');
}
var allTypes = MapWrapper.keys(this._injectableInfo);
return allTypes.filter(function (key) { return !_this._usedKeys.has(key); });
};
Reflector.prototype.registerFunction = function (func, funcInfo) {
this._injectableInfo.set(func, funcInfo);
};
Reflector.prototype.registerType = function (type, typeInfo) {
this._injectableInfo.set(type, typeInfo);
};
Reflector.prototype.registerGetters = function (getters) { _mergeMaps(this._getters, getters); };
Reflector.prototype.registerSetters = function (setters) { _mergeMaps(this._setters, setters); };
Reflector.prototype.registerMethods = function (methods) { _mergeMaps(this._methods, methods); };
Reflector.prototype.factory = function (type) {
if (this._containsReflectionInfo(type)) {
return this._getReflectionInfo(type).factory || null;
}
return this.reflectionCapabilities.factory(type);
};
Reflector.prototype.factory = function (type) { return this.reflectionCapabilities.factory(type); };
Reflector.prototype.parameters = function (typeOrFunc) {
if (this._injectableInfo.has(typeOrFunc)) {
return this._getReflectionInfo(typeOrFunc).parameters || [];
}
return this.reflectionCapabilities.parameters(typeOrFunc);
};
Reflector.prototype.annotations = function (typeOrFunc) {
if (this._injectableInfo.has(typeOrFunc)) {
return this._getReflectionInfo(typeOrFunc).annotations || [];
}
return this.reflectionCapabilities.annotations(typeOrFunc);
};
Reflector.prototype.propMetadata = function (typeOrFunc) {
if (this._injectableInfo.has(typeOrFunc)) {
return this._getReflectionInfo(typeOrFunc).propMetadata || {};
}
return this.reflectionCapabilities.propMetadata(typeOrFunc);
};
Reflector.prototype.interfaces = function (type) {
if (this._injectableInfo.has(type)) {
return this._getReflectionInfo(type).interfaces || [];
}
return this.reflectionCapabilities.interfaces(type);
Reflector.prototype.hasLifecycleHook = function (type, lcProperty) {
return this.reflectionCapabilities.hasLifecycleHook(type, lcProperty);
};
Reflector.prototype.hasLifecycleHook = function (type, lcInterface, lcProperty) {
if (this.interfaces(type).indexOf(lcInterface) !== -1) {
return true;
}
return this.reflectionCapabilities.hasLifecycleHook(type, lcInterface, lcProperty);
};
Reflector.prototype.getter = function (name) {
return this._getters.has(name) ? this._getters.get(name) :
this.reflectionCapabilities.getter(name);
};
Reflector.prototype.setter = function (name) {
return this._setters.has(name) ? this._setters.get(name) :
this.reflectionCapabilities.setter(name);
};
Reflector.prototype.method = function (name) {
return this._methods.has(name) ? this._methods.get(name) :
this.reflectionCapabilities.method(name);
};
/** @internal */
Reflector.prototype._getReflectionInfo = function (typeOrFunc) {
if (this._usedKeys) {
this._usedKeys.add(typeOrFunc);
}
return this._injectableInfo.get(typeOrFunc);
};
/** @internal */
Reflector.prototype._containsReflectionInfo = function (typeOrFunc) { return this._injectableInfo.has(typeOrFunc); };
Reflector.prototype.getter = function (name) { return this.reflectionCapabilities.getter(name); };
Reflector.prototype.setter = function (name) { return this.reflectionCapabilities.setter(name); };
Reflector.prototype.method = function (name) { return this.reflectionCapabilities.method(name); };
Reflector.prototype.importUri = function (type) { return this.reflectionCapabilities.importUri(type); };

@@ -145,5 +52,2 @@ Reflector.prototype.resolveIdentifier = function (name, moduleUrl, runtime) {

}(ReflectorReader));
function _mergeMaps(target, config) {
Object.keys(config).forEach(function (k) { target.set(k, config[k]); });
}
//# sourceMappingURL=reflector.js.map

@@ -200,3 +200,3 @@ /**

function makeMetadataCtor(props) {
function ctor() {
return function ctor() {
var _this = this;

@@ -211,3 +211,3 @@ var args = [];

// plain parameter
_this[prop[0]] = !argVal || argVal === undefined ? prop[1] : argVal;
_this[prop[0]] = argVal === undefined ? prop[1] : argVal;
}

@@ -217,8 +217,7 @@ else {

_this[propName] =
!argVal || argVal[propName] === undefined ? prop[propName] : argVal[propName];
argVal && argVal.hasOwnProperty(propName) ? argVal[propName] : prop[propName];
}
}
});
}
return ctor;
};
}

@@ -274,3 +273,3 @@ export function makeParamDecorator(name, props, parentClass) {

var meta = Reflect.getOwnMetadata('propMetadata', target.constructor) || {};
meta[name] = meta[name] || [];
meta[name] = meta.hasOwnProperty(name) && meta[name] || [];
meta[name].unshift(decoratorInstance);

@@ -277,0 +276,0 @@ Reflect.defineMetadata('propMetadata', meta, target.constructor);

@@ -36,36 +36,12 @@

export declare function isBlank(obj: any): boolean;
export declare function isBoolean(obj: any): boolean;
export declare function isNumber(obj: any): boolean;
export declare function isString(obj: any): obj is string;
export declare function isFunction(obj: any): boolean;
export declare function isType(obj: any): boolean;
export declare function isStringMap(obj: any): obj is Object;
export declare function isStrictStringMap(obj: any): boolean;
export declare function isArray(obj: any): boolean;
export declare function isDate(obj: any): obj is Date;
export declare function noop(): void;
export declare function stringify(token: any): string;
export declare class StringJoiner {
parts: string[];
constructor(parts?: string[]);
add(part: string): void;
toString(): string;
}
export declare class NumberWrapper {
static toFixed(n: number, fractionDigits: number): string;
static equal(a: number, b: number): boolean;
static parseIntAutoRadix(text: string): number;
static parseInt(text: string, radix: number): number;
static NaN: number;
static isNumeric(value: any): boolean;
static isNaN(value: any): boolean;
static isInteger(value: any): boolean;
}
export declare var RegExp: RegExpConstructor;
export declare class FunctionWrapper {
static apply(fn: Function, posArgs: any): any;
static bind(fn: Function, scope: any): Function;
}
export declare function looseIdentical(a: any, b: any): boolean;
export declare function getMapKey<T>(value: T): T;
export declare function normalizeBlank(obj: Object): any;

@@ -76,14 +52,5 @@ export declare function normalizeBool(obj: boolean): boolean;

export declare function warn(obj: Error | Object): void;
export declare class Json {
static parse(s: string): Object;
static stringify(data: Object): string;
}
export declare function setValueOnPath(global: any, path: string, value: any): void;
export declare function getSymbolIterator(): string | symbol;
export declare function evalExpression(sourceUrl: string, expr: string, declarations: string, vars: {
[key: string]: any;
}): any;
export declare function isPrimitive(obj: any): boolean;
export declare function hasConstructor(value: Object, type: any): boolean;
export declare function escape(s: string): string;
export declare function escapeRegExp(s: string): string;

@@ -43,27 +43,6 @@ /**

}
export function isBoolean(obj) {
return typeof obj === 'boolean';
}
export function isNumber(obj) {
return typeof obj === 'number';
}
export function isString(obj) {
return typeof obj === 'string';
}
export function isFunction(obj) {
return typeof obj === 'function';
}
export function isType(obj) {
return isFunction(obj);
}
export function isStringMap(obj) {
return typeof obj === 'object' && obj !== null;
}
var STRING_MAP_PROTO = Object.getPrototypeOf({});
export function isStrictStringMap(obj) {
return isStringMap(obj) && Object.getPrototypeOf(obj) === STRING_MAP_PROTO;
return typeof obj === 'object' && obj !== null && Object.getPrototypeOf(obj) === STRING_MAP_PROTO;
}
export function isArray(obj) {
return Array.isArray(obj);
}
export function isDate(obj) {

@@ -90,16 +69,5 @@ return obj instanceof Date && !isNaN(obj.valueOf());

}
export var StringJoiner = (function () {
function StringJoiner(parts) {
if (parts === void 0) { parts = []; }
this.parts = parts;
}
StringJoiner.prototype.add = function (part) { this.parts.push(part); };
StringJoiner.prototype.toString = function () { return this.parts.join(''); };
return StringJoiner;
}());
export var NumberWrapper = (function () {
function NumberWrapper() {
}
NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };
NumberWrapper.equal = function (a, b) { return a === b; };
NumberWrapper.parseIntAutoRadix = function (text) {

@@ -131,20 +99,5 @@ var result = parseInt(text);

};
Object.defineProperty(NumberWrapper, "NaN", {
get: function () { return NaN; },
enumerable: true,
configurable: true
});
NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };
NumberWrapper.isNaN = function (value) { return isNaN(value); };
NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };
return NumberWrapper;
}());
export var RegExp = _global.RegExp;
export var FunctionWrapper = (function () {
function FunctionWrapper() {
}
FunctionWrapper.apply = function (fn, posArgs) { return fn.apply(null, posArgs); };
FunctionWrapper.bind = function (fn, scope) { return fn.bind(scope); };
return FunctionWrapper;
}());
// JS has NaN !== NaN

@@ -154,7 +107,2 @@ export function looseIdentical(a, b) {

}
// JS considers NaN is the same as NaN for map Key (while NaN !== NaN otherwise)
// see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
export function getMapKey(value) {
return value;
}
export function normalizeBlank(obj) {

@@ -175,13 +123,2 @@ return isBlank(obj) ? null : obj;

}
// Can't be all uppercase as our transpiler would think it is a special directive...
export var Json = (function () {
function Json() {
}
Json.parse = function (s) { return _global.JSON.parse(s); };
Json.stringify = function (data) {
// Dart doesn't take 3 arguments
return _global.JSON.stringify(data, null, 2);
};
return Json;
}());
export function setValueOnPath(global, path, value) {

@@ -224,21 +161,5 @@ var parts = path.split('.');

}
export function evalExpression(sourceUrl, expr, declarations, vars) {
var fnBody = declarations + "\nreturn " + expr + "\n//# sourceURL=" + sourceUrl;
var fnArgNames = [];
var fnArgValues = [];
for (var argName in vars) {
fnArgNames.push(argName);
fnArgValues.push(vars[argName]);
}
return new (Function.bind.apply(Function, [void 0].concat(fnArgNames.concat(fnBody))))().apply(void 0, fnArgValues);
}
export function isPrimitive(obj) {
return !isJsObject(obj);
}
export function hasConstructor(value, type) {
return value.constructor === type;
}
export function escape(s) {
return _global.encodeURI(s);
}
export function escapeRegExp(s) {

@@ -245,0 +166,0 @@ return s.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');

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

{"__symbolic":"module","version":1,"metadata":{"getTypeNameForDebugging":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"type"},"index":"name"},"right":{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25}}},"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":80,"character":9},"right":"boolean"}},"isNumber":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":84,"character":9},"right":"number"}},"isString":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":88,"character":9},"right":"string"}},"isFunction":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":92,"character":9},"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":100,"character":9},"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":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"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"}}]}}}},"RegExp":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}},"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":198,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":198,"character":45},"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":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"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":216,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":216,"character":51},"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"}}},"escape":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":55,"character":4,"context":{"name":"_global"}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":300,"character":19}}}}
{"__symbolic":"module","version":1,"metadata":{"getTypeNameForDebugging":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"type"},"index":"name"},"right":{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25}}},"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}}},"isStrictStringMap":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":81,"character":9},"right":"object"},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"obj"},"right":null}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"getPrototypeOf"},"arguments":[{}]}}}},"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"}}]}}}},"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":143,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":143,"character":45},"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"}]}}}},"normalizeBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":null,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"normalizeBool":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isBlank"},"arguments":[{"__symbolic":"reference","name":"obj"}]},"thenExpression":false,"elseExpression":{"__symbolic":"reference","name":"obj"}}},"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":155,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":155,"character":51},"right":"object"}}}},"isPrimitive":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"isJsObject"},"arguments":[{"__symbolic":"reference","name":"obj"}]}}},"escapeRegExp":{"__symbolic":"function","parameters":["s"],"value":{"__symbolic":"error","message":"Expression form not supported","line":210,"character":19}}}}

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

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