core-js-pure 3.18.2 → 3.18.3
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.
|
@@ -5,6 +5,6 @@ var createNonEnumerableProperty = require('../internals/create-non-enumerable-pr
|
|
|
5
5
|
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
6
6
|
module.exports = function (O, options) {
|
|
7
7
|
if (isObject(options) && 'cause' in options) {
|
|
8
|
-
createNonEnumerableProperty(O, 'cause',
|
|
8
|
+
createNonEnumerableProperty(O, 'cause', options.cause);
|
|
9
9
|
}
|
|
10
10
|
};
|
|
@@ -7,7 +7,7 @@ var whitespaces = require('../internals/whitespaces');
|
|
|
7
7
|
var $parseInt = global.parseInt;
|
|
8
8
|
var Symbol = global.Symbol;
|
|
9
9
|
var ITERATOR = Symbol && Symbol.iterator;
|
|
10
|
-
var hex = /^[+-]?
|
|
10
|
+
var hex = /^[+-]?0x/i;
|
|
11
11
|
var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
|
|
12
12
|
// MS Edge 18- broken with boxed symbols
|
|
13
13
|
|| (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));
|
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.18.
|
|
7
|
+
version: '3.18.3',
|
|
8
8
|
mode: IS_PURE ? 'pure' : 'global',
|
|
9
9
|
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
10
10
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var $ = require('../internals/export');
|
|
3
3
|
var getPrototypeOf = require('../internals/object-get-prototype-of');
|
|
4
4
|
var setPrototypeOf = require('../internals/object-set-prototype-of');
|
|
5
|
+
var copyConstructorProperties = require('../internals/copy-constructor-properties');
|
|
5
6
|
var create = require('../internals/object-create');
|
|
6
7
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
7
8
|
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
|
@@ -25,10 +26,13 @@ var $AggregateError = function AggregateError(errors, message /* , options */) {
|
|
|
25
26
|
return that;
|
|
26
27
|
};
|
|
27
28
|
|
|
29
|
+
if (setPrototypeOf) setPrototypeOf($AggregateError, Error);
|
|
30
|
+
else copyConstructorProperties($AggregateError, Error);
|
|
31
|
+
|
|
28
32
|
$AggregateError.prototype = create(Error.prototype, {
|
|
29
|
-
constructor: createPropertyDescriptor(
|
|
30
|
-
message: createPropertyDescriptor(
|
|
31
|
-
name: createPropertyDescriptor(
|
|
33
|
+
constructor: createPropertyDescriptor(1, $AggregateError),
|
|
34
|
+
message: createPropertyDescriptor(1, ''),
|
|
35
|
+
name: createPropertyDescriptor(1, 'AggregateError')
|
|
32
36
|
});
|
|
33
37
|
|
|
34
38
|
// `AggregateError` constructor
|
package/modules/web.url.js
CHANGED
|
@@ -31,14 +31,14 @@ var INVALID_SCHEME = 'Invalid scheme';
|
|
|
31
31
|
var INVALID_HOST = 'Invalid host';
|
|
32
32
|
var INVALID_PORT = 'Invalid port';
|
|
33
33
|
|
|
34
|
-
var ALPHA = /[
|
|
34
|
+
var ALPHA = /[a-z]/i;
|
|
35
35
|
// eslint-disable-next-line regexp/no-obscure-range -- safe
|
|
36
|
-
var ALPHANUMERIC = /[\d+-.
|
|
36
|
+
var ALPHANUMERIC = /[\d+-.a-z]/i;
|
|
37
37
|
var DIGIT = /\d/;
|
|
38
38
|
var HEX_START = /^0x/i;
|
|
39
39
|
var OCT = /^[0-7]+$/;
|
|
40
40
|
var DEC = /^\d+$/;
|
|
41
|
-
var HEX = /^[\
|
|
41
|
+
var HEX = /^[\da-f]+$/i;
|
|
42
42
|
/* eslint-disable regexp/no-control-character -- safe */
|
|
43
43
|
var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
|
|
44
44
|
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-js-pure",
|
|
3
3
|
"description": "Standard library",
|
|
4
|
-
"version": "3.18.
|
|
4
|
+
"version": "3.18.3",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/zloirock/core-js.git"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"scripts": {
|
|
55
55
|
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "11f8efbfd552c8fca86188554ec3a8003580dd0c"
|
|
58
58
|
}
|