@angular/platform-browser
Advanced tools
Comparing version 2.1.0 to 2.1.1
/** | ||
* @license Angular v2.1.0 | ||
* @license Angular v2.1.1 | ||
* (c) 2010-2016 Google, Inc. https://angular.io/ | ||
@@ -44,60 +44,3 @@ * 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; | ||
}()); | ||
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); }); | ||
}; | ||
} | ||
})(); | ||
// Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from | ||
@@ -104,0 +47,0 @@ // TODO(mlaval): remove the work around once we have a working polyfill of Array.from |
{ | ||
"name": "@angular/platform-browser", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Angular - library for using Angular in a web browser", | ||
@@ -11,4 +11,4 @@ "main": "bundles/platform-browser.umd.js", | ||
"peerDependencies": { | ||
"@angular/core": "2.1.0", | ||
"@angular/common": "2.1.0" | ||
"@angular/core": "2.1.1", | ||
"@angular/common": "2.1.1" | ||
}, | ||
@@ -15,0 +15,0 @@ "repository": { |
@@ -11,3 +11,3 @@ /** | ||
import { window } from '../../facade/browser'; | ||
import { NumberWrapper, isPresent } from '../../facade/lang'; | ||
import { isPresent } from '../../facade/lang'; | ||
export var ChangeDetectionPerfRecord = (function () { | ||
@@ -55,3 +55,3 @@ function ChangeDetectionPerfRecord(msPerTick, numTicks) { | ||
AngularProfiler.prototype.timeChangeDetection = function (config) { | ||
var record = isPresent(config) && config['record']; | ||
var record = config && config['record']; | ||
var profileName = 'Change Detection'; | ||
@@ -79,3 +79,3 @@ // Profiler is not available in Android browsers, nor in IE 9 without dev tools opened | ||
window.console.log("ran " + numTicks + " change detection cycles"); | ||
window.console.log(NumberWrapper.toFixed(msPerTick, 2) + " ms per check"); | ||
window.console.log(msPerTick.toFixed(2) + " ms per check"); | ||
return new ChangeDetectionPerfRecord(msPerTick, numTicks); | ||
@@ -82,0 +82,0 @@ }; |
@@ -14,3 +14,3 @@ /** | ||
import { Inject, Injectable, ViewEncapsulation } from '@angular/core'; | ||
import { Json, isArray, isBlank, isPresent, isString, stringify } from '../facade/lang'; | ||
import { isBlank, isPresent, stringify } from '../facade/lang'; | ||
import { AnimationDriver } from './animation_driver'; | ||
@@ -84,3 +84,3 @@ import { getDOM } from './dom_adapter'; | ||
var el; | ||
if (isString(selectorOrNode)) { | ||
if (typeof selectorOrNode === 'string') { | ||
el = getDOM().querySelector(this._rootRenderer.document, selectorOrNode); | ||
@@ -194,5 +194,5 @@ if (isBlank(el)) { | ||
var existingBindings = getDOM().getText(renderElement).replace(/\n/g, '').match(TEMPLATE_BINDINGS_EXP); | ||
var parsedBindings = Json.parse(existingBindings[1]); | ||
var parsedBindings = JSON.parse(existingBindings[1]); | ||
parsedBindings[dashCasedPropertyName] = propertyValue; | ||
getDOM().setText(renderElement, TEMPLATE_COMMENT_TEXT.replace('{}', Json.stringify(parsedBindings))); | ||
getDOM().setText(renderElement, TEMPLATE_COMMENT_TEXT.replace('{}', JSON.stringify(parsedBindings, null, 2))); | ||
} | ||
@@ -271,3 +271,3 @@ else { | ||
var style = styles[i]; | ||
if (isArray(style)) { | ||
if (Array.isArray(style)) { | ||
_flattenStyles(compId, style, target); | ||
@@ -274,0 +274,0 @@ } |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"DomRootRenderer_":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./dom_tokens","name":"DOCUMENT"}]}],null,null,null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"./events/event_manager","name":"EventManager"},{"__symbolic":"reference","module":"./shared_styles_host","name":"DomSharedStylesHost"},{"__symbolic":"reference","module":"./animation_driver","name":"AnimationDriver"}]}]}},"COMPONENT_VARIABLE":"%COMP%","HOST_ATTR":{"__symbolic":"error","message":"Expression form not supported","line":269,"character":25},"CONTENT_ATTR":{"__symbolic":"error","message":"Expression form not supported","line":270,"character":28}}} | ||
{"__symbolic":"module","version":1,"metadata":{"DomRootRenderer_":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./dom_tokens","name":"DOCUMENT"}]}],null,null,null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"./events/event_manager","name":"EventManager"},{"__symbolic":"reference","module":"./shared_styles_host","name":"DomSharedStylesHost"},{"__symbolic":"reference","module":"./animation_driver","name":"AnimationDriver"}]}]}},"COMPONENT_VARIABLE":"%COMP%","HOST_ATTR":{"__symbolic":"error","message":"Expression form not supported","line":270,"character":25},"CONTENT_ATTR":{"__symbolic":"error","message":"Expression form not supported","line":271,"character":28}}} |
@@ -9,3 +9,3 @@ /** | ||
import { AUTO_STYLE } from '@angular/core'; | ||
import { isNumber, isPresent } from '../facade/lang'; | ||
import { isPresent } from '../facade/lang'; | ||
import { dashCaseToCamelCase } from './util'; | ||
@@ -72,3 +72,3 @@ import { WebAnimationsPlayer } from './web_animations_player'; | ||
if (_isPixelDimensionStyle(formattedProp) && val != 0 && val != '0') { | ||
if (isNumber(val)) { | ||
if (typeof val === 'number') { | ||
unit = 'px'; | ||
@@ -75,0 +75,0 @@ } |
@@ -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}}}} |
@@ -10,3 +10,3 @@ /** | ||
import { ListWrapper } from './facade/collection'; | ||
import { global, isPresent, isString } from './facade/lang'; | ||
import { global, isPresent } from './facade/lang'; | ||
import { getDOM } from './private_import_platform-browser'; | ||
@@ -148,3 +148,3 @@ export var BrowserDetection = (function () { | ||
var attValue = attributeMap.get(key); | ||
if (!isString(attValue)) { | ||
if (typeof attValue !== 'string') { | ||
result += " " + key; | ||
@@ -151,0 +151,0 @@ } |
@@ -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}}}} |
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
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
715971
8384