core-js-pure 3.10.2 → 3.11.0

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.
package/features/index.js CHANGED
@@ -285,6 +285,7 @@ require('../modules/esnext.math.signbit');
285
285
  require('../modules/esnext.math.umulh');
286
286
  require('../modules/esnext.number.from-string');
287
287
  require('../modules/esnext.number.range');
288
+ require('../modules/esnext.object.has-own');
288
289
  require('../modules/esnext.object.iterate-entries');
289
290
  require('../modules/esnext.object.iterate-keys');
290
291
  require('../modules/esnext.object.iterate-values');
@@ -0,0 +1,4 @@
1
+ require('../../modules/esnext.object.has-own');
2
+ var path = require('../../internals/path');
3
+
4
+ module.exports = path.Object.hasOwn;
@@ -1,4 +1,5 @@
1
1
  var parent = require('../../es/object');
2
+ require('../../modules/esnext.object.has-own');
2
3
  require('../../modules/esnext.object.iterate-entries');
3
4
  require('../../modules/esnext.object.iterate-keys');
4
5
  require('../../modules/esnext.object.iterate-values');
package/internals/has.js CHANGED
@@ -1,5 +1,7 @@
1
+ var toObject = require('../internals/to-object');
2
+
1
3
  var hasOwnProperty = {}.hasOwnProperty;
2
4
 
3
- module.exports = function (it, key) {
4
- return hasOwnProperty.call(it, key);
5
+ module.exports = function hasOwn(it, key) {
6
+ return hasOwnProperty.call(toObject(it), key);
5
7
  };
@@ -4,7 +4,7 @@ var store = require('../internals/shared-store');
4
4
  (module.exports = function (key, value) {
5
5
  return store[key] || (store[key] = value !== undefined ? value : {});
6
6
  })('versions', []).push({
7
- version: '3.10.2',
7
+ version: '3.11.0',
8
8
  mode: IS_PURE ? 'pure' : 'global',
9
9
  copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
10
10
  });
@@ -0,0 +1,8 @@
1
+ var $ = require('../internals/export');
2
+ var hasOwn = require('../internals/has');
3
+
4
+ // `Object.hasOwn` method
5
+ // https://github.com/tc39/proposal-accessible-object-hasownproperty
6
+ $({ target: 'Object', stat: true }, {
7
+ hasOwn: hasOwn
8
+ });
@@ -31,6 +31,7 @@ var INVALID_HOST = 'Invalid host';
31
31
  var INVALID_PORT = 'Invalid port';
32
32
 
33
33
  var ALPHA = /[A-Za-z]/;
34
+ // eslint-disable-next-line regexp/no-obscure-range -- safe
34
35
  var ALPHANUMERIC = /[\d+-.A-Za-z]/;
35
36
  var DIGIT = /\d/;
36
37
  var HEX_START = /^(0x|0X)/;
@@ -38,10 +39,10 @@ var OCT = /^[0-7]+$/;
38
39
  var DEC = /^\d+$/;
39
40
  var HEX = /^[\dA-Fa-f]+$/;
40
41
  /* eslint-disable no-control-regex -- safe */
41
- var FORBIDDEN_HOST_CODE_POINT = /[\u0000\t\u000A\u000D #%/:?@[\\]]/;
42
- var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\u0000\t\u000A\u000D #/:?@[\\]]/;
42
+ var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:?@[\\]]/;
43
+ var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:?@[\\]]/;
43
44
  var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g;
44
- var TAB_AND_NEW_LINE = /[\t\u000A\u000D]/g;
45
+ var TAB_AND_NEW_LINE = /[\t\n\r]/g;
45
46
  /* eslint-enable no-control-regex -- safe */
46
47
  var EOF;
47
48
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js-pure",
3
3
  "description": "Standard library",
4
- "version": "3.10.2",
4
+ "version": "3.11.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git",
@@ -55,5 +55,5 @@
55
55
  "scripts": {
56
56
  "postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
57
57
  },
58
- "gitHead": "871050326809b302c67e4fb4e0e4007a2db7b8e8"
58
+ "gitHead": "e94a771bfe1c88f1c37c4fa05505e82e84739493"
59
59
  }
@@ -0,0 +1,2 @@
1
+ // https://github.com/tc39/proposal-accessible-object-hasownproperty
2
+ require('../modules/esnext.object.has-own');
package/stage/2.js CHANGED
@@ -1,3 +1,4 @@
1
+ require('../proposals/accessible-object-hasownproperty');
1
2
  require('../proposals/array-find-from-last');
2
3
  require('../proposals/array-is-template-object');
3
4
  require('../proposals/iterator-helpers');