@angular/core
Advanced tools
Comparing version 2.2.0-beta.0 to 2.2.0-beta.1
/** | ||
* @license Angular v2.2.0-beta.0 | ||
* @license Angular v2.2.0-beta.1 | ||
* (c) 2010-2016 Google, Inc. https://angular.io/ | ||
@@ -112,3 +112,3 @@ * License: MIT | ||
function isPresent(obj) { | ||
return obj !== undefined && obj !== null; | ||
return obj != null; | ||
} | ||
@@ -115,0 +115,0 @@ function stringify(token) { |
{ | ||
"name": "@angular/core", | ||
"version": "2.2.0-beta.0", | ||
"version": "2.2.0-beta.1", | ||
"description": "Angular - the core framework", | ||
@@ -5,0 +5,0 @@ "main": "bundles/core.umd.js", |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { ListWrapper, StringMapWrapper } from '../facade/collection'; | ||
import { StringMapWrapper } from '../facade/collection'; | ||
import { isPresent } from '../facade/lang'; | ||
@@ -47,3 +47,3 @@ import { FILL_STYLE_FLAG } from './animation_constants'; | ||
var finalKeyframe = keyframes[limit]; | ||
ListWrapper.insert(finalKeyframe.styles.styles, 0, finalStateStyles); | ||
finalKeyframe.styles.styles.unshift(finalStateStyles); | ||
var flatenedFinalKeyframeStyles = flattenStyles(finalKeyframe.styles.styles); | ||
@@ -50,0 +50,0 @@ var extraFinalKeyframeStyles = {}; |
@@ -9,3 +9,2 @@ /** | ||
import { Optional, SkipSelf } from '../../di'; | ||
import { ListWrapper } from '../../facade/collection'; | ||
import { getTypeNameForDebugging, isPresent } from '../../facade/lang'; | ||
@@ -22,3 +21,3 @@ /** | ||
if (isPresent(parent)) { | ||
var copied = ListWrapper.clone(parent.factories); | ||
var copied = parent.factories.slice(); | ||
factories = factories.concat(copied); | ||
@@ -25,0 +24,0 @@ return new IterableDiffers(factories); |
@@ -9,3 +9,2 @@ /** | ||
import { Optional, SkipSelf } from '../../di'; | ||
import { ListWrapper } from '../../facade/collection'; | ||
import { isPresent } from '../../facade/lang'; | ||
@@ -22,3 +21,3 @@ /** | ||
if (isPresent(parent)) { | ||
var copied = ListWrapper.clone(parent.factories); | ||
var copied = parent.factories.slice(); | ||
factories = factories.concat(copied); | ||
@@ -25,0 +24,0 @@ return new KeyValueDiffers(factories); |
@@ -13,3 +13,3 @@ /** | ||
}; | ||
import { ListWrapper, MapWrapper } from '../facade/collection'; | ||
import { MapWrapper } from '../facade/collection'; | ||
import { isPresent } from '../facade/lang'; | ||
@@ -109,4 +109,3 @@ export var EventListener = (function () { | ||
var nextChildren = this.childNodes.slice(siblingIndex + 1); | ||
this.childNodes = | ||
ListWrapper.concat(ListWrapper.concat(previousChildren, newChildren), nextChildren); | ||
this.childNodes = previousChildren.concat(newChildren, nextChildren); | ||
for (var i = 0; i < newChildren.length; ++i) { | ||
@@ -113,0 +112,0 @@ var newChild = newChildren[i]; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"asNativeElements":{"__symbolic":"function","parameters":["debugEls"],"value":{"__symbolic":"error","message":"Function call not supported","line":146,"character":22}},"getDebugNode":{"__symbolic":"function","parameters":["nativeNode"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Map"}},"member":"get"},"arguments":[{"__symbolic":"reference","name":"nativeNode"}]}},"getAllDebugNodes":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../facade/collection","name":"MapWrapper"},"member":"values"},"arguments":[{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Map"}}]}}}} | ||
{"__symbolic":"module","version":1,"metadata":{"asNativeElements":{"__symbolic":"function","parameters":["debugEls"],"value":{"__symbolic":"error","message":"Function call not supported","line":145,"character":22}},"getDebugNode":{"__symbolic":"function","parameters":["nativeNode"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Map"}},"member":"get"},"arguments":[{"__symbolic":"reference","name":"nativeNode"}]}},"getAllDebugNodes":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../facade/collection","name":"MapWrapper"},"member":"values"},"arguments":[{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Map"}}]}}}} |
@@ -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 { BaseError, WrappedError } from '../facade/errors'; | ||
@@ -2,0 +9,0 @@ import { Type } from '../type'; |
@@ -13,3 +13,2 @@ /** | ||
}; | ||
import { ListWrapper } from '../facade/collection'; | ||
import { BaseError, WrappedError } from '../facade/errors'; | ||
@@ -20,3 +19,3 @@ import { stringify } from '../facade/lang'; | ||
for (var i = 0; i < keys.length; ++i) { | ||
if (ListWrapper.contains(res, keys[i])) { | ||
if (res.indexOf(keys[i]) > -1) { | ||
res.push(keys[i]); | ||
@@ -31,3 +30,3 @@ return res; | ||
if (keys.length > 1) { | ||
var reversed = findFirstClosedCycle(ListWrapper.reversed(keys)); | ||
var reversed = findFirstClosedCycle(keys.slice().reverse()); | ||
var tokenStrs = reversed.map(function (k) { return stringify(k.token); }); | ||
@@ -77,3 +76,3 @@ return ' (' + tokenStrs.join(' -> ') + ')'; | ||
_super.call(this, injector, key, function (keys) { | ||
var first = stringify(ListWrapper.first(keys).token); | ||
var first = stringify(keys[0].token); | ||
return "No provider for " + first + "!" + constructResolvingPath(keys); | ||
@@ -150,3 +149,3 @@ }); | ||
get: function () { | ||
var first = stringify(ListWrapper.first(this.keys).token); | ||
var first = stringify(this.keys[0].token); | ||
return this.originalError.message + ": Error during instantiation of " + first + "!" + constructResolvingPath(this.keys) + "."; | ||
@@ -153,0 +152,0 @@ }, |
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
import { ListWrapper } from '../facade/collection'; | ||
import { unimplemented } from '../facade/errors'; | ||
@@ -16,3 +15,2 @@ import { Injector, THROW_IF_NOT_FOUND } from './injector'; | ||
import { resolveReflectiveProviders } from './reflective_provider'; | ||
var __unused; // avoid unused import when Type union types are erased | ||
// Threshold for the dynamic version | ||
@@ -262,4 +260,3 @@ var _MAX_CONSTRUCTION_COUNTER = 10; | ||
this.injector = injector; | ||
this.objs = new Array(protoStrategy.providers.length); | ||
ListWrapper.fill(this.objs, UNDEFINED); | ||
this.objs = new Array(protoStrategy.providers.length).fill(UNDEFINED); | ||
} | ||
@@ -266,0 +263,0 @@ ReflectiveInjectorDynamicStrategy.prototype.resetConstructionCounter = function () { this.injector._constructionCounter = 0; }; |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { ListWrapper, MapWrapper } from '../facade/collection'; | ||
import { MapWrapper } from '../facade/collection'; | ||
import { isBlank, isPresent } from '../facade/lang'; | ||
@@ -135,3 +135,3 @@ import { reflector } from '../reflection/reflection'; | ||
if (provider.multiProvider) { | ||
resolvedProvider = new ResolvedReflectiveProvider_(provider.key, ListWrapper.clone(provider.resolvedFactories), provider.multiProvider); | ||
resolvedProvider = new ResolvedReflectiveProvider_(provider.key, provider.resolvedFactories.slice(), provider.multiProvider); | ||
} | ||
@@ -138,0 +138,0 @@ else { |
@@ -33,28 +33,7 @@ export declare class MapWrapper { | ||
export declare class ListWrapper { | ||
static createFixedSize(size: number): any[]; | ||
static createGrowableSize(size: number): any[]; | ||
static clone<T>(array: T[]): T[]; | ||
static forEachWithIndex<T>(array: T[], fn: (t: T, n: number) => void): void; | ||
static first<T>(array: T[]): T; | ||
static last<T>(array: T[]): T; | ||
static indexOf<T>(array: T[], value: T, startIndex?: number): number; | ||
static contains<T>(list: T[], el: T): boolean; | ||
static reversed<T>(array: T[]): T[]; | ||
static concat(a: any[], b: any[]): any[]; | ||
static insert<T>(list: T[], index: number, value: T): void; | ||
static removeAt<T>(list: T[], index: number): T; | ||
static removeAll<T>(list: T[], items: T[]): void; | ||
static remove<T>(list: T[], el: T): boolean; | ||
static clear(list: any[]): void; | ||
static isEmpty(list: any[]): boolean; | ||
static fill(list: any[], value: any, start?: number, end?: number): void; | ||
static equals(a: any[], b: any[]): boolean; | ||
static slice<T>(l: T[], from?: number, to?: number): T[]; | ||
static splice<T>(l: T[], from: number, length: number): T[]; | ||
static sort<T>(l: T[], compareFn?: (a: T, b: T) => number): void; | ||
static toString<T>(l: T[]): string; | ||
static toJSON<T>(l: T[]): string; | ||
static maximum<T>(list: T[], predicate: (t: T) => number): T; | ||
static flatten<T>(list: Array<T | T[]>): T[]; | ||
static addAll<T>(list: Array<T>, source: Array<T>): void; | ||
} | ||
@@ -61,0 +40,0 @@ export declare function isListLikeIterable(obj: any): boolean; |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { getSymbolIterator, isBlank, isJsObject, isPresent } from './lang'; | ||
import { getSymbolIterator, isJsObject, isPresent } from './lang'; | ||
// Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from | ||
@@ -82,38 +82,2 @@ // TODO(mlaval): remove the work around once we have a working polyfill of Array.from | ||
} | ||
// JS has no way to express a statically fixed size list, but dart does so we | ||
// keep both methods. | ||
ListWrapper.createFixedSize = function (size) { return new Array(size); }; | ||
ListWrapper.createGrowableSize = function (size) { return new Array(size); }; | ||
ListWrapper.clone = function (array) { return array.slice(0); }; | ||
ListWrapper.forEachWithIndex = function (array, fn) { | ||
for (var i = 0; i < array.length; i++) { | ||
fn(array[i], i); | ||
} | ||
}; | ||
ListWrapper.first = function (array) { | ||
if (!array) | ||
return null; | ||
return array[0]; | ||
}; | ||
ListWrapper.last = function (array) { | ||
if (!array || array.length == 0) | ||
return null; | ||
return array[array.length - 1]; | ||
}; | ||
ListWrapper.indexOf = function (array, value, startIndex) { | ||
if (startIndex === void 0) { startIndex = 0; } | ||
return array.indexOf(value, startIndex); | ||
}; | ||
ListWrapper.contains = function (list, el) { return list.indexOf(el) !== -1; }; | ||
ListWrapper.reversed = function (array) { | ||
var a = ListWrapper.clone(array); | ||
return a.reverse(); | ||
}; | ||
ListWrapper.concat = function (a, b) { return a.concat(b); }; | ||
ListWrapper.insert = function (list, index, value) { list.splice(index, 0, value); }; | ||
ListWrapper.removeAt = function (list, index) { | ||
var res = list[index]; | ||
list.splice(index, 1); | ||
return res; | ||
}; | ||
ListWrapper.removeAll = function (list, items) { | ||
@@ -133,9 +97,2 @@ for (var i = 0; i < items.length; ++i) { | ||
}; | ||
ListWrapper.clear = function (list) { list.length = 0; }; | ||
ListWrapper.isEmpty = function (list) { return list.length == 0; }; | ||
ListWrapper.fill = function (list, value, start, end) { | ||
if (start === void 0) { start = 0; } | ||
if (end === void 0) { end = null; } | ||
list.fill(value, start, end === null ? list.length : end); | ||
}; | ||
ListWrapper.equals = function (a, b) { | ||
@@ -150,18 +107,2 @@ if (a.length != b.length) | ||
}; | ||
ListWrapper.slice = function (l, from, to) { | ||
if (from === void 0) { from = 0; } | ||
if (to === void 0) { to = null; } | ||
return l.slice(from, to === null ? undefined : to); | ||
}; | ||
ListWrapper.splice = function (l, from, length) { return l.splice(from, length); }; | ||
ListWrapper.sort = function (l, compareFn) { | ||
if (isPresent(compareFn)) { | ||
l.sort(compareFn); | ||
} | ||
else { | ||
l.sort(); | ||
} | ||
}; | ||
ListWrapper.toString = function (l) { return l.toString(); }; | ||
ListWrapper.toJSON = function (l) { return JSON.stringify(l); }; | ||
ListWrapper.maximum = function (list, predicate) { | ||
@@ -175,3 +116,3 @@ if (list.length == 0) { | ||
var candidate = list[index]; | ||
if (isBlank(candidate)) { | ||
if (candidate == null) { | ||
continue; | ||
@@ -192,7 +133,2 @@ } | ||
}; | ||
ListWrapper.addAll = function (list, source) { | ||
for (var i = 0; i < source.length; i++) { | ||
list.push(source[i]); | ||
} | ||
}; | ||
return ListWrapper; | ||
@@ -199,0 +135,0 @@ }()); |
@@ -31,3 +31,3 @@ | ||
export declare function scheduleMicroTask(fn: Function): void; | ||
declare var _global: BrowserNodeGlobal; | ||
declare const _global: BrowserNodeGlobal; | ||
export { _global as global }; | ||
@@ -39,3 +39,2 @@ export declare function getTypeNameForDebugging(type: any): string; | ||
export declare function isDate(obj: any): obj is Date; | ||
export declare function noop(): void; | ||
export declare function stringify(token: any): string; | ||
@@ -48,4 +47,2 @@ export declare class NumberWrapper { | ||
export declare function looseIdentical(a: any, b: any): boolean; | ||
export declare function normalizeBlank(obj: Object): any; | ||
export declare function normalizeBool(obj: boolean): boolean; | ||
export declare function isJsObject(o: any): boolean; | ||
@@ -52,0 +49,0 @@ export declare function print(obj: Error | Object): void; |
@@ -38,6 +38,6 @@ /** | ||
export function isPresent(obj) { | ||
return obj !== undefined && obj !== null; | ||
return obj != null; | ||
} | ||
export function isBlank(obj) { | ||
return obj === undefined || obj === null; | ||
return obj == null; | ||
} | ||
@@ -51,3 +51,2 @@ var STRING_MAP_PROTO = Object.getPrototypeOf({}); | ||
} | ||
export function noop() { } | ||
export function stringify(token) { | ||
@@ -106,8 +105,2 @@ if (typeof token === 'string') { | ||
} | ||
export function normalizeBlank(obj) { | ||
return isBlank(obj) ? null : obj; | ||
} | ||
export function normalizeBool(obj) { | ||
return isBlank(obj) ? false : obj; | ||
} | ||
export function isJsObject(o) { | ||
@@ -141,4 +134,4 @@ return o !== null && (typeof o === 'function' || typeof o === 'object'); | ||
export function getSymbolIterator() { | ||
if (isBlank(_symbolIterator)) { | ||
if (isPresent(globalScope.Symbol) && isPresent(Symbol.iterator)) { | ||
if (!_symbolIterator) { | ||
if (globalScope.Symbol && Symbol.iterator) { | ||
_symbolIterator = Symbol.iterator; | ||
@@ -145,0 +138,0 @@ } |
@@ -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}}},"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}}}} | ||
{"__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":60,"character":25}}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"obj"},"right":null}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__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":80,"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":140,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":140,"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"}]}}}},"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":144,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":144,"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":199,"character":19}}}} |
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
import { ListWrapper } from '../facade/collection'; | ||
import { isPresent } from '../facade/lang'; | ||
@@ -74,4 +73,4 @@ import { ElementRef } from './element_ref'; | ||
} | ||
ListWrapper.removeAt(nestedViews, previousIndex); | ||
ListWrapper.insert(nestedViews, currentIndex, view); | ||
nestedViews.splice(previousIndex, 1); | ||
nestedViews.splice(currentIndex, 0, view); | ||
var refRenderNode; | ||
@@ -99,3 +98,3 @@ if (currentIndex > 0) { | ||
} | ||
ListWrapper.insert(nestedViews, viewIndex, view); | ||
nestedViews.splice(viewIndex, 0, view); | ||
var refRenderNode; | ||
@@ -115,3 +114,3 @@ if (viewIndex > 0) { | ||
AppElement.prototype.detachView = function (viewIndex) { | ||
var view = ListWrapper.removeAt(this.nestedViews, viewIndex); | ||
var view = this.nestedViews.splice(viewIndex, 1)[0]; | ||
if (view.type === ViewType.COMPONENT) { | ||
@@ -118,0 +117,0 @@ throw new Error("Component views can't be moved!"); |
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
import { ListWrapper } from '../facade/collection'; | ||
import { unimplemented } from '../facade/errors'; | ||
@@ -138,3 +137,3 @@ import { isPresent } from '../facade/lang'; | ||
ViewContainerRef_.prototype.indexOf = function (viewRef) { | ||
return ListWrapper.indexOf(this._element.nestedViews, viewRef.internalView); | ||
return this._element.nestedViews.indexOf(viewRef.internalView); | ||
}; | ||
@@ -141,0 +140,0 @@ // TODO(i): rename to destroy |
import { SimpleChange } from '../change_detection/change_detection'; | ||
import { ViewEncapsulation } from '../metadata/view'; | ||
import { RenderComponentType, Renderer, RootRenderer } from '../render/api'; | ||
import { RenderComponentType, RenderDebugInfo, Renderer, RootRenderer } from '../render/api'; | ||
import { Sanitizer } from '../security'; | ||
@@ -40,1 +40,64 @@ export declare class ViewUtils { | ||
export declare function setBindingDebugInfo(renderer: Renderer, el: any, propName: string, value: any): void; | ||
export declare function createRenderElement(renderer: Renderer, parentElement: any, name: string, attrs: InlineArray<string>, debugInfo?: RenderDebugInfo): any; | ||
export declare function selectOrCreateRenderHostElement(renderer: Renderer, elementName: string, attrs: InlineArray<string>, rootSelectorOrNode: string | any, debugInfo?: RenderDebugInfo): any; | ||
export interface InlineArray<T> { | ||
length: number; | ||
get(index: number): T; | ||
} | ||
export declare class InlineArray2<T> implements InlineArray<T> { | ||
length: number; | ||
private _v0; | ||
private _v1; | ||
constructor(length: number, _v0?: T, _v1?: T); | ||
get(index: number): T; | ||
} | ||
export declare class InlineArray4<T> implements InlineArray<T> { | ||
length: number; | ||
private _v0; | ||
private _v1; | ||
private _v2; | ||
private _v3; | ||
constructor(length: number, _v0?: T, _v1?: T, _v2?: T, _v3?: T); | ||
get(index: number): T; | ||
} | ||
export declare class InlineArray8<T> implements InlineArray<T> { | ||
length: number; | ||
private _v0; | ||
private _v1; | ||
private _v2; | ||
private _v3; | ||
private _v4; | ||
private _v5; | ||
private _v6; | ||
private _v7; | ||
constructor(length: number, _v0?: T, _v1?: T, _v2?: T, _v3?: T, _v4?: T, _v5?: T, _v6?: T, _v7?: T); | ||
get(index: number): T; | ||
} | ||
export declare class InlineArray16<T> implements InlineArray<T> { | ||
length: number; | ||
private _v0; | ||
private _v1; | ||
private _v2; | ||
private _v3; | ||
private _v4; | ||
private _v5; | ||
private _v6; | ||
private _v7; | ||
private _v8; | ||
private _v9; | ||
private _v10; | ||
private _v11; | ||
private _v12; | ||
private _v13; | ||
private _v14; | ||
private _v15; | ||
constructor(length: number, _v0?: T, _v1?: T, _v2?: T, _v3?: T, _v4?: T, _v5?: T, _v6?: T, _v7?: T, _v8?: T, _v9?: T, _v10?: T, _v11?: T, _v12?: T, _v13?: T, _v14?: T, _v15?: T); | ||
get(index: number): T; | ||
} | ||
export declare class InlineArrayDynamic<T> implements InlineArray<T> { | ||
length: number; | ||
private _values; | ||
constructor(length: number, ...values: any[]); | ||
get(index: number): any; | ||
} | ||
export declare const EMPTY_INLINE_ARRAY: InlineArray<any>; |
@@ -339,2 +339,179 @@ /** | ||
} | ||
export function createRenderElement(renderer, parentElement, name, attrs, debugInfo) { | ||
var el = renderer.createElement(parentElement, name, debugInfo); | ||
for (var i = 0; i < attrs.length; i += 2) { | ||
renderer.setElementAttribute(el, attrs.get(i), attrs.get(i + 1)); | ||
} | ||
return el; | ||
} | ||
export function selectOrCreateRenderHostElement(renderer, elementName, attrs, rootSelectorOrNode, debugInfo) { | ||
var hostElement; | ||
if (isPresent(rootSelectorOrNode)) { | ||
hostElement = renderer.selectRootElement(rootSelectorOrNode, debugInfo); | ||
} | ||
else { | ||
hostElement = createRenderElement(renderer, null, elementName, attrs, debugInfo); | ||
} | ||
return hostElement; | ||
} | ||
var InlineArray0 = (function () { | ||
function InlineArray0() { | ||
this.length = 0; | ||
} | ||
InlineArray0.prototype.get = function (index) { return undefined; }; | ||
return InlineArray0; | ||
}()); | ||
export var InlineArray2 = (function () { | ||
function InlineArray2(length, _v0, _v1) { | ||
this.length = length; | ||
this._v0 = _v0; | ||
this._v1 = _v1; | ||
} | ||
InlineArray2.prototype.get = function (index) { | ||
switch (index) { | ||
case 0: | ||
return this._v0; | ||
case 1: | ||
return this._v1; | ||
default: | ||
return undefined; | ||
} | ||
}; | ||
return InlineArray2; | ||
}()); | ||
export var InlineArray4 = (function () { | ||
function InlineArray4(length, _v0, _v1, _v2, _v3) { | ||
this.length = length; | ||
this._v0 = _v0; | ||
this._v1 = _v1; | ||
this._v2 = _v2; | ||
this._v3 = _v3; | ||
} | ||
InlineArray4.prototype.get = function (index) { | ||
switch (index) { | ||
case 0: | ||
return this._v0; | ||
case 1: | ||
return this._v1; | ||
case 2: | ||
return this._v2; | ||
case 3: | ||
return this._v3; | ||
default: | ||
return undefined; | ||
} | ||
}; | ||
return InlineArray4; | ||
}()); | ||
export var InlineArray8 = (function () { | ||
function InlineArray8(length, _v0, _v1, _v2, _v3, _v4, _v5, _v6, _v7) { | ||
this.length = length; | ||
this._v0 = _v0; | ||
this._v1 = _v1; | ||
this._v2 = _v2; | ||
this._v3 = _v3; | ||
this._v4 = _v4; | ||
this._v5 = _v5; | ||
this._v6 = _v6; | ||
this._v7 = _v7; | ||
} | ||
InlineArray8.prototype.get = function (index) { | ||
switch (index) { | ||
case 0: | ||
return this._v0; | ||
case 1: | ||
return this._v1; | ||
case 2: | ||
return this._v2; | ||
case 3: | ||
return this._v3; | ||
case 4: | ||
return this._v4; | ||
case 5: | ||
return this._v5; | ||
case 6: | ||
return this._v6; | ||
case 7: | ||
return this._v7; | ||
default: | ||
return undefined; | ||
} | ||
}; | ||
return InlineArray8; | ||
}()); | ||
export var InlineArray16 = (function () { | ||
function InlineArray16(length, _v0, _v1, _v2, _v3, _v4, _v5, _v6, _v7, _v8, _v9, _v10, _v11, _v12, _v13, _v14, _v15) { | ||
this.length = length; | ||
this._v0 = _v0; | ||
this._v1 = _v1; | ||
this._v2 = _v2; | ||
this._v3 = _v3; | ||
this._v4 = _v4; | ||
this._v5 = _v5; | ||
this._v6 = _v6; | ||
this._v7 = _v7; | ||
this._v8 = _v8; | ||
this._v9 = _v9; | ||
this._v10 = _v10; | ||
this._v11 = _v11; | ||
this._v12 = _v12; | ||
this._v13 = _v13; | ||
this._v14 = _v14; | ||
this._v15 = _v15; | ||
} | ||
InlineArray16.prototype.get = function (index) { | ||
switch (index) { | ||
case 0: | ||
return this._v0; | ||
case 1: | ||
return this._v1; | ||
case 2: | ||
return this._v2; | ||
case 3: | ||
return this._v3; | ||
case 4: | ||
return this._v4; | ||
case 5: | ||
return this._v5; | ||
case 6: | ||
return this._v6; | ||
case 7: | ||
return this._v7; | ||
case 8: | ||
return this._v8; | ||
case 9: | ||
return this._v9; | ||
case 10: | ||
return this._v10; | ||
case 11: | ||
return this._v11; | ||
case 12: | ||
return this._v12; | ||
case 13: | ||
return this._v13; | ||
case 14: | ||
return this._v14; | ||
case 15: | ||
return this._v15; | ||
default: | ||
return undefined; | ||
} | ||
}; | ||
return InlineArray16; | ||
}()); | ||
export var InlineArrayDynamic = (function () { | ||
// Note: We still take the length argument so this class can be created | ||
// in the same ways as the other classes! | ||
function InlineArrayDynamic(length) { | ||
var values = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
values[_i - 1] = arguments[_i]; | ||
} | ||
this.length = length; | ||
this._values = values; | ||
} | ||
InlineArrayDynamic.prototype.get = function (index) { return this._values[index]; }; | ||
return InlineArrayDynamic; | ||
}()); | ||
export var EMPTY_INLINE_ARRAY = new InlineArray0(); | ||
//# 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":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":{}}} | ||
{"__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":{},"EMPTY_INLINE_ARRAY":{"__symbolic":"error","message":"Reference to non-exported class","line":407,"character":0,"context":{"className":"InlineArray0"}}}} |
@@ -10,3 +10,3 @@ /** | ||
import { Injector } from '../di/injector'; | ||
import { RenderComponentType, RenderDebugInfo, Renderer } from '../render/api'; | ||
import { RenderComponentType, Renderer } from '../render/api'; | ||
import { AnimationViewContext } from './animation_view_context'; | ||
@@ -54,3 +54,2 @@ import { DebugContext, StaticNodeDebugInfo } from './debug_context'; | ||
init(rootNodesOrAppElements: any[], allNodes: any[], disposables: Function[], subscriptions: any[]): void; | ||
selectOrCreateHostElement(elementName: string, rootSelectorOrNode: string | any, debugInfo: RenderDebugInfo): any; | ||
injectorGet(token: any, nodeIndex: number, notFoundResult: any): any; | ||
@@ -57,0 +56,0 @@ /** |
@@ -103,12 +103,2 @@ /** | ||
}; | ||
AppView.prototype.selectOrCreateHostElement = function (elementName, rootSelectorOrNode, debugInfo) { | ||
var hostElement; | ||
if (isPresent(rootSelectorOrNode)) { | ||
hostElement = this.renderer.selectRootElement(rootSelectorOrNode, debugInfo); | ||
} | ||
else { | ||
hostElement = this.renderer.createElement(null, elementName, debugInfo); | ||
} | ||
return hostElement; | ||
}; | ||
AppView.prototype.injectorGet = function (token, nodeIndex, notFoundResult) { | ||
@@ -115,0 +105,0 @@ return this.injectorGetInternal(token, nodeIndex, notFoundResult); |
@@ -31,3 +31,3 @@ | ||
export declare function scheduleMicroTask(fn: Function): void; | ||
declare var _global: BrowserNodeGlobal; | ||
declare const _global: BrowserNodeGlobal; | ||
export { _global as global }; | ||
@@ -39,3 +39,2 @@ export declare function getTypeNameForDebugging(type: any): string; | ||
export declare function isDate(obj: any): obj is Date; | ||
export declare function noop(): void; | ||
export declare function stringify(token: any): string; | ||
@@ -48,4 +47,2 @@ export declare class NumberWrapper { | ||
export declare function looseIdentical(a: any, b: any): boolean; | ||
export declare function normalizeBlank(obj: Object): any; | ||
export declare function normalizeBool(obj: boolean): boolean; | ||
export declare function isJsObject(o: any): boolean; | ||
@@ -52,0 +49,0 @@ export declare function print(obj: Error | Object): void; |
@@ -38,6 +38,6 @@ /** | ||
export function isPresent(obj) { | ||
return obj !== undefined && obj !== null; | ||
return obj != null; | ||
} | ||
export function isBlank(obj) { | ||
return obj === undefined || obj === null; | ||
return obj == null; | ||
} | ||
@@ -51,3 +51,2 @@ var STRING_MAP_PROTO = Object.getPrototypeOf({}); | ||
} | ||
export function noop() { } | ||
export function stringify(token) { | ||
@@ -106,8 +105,2 @@ if (typeof token === 'string') { | ||
} | ||
export function normalizeBlank(obj) { | ||
return isBlank(obj) ? null : obj; | ||
} | ||
export function normalizeBool(obj) { | ||
return isBlank(obj) ? false : obj; | ||
} | ||
export function isJsObject(o) { | ||
@@ -141,4 +134,4 @@ return o !== null && (typeof o === 'function' || typeof o === 'object'); | ||
export function getSymbolIterator() { | ||
if (isBlank(_symbolIterator)) { | ||
if (isPresent(globalScope.Symbol) && isPresent(Symbol.iterator)) { | ||
if (!_symbolIterator) { | ||
if (globalScope.Symbol && Symbol.iterator) { | ||
_symbolIterator = Symbol.iterator; | ||
@@ -145,0 +138,0 @@ } |
@@ -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}}},"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}}}} | ||
{"__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":60,"character":25}}},"isPresent":{"__symbolic":"function","parameters":["obj"],"value":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"obj"},"right":null}},"isBlank":{"__symbolic":"function","parameters":["obj"],"value":{"__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":80,"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":140,"character":20},"right":"number"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":140,"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"}]}}}},"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":144,"character":24},"right":"function"},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":144,"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":199,"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2080538
30226