diff --git a/README.md b/README.md index eef1b1c54686..be232d27dae1 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ require('core-js/build')({ ``` ## API: ### ECMAScript 5 -Module [`es5`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es5.js), nothing new - without examples. +Module [`es5`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es5.js), nothing new - without examples. ```javascript Object .create(proto | null, descriptors?) -> object @@ -155,7 +155,7 @@ String ### ECMAScript 6 #### ECMAScript 6: Object & Function -Modules [`es6.object.assign`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.assign.js), [`es6.object.is`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.is.js), [`es6.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.set-prototype-of.js), [`es6.object.to-string`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.to-string.js), [`es6.function.name`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.function.name.js) and [`es6.function.has-instance`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.function.has-instance.js). +Modules [`es6.object.assign`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.assign.js), [`es6.object.is`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.is.js), [`es6.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.set-prototype-of.js), [`es6.object.to-string`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.to-string.js), [`es6.function.name`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.function.name.js) and [`es6.function.has-instance`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.function.has-instance.js). ```javascript Object .assign(target, ...src) -> target @@ -190,7 +190,7 @@ O[Symbol.toStringTag] = 'Foo'; (function foo(){}).name // => 'foo' ``` -In ES6 most `Object` static methods should work with primitives. Modules [`es6.object.freeze`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.freeze.js), [`es6.object.seal`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.seal.js), [`es6.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.prevent-extensions.js), [`es6.object.is-frozen`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.is-frozen.js), [`es6.object.is-sealed`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.is-sealed.js), [`es6.object.is-extensible`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.is-extensible.js), [`es6.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.get-own-property-descriptor.js), [`es6.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.get-prototype-of.js), [`es6.object.keys`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.keys.js), [`es6.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.object.get-own-property-names.js). +In ES6 most `Object` static methods should work with primitives. Modules [`es6.object.freeze`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.freeze.js), [`es6.object.seal`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.seal.js), [`es6.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.prevent-extensions.js), [`es6.object.is-frozen`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.is-frozen.js), [`es6.object.is-sealed`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.is-sealed.js), [`es6.object.is-extensible`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.is-extensible.js), [`es6.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.get-own-property-descriptor.js), [`es6.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.get-prototype-of.js), [`es6.object.keys`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.keys.js), [`es6.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.object.get-own-property-names.js). ```javascript Object .freeze(var) -> var @@ -210,7 +210,7 @@ Object.keys('qwe'); // => ['0', '1', '2'] Object.getPrototypeOf('qwe') === String.prototype; // => true ``` #### ECMAScript 6: Array -Modules [`es6.array.from`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.array.from.js), [`es6.array.of`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.array.of.js), [`es6.array.copy-within`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.array.copy-within.js), [`es6.array.fill`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.array.fill.js), [`es6.array.find`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.array.find.js) and [`es6.array.find-index`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.array.find-index.js). +Modules [`es6.array.from`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.array.from.js), [`es6.array.of`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.array.of.js), [`es6.array.copy-within`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.array.copy-within.js), [`es6.array.fill`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.array.fill.js), [`es6.array.find`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.array.find.js) and [`es6.array.find-index`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.array.find-index.js). ```javascript Array .from(iterable | array-like, mapFn(val, index)?, that) -> array @@ -246,7 +246,7 @@ Array(5).fill(42); // => [42, 42, 42, 42, 42] [1, 2, 3, 4, 5].copyWithin(0, 3); // => [4, 5, 3, 4, 5] ``` #### ECMAScript 6: String & RegExp -`String`: modules [`es6.string.from-code-point`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.string.from-code-point.js), [`es6.string.raw`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.string.raw.js), [`es6.string.code-point-at`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.string.code-point-at.js), [`es6.string.ends-with`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.string.ends-with.js), [`es6.string.includes`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.string.includes.js), [`es6.string.repeat`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.string.repeat.js), [`es6.string.starts-with`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.string.starts-with.js) and [`es6.string.trim`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.string.trim.js). +`String`: modules [`es6.string.from-code-point`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.string.from-code-point.js), [`es6.string.raw`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.string.raw.js), [`es6.string.code-point-at`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.string.code-point-at.js), [`es6.string.ends-with`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.string.ends-with.js), [`es6.string.includes`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.string.includes.js), [`es6.string.repeat`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.string.repeat.js), [`es6.string.starts-with`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.string.starts-with.js) and [`es6.string.trim`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.string.trim.js). ```javascript String .fromCodePoint(...codePoints) -> str @@ -258,12 +258,12 @@ String #codePointAt(pos) -> uint #trim() -> str, ES6 fix ``` -`RegExp`: modules [`es6.regexp.constructor`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.regexp.constructor.js) and [`es6.regexp.flags`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.regexp.flags.js). +`RegExp`: modules [`es6.regexp.constructor`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.regexp.constructor.js) and [`es6.regexp.flags`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.regexp.flags.js). ``` [new] RegExp(pattern, flags?) -> regexp, ES6 fix: can alter flags (IE9+) #flags -> str (IE9+) ``` -Support well-known symbols `@@match`, `@@replace`, `@@search` and `@@split`: modules [`es6.regexp.match`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.regexp.match.js), [`es6.regexp.replace`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.regexp.replace.js), [`es6.regexp.search`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.regexp.search.js) and [`es6.regexp.split`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.regexp.split.js). +Support well-known symbols `@@match`, `@@replace`, `@@search` and `@@split`: modules [`es6.regexp.match`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.regexp.match.js), [`es6.regexp.replace`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.regexp.replace.js), [`es6.regexp.search`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.regexp.search.js) and [`es6.regexp.split`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.regexp.split.js). ``` String #match(tpl) -> var, ES6 fix for support @@match @@ -305,12 +305,12 @@ RegExp(/./g, 'm'); // => /./m 'foo'.split({[Symbol.split]: _ => 4}); // => 4 ``` #### ECMAScript 6: Number & Math -Module [`es6.number.constructor`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.constructor.js). `Number` constructor support binary and octal literals, [example](http://goo.gl/jRd6b3): +Module [`es6.number.constructor`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.constructor.js). `Number` constructor support binary and octal literals, [example](http://goo.gl/jRd6b3): ```javascript Number('0b1010101'); // => 85 Number('0o7654321'); // => 2054353 ``` -`Number`: modules [`es6.number.epsilon`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.epsilon.js), [`es6.number.is-finite`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.is-finite.js), [`es6.number.is-integer`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.is-integer.js), [`es6.number.is-nan`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.is-nan.js), [`es6.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.is-safe-integer.js), [`es6.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.max-safe-integer.js), [`es6.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.min-safe-integer.js), [`es6.number.parse-float`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.parse-float.js), [`es6.number.parse-int`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.number.parse-int.js). +`Number`: modules [`es6.number.epsilon`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.epsilon.js), [`es6.number.is-finite`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.is-finite.js), [`es6.number.is-integer`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.is-integer.js), [`es6.number.is-nan`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.is-nan.js), [`es6.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.is-safe-integer.js), [`es6.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.max-safe-integer.js), [`es6.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.min-safe-integer.js), [`es6.number.parse-float`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.parse-float.js), [`es6.number.parse-int`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.number.parse-int.js). ```javascript Number .EPSILON -> num @@ -323,7 +323,7 @@ Number .parseFloat(str) -> num .parseInt(str) -> int ``` -`Math`: modules [`es6.math.acosh`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.acosh.js), [`es6.math.asinh`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.asinh.js), [`es6.math.atanh`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.atanh.js), [`es6.math.cbrt`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.cbrt.js), [`es6.math.clz32`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.clz32.js), [`es6.math.cosh`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.cosh.js), [`es6.math.expm1`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.expm1.js), [`es6.math.fround`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.fround.js), [`es6.math.hypot`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.hypot.js), [`es6.math.imul`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.imul.js), [`es6.math.log10`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.log10.js), [`es6.math.log1p`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.log1p.js), [`es6.math.log2`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.log2.js), [`es6.math.sign`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.sign.js), [`es6.math.sinh`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.sinh.js), [`es6.math.tanh`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.tanh.js), [`es6.math.trunc`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.math.trunc.js). +`Math`: modules [`es6.math.acosh`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.acosh.js), [`es6.math.asinh`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.asinh.js), [`es6.math.atanh`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.atanh.js), [`es6.math.cbrt`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.cbrt.js), [`es6.math.clz32`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.clz32.js), [`es6.math.cosh`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.cosh.js), [`es6.math.expm1`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.expm1.js), [`es6.math.fround`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.fround.js), [`es6.math.hypot`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.hypot.js), [`es6.math.imul`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.imul.js), [`es6.math.log10`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.log10.js), [`es6.math.log1p`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.log1p.js), [`es6.math.log2`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.log2.js), [`es6.math.sign`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.sign.js), [`es6.math.sinh`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.sinh.js), [`es6.math.tanh`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.tanh.js), [`es6.math.trunc`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.math.trunc.js). ```javascript Math .acosh(num) -> num @@ -346,7 +346,7 @@ Math ``` ### ECMAScript 6: Symbols -Module [`es6.symbol`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.symbol.js). +Module [`es6.symbol`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.symbol.js). ```javascript Symbol(description?) -> symbol .hasInstance -> @@hasInstance @@ -437,7 +437,7 @@ for(var key in o2)log(key); // nothing ### ECMAScript 6: Collections `core-js` uses native collections in most case, just fixes methods / constructor, if it's required, and in old environment uses fast polyfill (O(1) lookup). #### Map -Module [`es6.map`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.map.js). About iterators from this module [here](#ecmascript-6-iterators). +Module [`es6.map`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.map.js). About iterators from this module [here](#ecmascript-6-iterators). ```javascript new Map(iterable (entries) ?) -> map #clear() -> void @@ -469,7 +469,7 @@ log(map.get(a)); // => undefined log(Array.from(map)); // => [['a', 1], [42, 2], [true, 4]] ``` #### Set -Module [`es6.set`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.set.js). About iterators from this module [here](#ecmascript-6-iterators). +Module [`es6.set`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.set.js). About iterators from this module [here](#ecmascript-6-iterators). ```javascript new Set(iterable?) -> set #add(key) -> @ @@ -494,7 +494,7 @@ log(set.has('b')); // => false log(Array.from(set)); // => ['a', 'c', 'd', 'e'] ``` #### WeakMap -Module [`es6.weak-map`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.weak-map.js). +Module [`es6.weak-map`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.weak-map.js). ```javascript new WeakMap(iterable (entries) ?) -> weakmap #delete(key) -> bool @@ -533,7 +533,7 @@ log(person.getName()); // => 'Vasya' for(var key in person)log(key); // => only 'getName' ``` #### WeakSet -Module [`es6.weak-set`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.weak-set.js). +Module [`es6.weak-set`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.weak-set.js). ```javascript new WeakSet(iterable?) -> weakset #add(key) -> @ @@ -559,7 +559,7 @@ log(wset.has(b)); // => false * Weak-collections polyfill stores values as hidden properties of keys. It works correct and not leak in most cases. However, it is desirable to store a collection longer than its keys. ### ECMAScript 6: Iterators -Modules [`es6.string.iterator`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.string.iterator.js) and [`es6.array.iterator`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.array.iterator.js): +Modules [`es6.string.iterator`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.string.iterator.js) and [`es6.array.iterator`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.array.iterator.js): ```javascript String #@@iterator() -> iterator @@ -571,7 +571,7 @@ Array Arguments #@@iterator() -> iterator (sham, available only in core-js methods) ``` -Modules [`es6.map`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.map.js) and [`es6.set`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.set.js): +Modules [`es6.map`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.map.js) and [`es6.set`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.set.js): ```javascript Map #values() -> iterator @@ -584,7 +584,7 @@ Set #entries() -> iterator (entries) #@@iterator() -> iterator ``` -Module [`web.dom.iterable`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/web.dom.iterable.js): +Module [`web.dom.iterable`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/web.dom.iterable.js): ```javascript NodeList #@@iterator() -> iterator @@ -632,7 +632,7 @@ for(var x of document.querySelectorAll('*')){ log(x.id); } ``` -Modules [`core.is-iterable`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.get-iterator-method.js) - helpers for check iterable / get iterator in `library` version or, for example, for `arguments` object: +Modules [`core.is-iterable`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.get-iterator-method.js) - helpers for check iterable / get iterator in `library` version or, for example, for `arguments` object: ```javascript core .isIterable(var) -> bool @@ -666,7 +666,7 @@ log(iter.next().value); // undefined log(core.getIteratorMethod({})); // undefined ``` ### ECMAScript 6: Promises -Module [`es6.promise`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.promise.js). +Module [`es6.promise`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.promise.js). ```javascript new Promise(executor(resolve(var), reject(var))) -> promise #then(resolved(var), rejected(var)) -> promise @@ -757,7 +757,7 @@ async function sleepError(time, msg){ `core-js` `Promise` supports (but not adds to native implementations) unhandled rejection tracking. In browser you will see notify in console, in node.js / io.js you can use [`unhandledRejection`](https://gist.github.com/benjamingr/0237932cee84712951a2) event. ### ECMAScript 6: Reflect -Modules [`es6.reflect.apply`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.apply.js), [`es6.reflect.construct`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.construct.js), [`es6.reflect.define-property`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.define-property.js), [`es6.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.delete-property.js), [`es6.reflect.enumerate`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.enumerate.js), [`es6.reflect.get`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.get.js), [`es6.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.get-own-property-descriptor.js), [`es6.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.get-prototype-of.js), [`es6.reflect.has`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.has.js), [`es6.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.is-extensible.js), [`es6.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.own-keys.js), [`es6.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.prevent-extensions.js), [`es6.reflect.set`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.set.js), [`es6.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es6.reflect.set-prototype-of.js). +Modules [`es6.reflect.apply`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.apply.js), [`es6.reflect.construct`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.construct.js), [`es6.reflect.define-property`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.define-property.js), [`es6.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.delete-property.js), [`es6.reflect.enumerate`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.enumerate.js), [`es6.reflect.get`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.get.js), [`es6.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.get-own-property-descriptor.js), [`es6.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.get-prototype-of.js), [`es6.reflect.has`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.has.js), [`es6.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.is-extensible.js), [`es6.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.own-keys.js), [`es6.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.prevent-extensions.js), [`es6.reflect.set`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.set.js), [`es6.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es6.reflect.set-prototype-of.js). ```javascript Reflect .apply(target, thisArgument, argumentsList) -> var @@ -790,14 +790,14 @@ var instance = Reflect.construct(C, [20, 22]); instance.c; // => 42 ``` ### ECMAScript 7 -* `Array#includes` [proposal](https://github.com/domenic/Array.prototype.includes) - module [`es7.array.includes`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.array.includes.js) -* `String#at` [proposal](https://github.com/mathiasbynens/String.prototype.at) - module [`es7.string.at`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.string.at.js) -* `String#padLeft`, `String#padRight` [proposal](https://github.com/ljharb/proposal-string-pad-left-right) - modules [`es7.string.pad-left`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.string.pad-left.js), [`es7.string.pad-right`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.string.pad-right.js) -* `String#trimLeft`, `String#trimRight` [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim) - modules [`es7.string.trim-left`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.string.trim-right.js), [`es7.string.trim-right`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.string.trim-right.js) -* `Object.values`, `Object.entries` [tc39 discuss](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-04/apr-9.md#51-objectentries-objectvalues) - modules [`es7.object.values`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.object.values.js), [`es7.object.entries`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.object.entries.js) -* `Object.getOwnPropertyDescriptors` [proposal](https://gist.github.com/WebReflection/9353781) - module [`es7.object.get-own-property-descriptors`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.object.get-own-property-descriptors.js) -* `RegExp.escape` [proposal](https://github.com/benjamingr/RexExp.escape) - module [`es7.regexp.escape`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.regexp.escape.js) -* `Map#toJSON`, `Set#toJSON` [proposal](https://github.com/DavidBruant/Map-Set.prototype.toJSON) - modules [`es7.map.to-json`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.map.to-json.js), [`es7.set.to-json`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/es7.set.to-json.js) +* `Array#includes` [proposal](https://github.com/domenic/Array.prototype.includes) - module [`es7.array.includes`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.array.includes.js) +* `String#at` [proposal](https://github.com/mathiasbynens/String.prototype.at) - module [`es7.string.at`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.string.at.js) +* `String#padLeft`, `String#padRight` [proposal](https://github.com/ljharb/proposal-string-pad-left-right) - modules [`es7.string.pad-left`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.string.pad-left.js), [`es7.string.pad-right`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.string.pad-right.js) +* `String#trimLeft`, `String#trimRight` [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim) - modules [`es7.string.trim-left`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.string.trim-right.js), [`es7.string.trim-right`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.string.trim-right.js) +* `Object.values`, `Object.entries` [tc39 discuss](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-04/apr-9.md#51-objectentries-objectvalues) - modules [`es7.object.values`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.object.values.js), [`es7.object.entries`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.object.entries.js) +* `Object.getOwnPropertyDescriptors` [proposal](https://gist.github.com/WebReflection/9353781) - module [`es7.object.get-own-property-descriptors`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.object.get-own-property-descriptors.js) +* `RegExp.escape` [proposal](https://github.com/benjamingr/RexExp.escape) - module [`es7.regexp.escape`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.regexp.escape.js) +* `Map#toJSON`, `Set#toJSON` [proposal](https://github.com/DavidBruant/Map-Set.prototype.toJSON) - modules [`es7.map.to-json`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.map.to-json.js), [`es7.set.to-json`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/es7.set.to-json.js) ```javascript Array @@ -855,7 +855,7 @@ JSON.stringify(new Map([['a', 'b'], ['c', 'd']])); // => '[["a","b"],["c","d"]]' JSON.stringify(new Set([1, 2, 3, 2, 1])); // => '[1,2,3]' ``` ### Mozilla JavaScript: Array generics -Module [`js.array.statics`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/js.array.statics.js). +Module [`js.array.statics`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/js.array.statics.js). ```javascript Array .{...ArrayPrototype methods} @@ -873,7 +873,7 @@ Array.reduce(form, function(memo, it){ }, {}); // => {name: 'Vasya', age: '42', sex: 'yes, please'} ``` ### setTimeout / setInterval -Module [`web.timers`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/web.timers.js). Additional arguments fix for IE9-. +Module [`web.timers`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/web.timers.js). Additional arguments fix for IE9-. ```javascript setTimeout(fn(...args), time, ...args) -> id setInterval(fn(...args), time, ...args) -> id @@ -885,7 +885,7 @@ setTimeout(log.bind(null, 42), 1000); setTimeout(log, 1000, 42); ``` ### setImmediate -Module [`web.immediate`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/web.immediate.js). [setImmediate](https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate) polyfill. +Module [`web.immediate`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/web.immediate.js). [setImmediate](https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate) polyfill. ```javascript setImmediate(fn(...args), ...args) -> id clearImmediate(id) -> void @@ -901,7 +901,7 @@ clearImmediate(setImmediate(function(){ })); ``` ### Console -Module [`core.log`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.log.js). Console cap for old browsers and some additional functionality. In IE, Node.js / IO.js and Firebug `console` methods not require call from `console` object, but in Chromium and V8 this throws error. For some reason, we can't replace `console` methods by their bound versions. Add `log` object with bound console methods. Some more sugar: `log` is shortcut for `log.log`, we can disable output. +Module [`core.log`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.log.js). Console cap for old browsers and some additional functionality. In IE, Node.js / IO.js and Firebug `console` methods not require call from `console` object, but in Chromium and V8 this throws error. For some reason, we can't replace `console` methods by their bound versions. Add `log` object with bound console methods. Some more sugar: `log` is shortcut for `log.log`, we can disable output. ```javascript log ==== log.log .{...console API} @@ -930,7 +930,7 @@ log.enable(); log.warn('Console is enabled again.'); ``` ### Object -Modules [`core.object.is-object`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.object.is-object.js), [`core.object.classof`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.object.classof.js), [`core.object.define`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.object.define.js), [`core.object.make`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.object.make.js). +Modules [`core.object.is-object`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.object.is-object.js), [`core.object.classof`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.object.classof.js), [`core.object.define`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.object.define.js), [`core.object.make`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.object.make.js). ```javascript Object .isObject(var) -> bool @@ -1035,7 +1035,7 @@ log(vector.xy); // => 15.811388300841896 log(vector.xyz); // => 25.495097567963924 ``` ### Dict -Module [`core.dict`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.dict.js). Based on [TC39 discuss](https://github.com/rwaldron/tc39-notes/blob/master/es6/2012-11/nov-29.md#collection-apis-review) / [strawman](http://wiki.ecmascript.org/doku.php?id=harmony:modules_standard#dictionaries). +Module [`core.dict`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.dict.js). Based on [TC39 discuss](https://github.com/rwaldron/tc39-notes/blob/master/es6/2012-11/nov-29.md#collection-apis-review) / [strawman](http://wiki.ecmascript.org/doku.php?id=harmony:modules_standard#dictionaries). ```javascript [new] Dict(iterable (entries) | object ?) -> dict .isDict(var) -> bool @@ -1178,7 +1178,7 @@ Dict.reduce(dict, function(memo, it){ }, ''); // => '123' ``` ### Partial application -Module [`core.function.part`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.function.part.js). +Module [`core.function.part`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.function.part.js). ```javascript Function #part(...args | _) -> fn(...args) @@ -1198,7 +1198,7 @@ fn2(1, 3, 5); // => 1, 2, 3, 4, 5 fn2(1); // => 1, 2, undefined, 4 ``` ### Number Iterator -Modules [`core.number.iterator`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.number.iterator.js). +Modules [`core.number.iterator`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.number.iterator.js). ```javascript Number #@@iterator() -> iterator @@ -1221,7 +1221,7 @@ Array.from(10, function(it){ Dict((for(i of 3)['key' + i, !(i % 2)])); // => {key0: true, key1: false, key2: true} ``` ### Escaping HTML -Modules [`core.string.escape-html`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.string.escape-html.js) and [`core.string.unescape-html`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.string.unescape-html.js). +Modules [`core.string.escape-html`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.string.escape-html.js) and [`core.string.unescape-html`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.string.unescape-html.js). ```javascript String #escapeHTML() -> str @@ -1233,7 +1233,7 @@ String '<script>doSomething();</script>'.unescapeHTML(); // => '' ``` ### delay -Module [`core.delay`](https://github.com/zloirock/core-js/blob/v1.1.0/modules/core.delay.js). [Promise](#ecmascript-6-promises)-returning delay function, [esdiscuss](https://esdiscuss.org/topic/promise-returning-delay-function). [Example](http://goo.gl/lbucba): +Module [`core.delay`](https://github.com/zloirock/core-js/blob/v1.1.1/modules/core.delay.js). [Promise](#ecmascript-6-promises)-returning delay function, [esdiscuss](https://esdiscuss.org/topic/promise-returning-delay-function). [Example](http://goo.gl/lbucba): ```javascript delay(1e3).then(() => log('after 1 sec')); @@ -1255,6 +1255,9 @@ delay(1e3).then(() => log('after 1 sec')); - `window.fetch` is not crossplatform feature, in some environments it make no sense. For this reason I don't think it should be in `core-js`. Looking at the large number of requests it *maybe* added in the future. Now you can use, for example, [this polyfill](https://github.com/github/fetch). ## Changelog +##### 1.1.1 - 2015.08.20 + * added more correct microtask implementation for [`Promise`](#ecmascript-6-promises) + ##### 1.1.0 - 2015.08.17 * updated [string padding](#ecmascript-7) to [actual proposal](https://github.com/ljharb/proposal-string-pad-left-right) - renamed, minor internal changes: * `String#lpad` -> `String#padLeft` diff --git a/bower.json b/bower.json index 764a4f8486e2..2410d80f55a0 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "core.js", "main": "client/core.js", - "version": "1.1.0", + "version": "1.1.1", "description": "Standard Library", "keywords": [ "ES6", diff --git a/client/core.js b/client/core.js index 67ed85e9db67..b66083e6eefe 100644 --- a/client/core.js +++ b/client/core.js @@ -1,5 +1,5 @@ /** - * core-js 1.1.0 + * core-js 1.1.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev @@ -121,10 +121,9 @@ __webpack_require__(128); __webpack_require__(129); __webpack_require__(130); - __webpack_require__(135); - __webpack_require__(138); + __webpack_require__(136); __webpack_require__(139); - __webpack_require__(141); + __webpack_require__(140); __webpack_require__(142); __webpack_require__(143); __webpack_require__(144); @@ -136,39 +135,40 @@ __webpack_require__(150); __webpack_require__(151); __webpack_require__(152); - __webpack_require__(154); + __webpack_require__(153); __webpack_require__(155); __webpack_require__(156); __webpack_require__(157); __webpack_require__(158); __webpack_require__(159); - __webpack_require__(161); + __webpack_require__(160); __webpack_require__(162); __webpack_require__(163); __webpack_require__(164); - __webpack_require__(166); + __webpack_require__(165); __webpack_require__(167); - __webpack_require__(169); + __webpack_require__(168); __webpack_require__(170); - __webpack_require__(172); + __webpack_require__(171); __webpack_require__(173); __webpack_require__(174); __webpack_require__(175); - __webpack_require__(178); - __webpack_require__(110); - __webpack_require__(180); + __webpack_require__(176); __webpack_require__(179); + __webpack_require__(110); __webpack_require__(181); + __webpack_require__(180); __webpack_require__(182); __webpack_require__(183); __webpack_require__(184); __webpack_require__(185); - __webpack_require__(187); + __webpack_require__(186); __webpack_require__(188); __webpack_require__(189); __webpack_require__(190); __webpack_require__(191); __webpack_require__(192); + __webpack_require__(193); /***/ }, /* 1 */ @@ -2754,10 +2754,10 @@ , species = __webpack_require__(117) , SPECIES = __webpack_require__(33)('species') , RECORD = __webpack_require__(16)('record') + , asap = __webpack_require__(133) , PROMISE = 'Promise' , process = global.process , isNode = classof(process) == 'process' - , asap = process && process.nextTick || __webpack_require__(133).set , P = global[PROMISE] , Wrapper; @@ -2815,8 +2815,7 @@ if(record.n)return; record.n = true; var chain = record.c; - // strange IE + webpack dev server bug - use .call(global) - asap.call(global, function(){ + asap(function(){ var value = record.v , ok = record.s == 1 , i = 0; @@ -2841,8 +2840,7 @@ chain.length = 0; record.n = false; if(isReject)setTimeout(function(){ - // strange IE + webpack dev server bug - use .call(global) - asap.call(global, function(){ + asap(function(){ if(isUnhandled(record.p)){ if(isNode){ process.emit('unhandledRejection', value, record.p); @@ -2884,8 +2882,7 @@ record = record.r || record; // unwrap try { if(then = isThenable(value)){ - // strange IE + webpack dev server bug - use .call(global) - asap.call(global, function(){ + asap(function(){ var wrapper = {r: record, d: false}; // wrap try { then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); @@ -2925,7 +2922,7 @@ $reject.call(record, err); } }; - __webpack_require__(134)(P.prototype, { + __webpack_require__(135)(P.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) then: function then(onFulfilled, onRejected){ var S = anObject(anObject(this).constructor)[SPECIES]; @@ -3036,6 +3033,58 @@ /***/ }, /* 133 */ +/***/ function(module, exports, __webpack_require__) { + + var global = __webpack_require__(7) + , macrotask = __webpack_require__(134).set + , Observer = global.MutationObserver || global.WebKitMutationObserver + , process = global.process + , head, last, notify; + + function flush(){ + while(head){ + head.fn.call(); // <- currently we use it only for Promise - try / catch not required + head = head.next; + } last = undefined; + } + + // Node.js + if(__webpack_require__(11)(process) == 'process'){ + notify = function(){ + process.nextTick(flush); + }; + // browsers with MutationObserver + } else if(Observer){ + var toggle = 1 + , node = document.createTextNode(''); + new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new + notify = function(){ + node.data = toggle = -toggle; + }; + // for other environments - macrotask based on: + // - setImmediate + // - MessageChannel + // - window.postMessag + // - onreadystatechange + // - setTimeout + } else { + notify = function(){ + // strange IE + webpack dev server bug - use .call(global) + macrotask.call(global, flush); + }; + } + + module.exports = function asap(fn){ + var task = {fn: fn, next: undefined}; + if(last)last.next = task; + if(!head){ + head = task; + notify(); + } last = task; + }; + +/***/ }, +/* 134 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -3116,7 +3165,7 @@ }; /***/ }, -/* 134 */ +/* 135 */ /***/ function(module, exports, __webpack_require__) { var $redef = __webpack_require__(15); @@ -3126,14 +3175,14 @@ }; /***/ }, -/* 135 */ +/* 136 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var strong = __webpack_require__(136); + var strong = __webpack_require__(137); // 23.1 Map Objects - __webpack_require__(137)('Map', function(get){ + __webpack_require__(138)('Map', function(get){ return function Map(){ return get(this, arguments[0]); }; }, { // 23.1.3.6 Map.prototype.get(key) @@ -3148,7 +3197,7 @@ }, strong, true); /***/ }, -/* 136 */ +/* 137 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -3202,7 +3251,7 @@ that[SIZE] = 0; // size if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that); }); - __webpack_require__(134)(C.prototype, { + __webpack_require__(135)(C.prototype, { // 23.1.3.1 Map.prototype.clear() // 23.2.3.2 Set.prototype.clear() clear: function clear(){ @@ -3311,7 +3360,7 @@ }; /***/ }, -/* 137 */ +/* 138 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -3340,7 +3389,7 @@ if(typeof C != 'function' || !(IS_WEAK || !BUGGY && proto.forEach && proto.entries)){ // create collection constructor C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); - __webpack_require__(134)(C.prototype, methods); + __webpack_require__(135)(C.prototype, methods); } else { var inst = new C , chain = inst[ADDER](IS_WEAK ? {} : -0, 1) @@ -3382,14 +3431,14 @@ }; /***/ }, -/* 138 */ +/* 139 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var strong = __webpack_require__(136); + var strong = __webpack_require__(137); // 23.2 Set Objects - __webpack_require__(137)('Set', function(get){ + __webpack_require__(138)('Set', function(get){ return function Set(){ return get(this, arguments[0]); }; }, { // 23.2.3.1 Set.prototype.add(value) @@ -3399,12 +3448,12 @@ }, strong); /***/ }, -/* 139 */ +/* 140 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $ = __webpack_require__(2) - , weak = __webpack_require__(140) + , weak = __webpack_require__(141) , isObject = __webpack_require__(9) , has = __webpack_require__(10) , frozenStore = weak.frozenStore @@ -3413,7 +3462,7 @@ , tmp = {}; // 23.3 WeakMap Objects - var $WeakMap = __webpack_require__(137)('WeakMap', function(get){ + var $WeakMap = __webpack_require__(138)('WeakMap', function(get){ return function WeakMap(){ return get(this, arguments[0]); }; }, { // 23.3.3.3 WeakMap.prototype.get(key) @@ -3446,7 +3495,7 @@ } /***/ }, -/* 140 */ +/* 141 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -3505,7 +3554,7 @@ that._l = undefined; // leak store for frozen objects if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that); }); - __webpack_require__(134)(C.prototype, { + __webpack_require__(135)(C.prototype, { // 23.3.3.2 WeakMap.prototype.delete(key) // 23.4.3.3 WeakSet.prototype.delete(value) 'delete': function(key){ @@ -3536,14 +3585,14 @@ }; /***/ }, -/* 141 */ +/* 142 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var weak = __webpack_require__(140); + var weak = __webpack_require__(141); // 23.4 WeakSet Objects - __webpack_require__(137)('WeakSet', function(get){ + __webpack_require__(138)('WeakSet', function(get){ return function WeakSet(){ return get(this, arguments[0]); }; }, { // 23.4.3.1 WeakSet.prototype.add(value) @@ -3553,7 +3602,7 @@ }, weak, false, true); /***/ }, -/* 142 */ +/* 143 */ /***/ function(module, exports, __webpack_require__) { // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) @@ -3567,7 +3616,7 @@ }); /***/ }, -/* 143 */ +/* 144 */ /***/ function(module, exports, __webpack_require__) { // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) @@ -3604,7 +3653,7 @@ }); /***/ }, -/* 144 */ +/* 145 */ /***/ function(module, exports, __webpack_require__) { // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) @@ -3628,7 +3677,7 @@ }); /***/ }, -/* 145 */ +/* 146 */ /***/ function(module, exports, __webpack_require__) { // 26.1.4 Reflect.deleteProperty(target, propertyKey) @@ -3644,7 +3693,7 @@ }); /***/ }, -/* 146 */ +/* 147 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -3675,7 +3724,7 @@ }); /***/ }, -/* 147 */ +/* 148 */ /***/ function(module, exports, __webpack_require__) { // 26.1.6 Reflect.get(target, propertyKey [, receiver]) @@ -3700,7 +3749,7 @@ $def($def.S, 'Reflect', {get: get}); /***/ }, -/* 148 */ +/* 149 */ /***/ function(module, exports, __webpack_require__) { // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) @@ -3715,7 +3764,7 @@ }); /***/ }, -/* 149 */ +/* 150 */ /***/ function(module, exports, __webpack_require__) { // 26.1.8 Reflect.getPrototypeOf(target) @@ -3730,7 +3779,7 @@ }); /***/ }, -/* 150 */ +/* 151 */ /***/ function(module, exports, __webpack_require__) { // 26.1.9 Reflect.has(target, propertyKey) @@ -3743,7 +3792,7 @@ }); /***/ }, -/* 151 */ +/* 152 */ /***/ function(module, exports, __webpack_require__) { // 26.1.10 Reflect.isExtensible(target) @@ -3759,16 +3808,16 @@ }); /***/ }, -/* 152 */ +/* 153 */ /***/ function(module, exports, __webpack_require__) { // 26.1.11 Reflect.ownKeys(target) var $def = __webpack_require__(12); - $def($def.S, 'Reflect', {ownKeys: __webpack_require__(153)}); + $def($def.S, 'Reflect', {ownKeys: __webpack_require__(154)}); /***/ }, -/* 153 */ +/* 154 */ /***/ function(module, exports, __webpack_require__) { // all object keys, includes non-enumerable and symbols @@ -3781,7 +3830,7 @@ }; /***/ }, -/* 154 */ +/* 155 */ /***/ function(module, exports, __webpack_require__) { // 26.1.12 Reflect.preventExtensions(target) @@ -3802,7 +3851,7 @@ }); /***/ }, -/* 155 */ +/* 156 */ /***/ function(module, exports, __webpack_require__) { // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) @@ -3836,7 +3885,7 @@ $def($def.S, 'Reflect', {set: set}); /***/ }, -/* 156 */ +/* 157 */ /***/ function(module, exports, __webpack_require__) { // 26.1.14 Reflect.setPrototypeOf(target, proto) @@ -3856,7 +3905,7 @@ }); /***/ }, -/* 157 */ +/* 158 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -3871,7 +3920,7 @@ __webpack_require__(114)('includes'); /***/ }, -/* 158 */ +/* 159 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/mathiasbynens/String.prototype.at @@ -3885,12 +3934,12 @@ }); /***/ }, -/* 159 */ +/* 160 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $pad = __webpack_require__(160); + , $pad = __webpack_require__(161); $def($def.P, 'String', { padLeft: function padLeft(maxLength /*, fillString = ' ' */){ return $pad(this, maxLength, arguments[1], true); @@ -3898,7 +3947,7 @@ }); /***/ }, -/* 160 */ +/* 161 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/ljharb/proposal-string-pad-left-right @@ -3922,12 +3971,12 @@ }; /***/ }, -/* 161 */ +/* 162 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $pad = __webpack_require__(160); + , $pad = __webpack_require__(161); $def($def.P, 'String', { padRight: function padRight(maxLength /*, fillString = ' ' */){ return $pad(this, maxLength, arguments[1], false); @@ -3935,7 +3984,7 @@ }); /***/ }, -/* 162 */ +/* 163 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -3947,7 +3996,7 @@ }); /***/ }, -/* 163 */ +/* 164 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -3959,17 +4008,17 @@ }); /***/ }, -/* 164 */ +/* 165 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/benjamingr/RexExp.escape var $def = __webpack_require__(12) - , $re = __webpack_require__(165)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); + , $re = __webpack_require__(166)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); $def($def.S, 'RegExp', {escape: function escape(it){ return $re(it); }}); /***/ }, -/* 165 */ +/* 166 */ /***/ function(module, exports) { module.exports = function(regExp, replace){ @@ -3982,13 +4031,13 @@ }; /***/ }, -/* 166 */ +/* 167 */ /***/ function(module, exports, __webpack_require__) { // https://gist.github.com/WebReflection/9353781 var $ = __webpack_require__(2) , $def = __webpack_require__(12) - , ownKeys = __webpack_require__(153) + , ownKeys = __webpack_require__(154) , toIObject = __webpack_require__(27) , createDesc = __webpack_require__(5); @@ -4010,12 +4059,12 @@ }); /***/ }, -/* 167 */ +/* 168 */ /***/ function(module, exports, __webpack_require__) { // http://goo.gl/XkBrjD var $def = __webpack_require__(12) - , $values = __webpack_require__(168)(false); + , $values = __webpack_require__(169)(false); $def($def.S, 'Object', { values: function values(it){ @@ -4024,7 +4073,7 @@ }); /***/ }, -/* 168 */ +/* 169 */ /***/ function(module, exports, __webpack_require__) { var $ = __webpack_require__(2) @@ -4044,12 +4093,12 @@ }; /***/ }, -/* 169 */ +/* 170 */ /***/ function(module, exports, __webpack_require__) { // http://goo.gl/XkBrjD var $def = __webpack_require__(12) - , $entries = __webpack_require__(168)(true); + , $entries = __webpack_require__(169)(true); $def($def.S, 'Object', { entries: function entries(it){ @@ -4058,16 +4107,16 @@ }); /***/ }, -/* 170 */ +/* 171 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $def = __webpack_require__(12); - $def($def.P, 'Map', {toJSON: __webpack_require__(171)('Map')}); + $def($def.P, 'Map', {toJSON: __webpack_require__(172)('Map')}); /***/ }, -/* 171 */ +/* 172 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON @@ -4083,27 +4132,27 @@ }; /***/ }, -/* 172 */ +/* 173 */ /***/ function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $def = __webpack_require__(12); - $def($def.P, 'Set', {toJSON: __webpack_require__(171)('Set')}); + $def($def.P, 'Set', {toJSON: __webpack_require__(172)('Set')}); /***/ }, -/* 173 */ +/* 174 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12) - , $task = __webpack_require__(133); + , $task = __webpack_require__(134); $def($def.G + $def.B, { setImmediate: $task.set, clearImmediate: $task.clear }); /***/ }, -/* 174 */ +/* 175 */ /***/ function(module, exports, __webpack_require__) { __webpack_require__(113); @@ -4120,14 +4169,14 @@ if(HTC && !(ITERATOR in HTCProto))hide(HTCProto, ITERATOR, ArrayValues); /***/ }, -/* 175 */ +/* 176 */ /***/ function(module, exports, __webpack_require__) { // ie9- setTimeout & setInterval additional parameters fix var global = __webpack_require__(7) , $def = __webpack_require__(12) , invoke = __webpack_require__(17) - , partial = __webpack_require__(176) + , partial = __webpack_require__(177) , navigator = global.navigator , MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check var wrap = function(set){ @@ -4145,11 +4194,11 @@ }); /***/ }, -/* 176 */ +/* 177 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var path = __webpack_require__(177) + var path = __webpack_require__(178) , invoke = __webpack_require__(17) , aFunction = __webpack_require__(20); module.exports = function(/* ...pargs */){ @@ -4173,13 +4222,13 @@ }; /***/ }, -/* 177 */ +/* 178 */ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(7); /***/ }, -/* 178 */ +/* 179 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -4191,7 +4240,7 @@ , keyOf = __webpack_require__(34) , aFunction = __webpack_require__(20) , forOf = __webpack_require__(132) - , isIterable = __webpack_require__(179) + , isIterable = __webpack_require__(180) , step = __webpack_require__(115) , isObject = __webpack_require__(9) , toIObject = __webpack_require__(27) @@ -4336,7 +4385,7 @@ }); /***/ }, -/* 179 */ +/* 180 */ /***/ function(module, exports, __webpack_require__) { var classof = __webpack_require__(45) @@ -4348,7 +4397,7 @@ }; /***/ }, -/* 180 */ +/* 181 */ /***/ function(module, exports, __webpack_require__) { var anObject = __webpack_require__(26) @@ -4360,13 +4409,13 @@ }; /***/ }, -/* 181 */ +/* 182 */ /***/ function(module, exports, __webpack_require__) { var global = __webpack_require__(7) , core = __webpack_require__(13) , $def = __webpack_require__(12) - , partial = __webpack_require__(176); + , partial = __webpack_require__(177); // https://esdiscuss.org/topic/promise-returning-delay-function $def($def.G + $def.F, { delay: function delay(time){ @@ -4377,20 +4426,20 @@ }); /***/ }, -/* 182 */ +/* 183 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var path = __webpack_require__(177) + var path = __webpack_require__(178) , $def = __webpack_require__(12); // Placeholder __webpack_require__(13)._ = path._ = path._ || {}; - $def($def.P + $def.F, 'Function', {part: __webpack_require__(176)}); + $def($def.P + $def.F, 'Function', {part: __webpack_require__(177)}); /***/ }, -/* 183 */ +/* 184 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12); @@ -4398,7 +4447,7 @@ $def($def.S + $def.F, 'Object', {isObject: __webpack_require__(9)}); /***/ }, -/* 184 */ +/* 185 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12); @@ -4406,20 +4455,20 @@ $def($def.S + $def.F, 'Object', {classof: __webpack_require__(45)}); /***/ }, -/* 185 */ +/* 186 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12) - , define = __webpack_require__(186); + , define = __webpack_require__(187); $def($def.S + $def.F, 'Object', {define: define}); /***/ }, -/* 186 */ +/* 187 */ /***/ function(module, exports, __webpack_require__) { var $ = __webpack_require__(2) - , ownKeys = __webpack_require__(153) + , ownKeys = __webpack_require__(154) , toIObject = __webpack_require__(27); module.exports = function define(target, mixin){ @@ -4431,12 +4480,12 @@ }; /***/ }, -/* 187 */ +/* 188 */ /***/ function(module, exports, __webpack_require__) { var $def = __webpack_require__(12) , create = __webpack_require__(2).create - , define = __webpack_require__(186); + , define = __webpack_require__(187); $def($def.S + $def.F, 'Object', { make: function(proto, mixin){ @@ -4445,7 +4494,7 @@ }); /***/ }, -/* 188 */ +/* 189 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -4459,12 +4508,12 @@ }); /***/ }, -/* 189 */ +/* 190 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $re = __webpack_require__(165)(/[&<>"']/g, { + , $re = __webpack_require__(166)(/[&<>"']/g, { '&': '&', '<': '<', '>': '>', @@ -4475,12 +4524,12 @@ $def($def.P + $def.F, 'String', {escapeHTML: function escapeHTML(){ return $re(this); }}); /***/ }, -/* 190 */ +/* 191 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; var $def = __webpack_require__(12) - , $re = __webpack_require__(165)(/&(?:amp|lt|gt|quot|apos);/g, { + , $re = __webpack_require__(166)(/&(?:amp|lt|gt|quot|apos);/g, { '&': '&', '<': '<', '>': '>', @@ -4491,7 +4540,7 @@ $def($def.P + $def.F, 'String', {unescapeHTML: function unescapeHTML(){ return $re(this); }}); /***/ }, -/* 191 */ +/* 192 */ /***/ function(module, exports, __webpack_require__) { var $ = __webpack_require__(2) @@ -4521,7 +4570,7 @@ })}); /***/ }, -/* 192 */ +/* 193 */ /***/ function(module, exports, __webpack_require__) { // JavaScript 1.6 / Strawman array statics shim diff --git a/client/core.min.js b/client/core.min.js index 51ca5b44b9f2..b01972821c64 100644 --- a/client/core.min.js +++ b/client/core.min.js @@ -1,9 +1,9 @@ /** - * core-js 1.1.0 + * core-js 1.1.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ -!function(b,c,a){"use strict";!function(b){function __webpack_require__(c){if(a[c])return a[c].exports;var d=a[c]={exports:{},id:c,loaded:!1};return b[c].call(d.exports,d,d.exports,__webpack_require__),d.loaded=!0,d.exports}var a={};return __webpack_require__.m=b,__webpack_require__.c=a,__webpack_require__.p="",__webpack_require__(0)}([function(b,c,a){a(1),a(30),a(38),a(40),a(42),a(44),a(46),a(48),a(49),a(50),a(51),a(52),a(53),a(54),a(55),a(56),a(57),a(58),a(59),a(60),a(61),a(62),a(64),a(65),a(66),a(67),a(68),a(69),a(70),a(72),a(73),a(74),a(76),a(77),a(78),a(80),a(81),a(82),a(83),a(84),a(85),a(86),a(87),a(88),a(89),a(90),a(91),a(92),a(94),a(96),a(98),a(99),a(101),a(102),a(107),a(112),a(113),a(116),a(118),a(119),a(120),a(121),a(122),a(124),a(125),a(127),a(128),a(129),a(130),a(135),a(138),a(139),a(141),a(142),a(143),a(144),a(145),a(146),a(147),a(148),a(149),a(150),a(151),a(152),a(154),a(155),a(156),a(157),a(158),a(159),a(161),a(162),a(163),a(164),a(166),a(167),a(169),a(170),a(172),a(173),a(174),a(175),a(178),a(110),a(180),a(179),a(181),a(182),a(183),a(184),a(185),a(187),a(188),a(189),a(190),a(191),a(192)},function(V,U,b){var o,d=b(2),I=b(3),O=b(5),r=b(6),G=b(8),l=b(10),E=b(11),c=b(12),M=b(17),g=b(18),i=b(16)("__proto__"),K=b(9),n=b(26),B=b(20),R=b(22),A=b(27),T=b(25),y=b(28),h=b(24),u=b(21),t=b(4),C=Object.prototype,w=[],m=w.slice,L=w.join,x=d.setDesc,N=d.getDesc,q=d.setDescs,z=b(29)(!1),p={};I||(o=!t(function(){return 7!=x(G("div"),"a",{get:function(){return 7}}).a}),d.setDesc=function(b,c,a){if(o)try{return x(b,c,a)}catch(d){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(n(b)[c]=a.value),b},d.getDesc=function(a,b){if(o)try{return N(a,b)}catch(c){}return l(a,b)?O(!C.propertyIsEnumerable.call(a,b),a[b]):void 0},d.setDescs=q=function(a,b){n(a);for(var c,e=d.getKeys(b),g=e.length,f=0;g>f;)d.setDesc(a,c=e[f++],b[c]);return a}),c(c.S+c.F*!I,"Object",{getOwnPropertyDescriptor:d.getDesc,defineProperty:d.setDesc,defineProperties:q});var j="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),v=j.concat("length","prototype"),D=j.length,k=function(){var a,b=G("iframe"),c=D,d=">";for(b.style.display="none",r.appendChild(b),b.src="javascript:",a=b.contentWindow.document,a.open(),a.write("