core-js 2.5.0 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/LICENSE +1 -1
  3. package/README.md +74 -74
  4. package/bower.json +8 -6
  5. package/build/build.ls +2 -2
  6. package/build/index.js +1 -1
  7. package/client/core.js +390 -386
  8. package/client/core.min.js +5 -5
  9. package/client/core.min.js.map +1 -1
  10. package/client/library.js +309 -304
  11. package/client/library.min.js +5 -5
  12. package/client/library.min.js.map +1 -1
  13. package/client/shim.js +456 -507
  14. package/client/shim.min.js +5 -5
  15. package/client/shim.min.js.map +1 -1
  16. package/fn/array/virtual/iterator.js +1 -1
  17. package/fn/array/virtual/values.js +1 -1
  18. package/fn/number/parse-float.js +1 -1
  19. package/fn/number/parse-int.js +1 -1
  20. package/fn/string/virtual/iterator.js +1 -1
  21. package/library/fn/array/virtual/iterator.js +1 -1
  22. package/library/fn/array/virtual/values.js +1 -1
  23. package/library/fn/number/parse-float.js +1 -1
  24. package/library/fn/number/parse-int.js +1 -1
  25. package/library/fn/string/virtual/iterator.js +1 -1
  26. package/library/modules/_core.js +1 -1
  27. package/library/modules/_export.js +2 -1
  28. package/library/modules/_iter-define.js +1 -2
  29. package/library/modules/_microtask.js +2 -2
  30. package/library/modules/_partial.js +1 -1
  31. package/library/modules/_promise-resolve.js +4 -0
  32. package/library/modules/_set-collection-of.js +1 -1
  33. package/library/modules/_typed-buffer.js +2 -2
  34. package/library/modules/_user-agent.js +4 -0
  35. package/library/modules/es6.array.slice.js +1 -1
  36. package/library/modules/es6.promise.js +10 -21
  37. package/library/modules/es6.symbol.js +8 -9
  38. package/library/modules/es7.observable.js +1 -1
  39. package/library/modules/es7.string.pad-end.js +3 -1
  40. package/library/modules/es7.string.pad-start.js +3 -1
  41. package/library/modules/web.timers.js +10 -11
  42. package/library/stage/2.js +1 -1
  43. package/modules/_core.js +1 -1
  44. package/modules/_iter-define.js +1 -2
  45. package/modules/_microtask.js +2 -2
  46. package/modules/_partial.js +1 -1
  47. package/modules/_promise-resolve.js +4 -0
  48. package/modules/_set-collection-of.js +1 -1
  49. package/modules/_typed-buffer.js +2 -2
  50. package/modules/_user-agent.js +4 -0
  51. package/modules/es6.array.slice.js +1 -1
  52. package/modules/es6.promise.js +10 -21
  53. package/modules/es6.symbol.js +8 -9
  54. package/modules/es7.observable.js +1 -1
  55. package/modules/es7.string.pad-end.js +3 -1
  56. package/modules/es7.string.pad-start.js +3 -1
  57. package/modules/library/_export.js +2 -1
  58. package/modules/web.timers.js +10 -11
  59. package/package.json +28 -26
  60. package/stage/2.js +1 -1
@@ -2,6 +2,7 @@ var global = require('./_global');
2
2
  var core = require('./_core');
3
3
  var ctx = require('./_ctx');
4
4
  var hide = require('./_hide');
5
+ var has = require('./_has');
5
6
  var PROTOTYPE = 'prototype';
6
7
 
7
8
  var $export = function (type, name, source) {
@@ -19,7 +20,7 @@ var $export = function (type, name, source) {
19
20
  for (key in source) {
20
21
  // contains in native
21
22
  own = !IS_FORCED && target && target[key] !== undefined;
22
- if (own && key in exports) continue;
23
+ if (own && has(exports, key)) continue;
23
24
  // export native or passed
24
25
  out = own ? target[key] : source[key];
25
26
  // prevent global pollution for namespaces
@@ -1,19 +1,18 @@
1
1
  // ie9- setTimeout & setInterval additional parameters fix
2
2
  var global = require('./_global');
3
3
  var $export = require('./_export');
4
- var invoke = require('./_invoke');
5
- var partial = require('./_partial');
6
- var navigator = global.navigator;
7
- var MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check
4
+ var userAgent = require('./_user-agent');
5
+ var slice = [].slice;
6
+ var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
8
7
  var wrap = function (set) {
9
- return MSIE ? function (fn, time /* , ...args */) {
10
- return set(invoke(
11
- partial,
12
- [].slice.call(arguments, 2),
8
+ return function (fn, time /* , ...args */) {
9
+ var boundArgs = arguments.length > 2;
10
+ var args = boundArgs ? slice.call(arguments, 2) : false;
11
+ return set(boundArgs ? function () {
13
12
  // eslint-disable-next-line no-new-func
14
- typeof fn == 'function' ? fn : Function(fn)
15
- ), time);
16
- } : set;
13
+ (typeof fn == 'function' ? fn : Function(fn)).apply(this, args);
14
+ } : fn, time);
15
+ };
17
16
  };
18
17
  $export($export.G + $export.B + $export.F * MSIE, {
19
18
  setTimeout: wrap(global.setTimeout),
package/package.json CHANGED
@@ -1,36 +1,36 @@
1
1
  {
2
2
  "name": "core-js",
3
3
  "description": "Standard library",
4
- "version": "2.5.0",
4
+ "version": "2.5.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git"
8
8
  },
9
9
  "main": "index.js",
10
10
  "devDependencies": {
11
- "webpack": "3.4.x",
12
11
  "LiveScript": "1.3.x",
13
- "grunt": "1.0.x",
14
- "grunt-cli": "1.2.x",
12
+ "es-observable-tests": "0.2.x",
13
+ "eslint": "4.19.x",
14
+ "eslint-plugin-import": "2.9.x",
15
+ "grunt": "^1.0.2",
16
+ "grunt-cli": "^1.2.0",
17
+ "grunt-contrib-clean": "^1.1.0",
18
+ "grunt-contrib-copy": "^1.0.0",
19
+ "grunt-contrib-uglify": "3.3.x",
20
+ "grunt-contrib-watch": "^1.0.0",
21
+ "grunt-karma": "^2.0.0",
15
22
  "grunt-livescript": "0.6.x",
16
- "grunt-contrib-uglify": "3.0.x",
17
- "grunt-contrib-watch": "1.0.x",
18
- "grunt-contrib-clean": "1.1.x",
19
- "grunt-contrib-copy": "1.0.x",
20
- "grunt-karma": "2.0.x",
21
- "karma": "1.7.x",
22
- "karma-qunit": "1.2.x",
23
- "karma-chrome-launcher": "2.2.x",
24
- "karma-ie-launcher": "1.0.x",
25
- "karma-firefox-launcher": "1.0.x",
23
+ "karma": "^2.0.0",
24
+ "karma-qunit": "^2.0.1",
25
+ "karma-chrome-launcher": "^2.2.0",
26
+ "karma-firefox-launcher": "^1.0.1",
27
+ "karma-ie-launcher": "^1.0.0",
26
28
  "karma-phantomjs-launcher": "1.0.x",
27
- "qunitjs": "2.4.x",
28
29
  "phantomjs-prebuilt": "2.1.x",
29
- "promises-aplus-tests": "2.1.x",
30
- "es-observable-tests": "0.2.x",
31
- "eslint": "4.4.x",
32
- "eslint-plugin-import": "2.7.x",
33
- "temp": "0.8.x"
30
+ "promises-aplus-tests": "^2.1.2",
31
+ "qunit": "2.6.x",
32
+ "temp": "^0.8.3",
33
+ "webpack": "^3.11.0"
34
34
  },
35
35
  "scripts": {
36
36
  "grunt": "grunt",
@@ -42,17 +42,19 @@
42
42
  "license": "MIT",
43
43
  "keywords": [
44
44
  "ES3",
45
- "ECMAScript 3",
46
45
  "ES5",
47
- "ECMAScript 5",
48
46
  "ES6",
49
- "ES2015",
50
- "ECMAScript 6",
51
- "ECMAScript 2015",
52
47
  "ES7",
48
+ "ES2015",
53
49
  "ES2016",
50
+ "ES2017",
51
+ "ECMAScript 3",
52
+ "ECMAScript 5",
53
+ "ECMAScript 6",
54
54
  "ECMAScript 7",
55
+ "ECMAScript 2015",
55
56
  "ECMAScript 2016",
57
+ "ECMAScript 2017",
56
58
  "Harmony",
57
59
  "Strawman",
58
60
  "Map",
@@ -67,4 +69,4 @@
67
69
  "polyfill",
68
70
  "shim"
69
71
  ]
70
- }
72
+ }
package/stage/2.js CHANGED
@@ -1,4 +1,4 @@
1
- require('../modules/es7.symbol.async-iterator');
2
1
  require('../modules/es7.string.trim-left');
3
2
  require('../modules/es7.string.trim-right');
3
+ require('../modules/es7.symbol.async-iterator');
4
4
  module.exports = require('./3');