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 +1 -0
- package/features/object/has-own.js +4 -0
- package/features/object/index.js +1 -0
- package/internals/has.js +4 -2
- package/internals/shared.js +1 -1
- package/modules/esnext.object.has-own.js +8 -0
- package/modules/web.url.js +4 -3
- package/package.json +2 -2
- package/proposals/accessible-object-hasownproperty.js +2 -0
- package/stage/2.js +1 -0
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');
|
package/features/object/index.js
CHANGED
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
|
};
|
package/internals/shared.js
CHANGED
|
@@ -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.
|
|
7
|
+
version: '3.11.0',
|
|
8
8
|
mode: IS_PURE ? 'pure' : 'global',
|
|
9
9
|
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
10
10
|
});
|
package/modules/web.url.js
CHANGED
|
@@ -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 = /[\
|
|
42
|
-
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\
|
|
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\
|
|
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.
|
|
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": "
|
|
58
|
+
"gitHead": "e94a771bfe1c88f1c37c4fa05505e82e84739493"
|
|
59
59
|
}
|
package/stage/2.js
CHANGED