core-js-bundle 3.22.4 → 3.22.5
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/index.js +57 -38
- package/minified.js +9 -9
- package/minified.js.map +1 -1
- package/package.json +2 -3
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* core-js 3.22.
|
|
2
|
+
* core-js 3.22.5
|
|
3
3
|
* © 2014-2022 Denis Pushkarev (zloirock.ru)
|
|
4
|
-
* license: https://github.com/zloirock/core-js/blob/v3.22.
|
|
4
|
+
* license: https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE
|
|
5
5
|
* source: https://github.com/zloirock/core-js
|
|
6
6
|
*/
|
|
7
7
|
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
|
|
@@ -709,7 +709,7 @@ if (!NATIVE_SYMBOL) {
|
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
|
|
712
|
-
$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
|
712
|
+
$({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
|
713
713
|
Symbol: $Symbol
|
|
714
714
|
});
|
|
715
715
|
|
|
@@ -1332,10 +1332,10 @@ var store = __webpack_require__(35);
|
|
|
1332
1332
|
(module.exports = function (key, value) {
|
|
1333
1333
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
1334
1334
|
})('versions', []).push({
|
|
1335
|
-
version: '3.22.
|
|
1335
|
+
version: '3.22.5',
|
|
1336
1336
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1337
1337
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
1338
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.
|
|
1338
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
|
|
1339
1339
|
source: 'https://github.com/zloirock/core-js'
|
|
1340
1340
|
});
|
|
1341
1341
|
|
|
@@ -1598,15 +1598,17 @@ module.exports = function (O, key, value, options) {
|
|
|
1598
1598
|
var fails = __webpack_require__(7);
|
|
1599
1599
|
var isCallable = __webpack_require__(20);
|
|
1600
1600
|
var hasOwn = __webpack_require__(37);
|
|
1601
|
-
var
|
|
1601
|
+
var DESCRIPTORS = __webpack_require__(6);
|
|
1602
1602
|
var CONFIGURABLE_FUNCTION_NAME = __webpack_require__(48).CONFIGURABLE;
|
|
1603
1603
|
var inspectSource = __webpack_require__(49);
|
|
1604
1604
|
var InternalStateModule = __webpack_require__(50);
|
|
1605
1605
|
|
|
1606
1606
|
var enforceInternalState = InternalStateModule.enforce;
|
|
1607
1607
|
var getInternalState = InternalStateModule.get;
|
|
1608
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
1609
|
+
var defineProperty = Object.defineProperty;
|
|
1608
1610
|
|
|
1609
|
-
var CONFIGURABLE_LENGTH = !fails(function () {
|
|
1611
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
1610
1612
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
1611
1613
|
});
|
|
1612
1614
|
|
|
@@ -1624,6 +1626,11 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
1624
1626
|
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
|
1625
1627
|
defineProperty(value, 'length', { value: options.arity });
|
|
1626
1628
|
}
|
|
1629
|
+
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
|
1630
|
+
if (DESCRIPTORS) try {
|
|
1631
|
+
defineProperty(value, 'prototype', { writable: false });
|
|
1632
|
+
} catch (error) { /* empty */ }
|
|
1633
|
+
} else value.prototype = undefined;
|
|
1627
1634
|
var state = enforceInternalState(value);
|
|
1628
1635
|
if (!hasOwn(state, 'source')) {
|
|
1629
1636
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
@@ -2838,7 +2845,7 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
|
|
|
2838
2845
|
}
|
|
2839
2846
|
});
|
|
2840
2847
|
|
|
2841
|
-
$({ global: true, forced: true }, {
|
|
2848
|
+
$({ global: true, constructor: true, forced: true }, {
|
|
2842
2849
|
Symbol: SymbolWrapper
|
|
2843
2850
|
});
|
|
2844
2851
|
}
|
|
@@ -3016,14 +3023,14 @@ var FORCED = Error('e', { cause: 7 }).cause !== 7;
|
|
|
3016
3023
|
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3017
3024
|
var O = {};
|
|
3018
3025
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
3019
|
-
$({ global: true, arity: 1, forced: FORCED }, O);
|
|
3026
|
+
$({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
3020
3027
|
};
|
|
3021
3028
|
|
|
3022
3029
|
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3023
3030
|
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
3024
3031
|
var O = {};
|
|
3025
3032
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
3026
|
-
$({ target: WEB_ASSEMBLY, stat: true, arity: 1, forced: FORCED }, O);
|
|
3033
|
+
$({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
3027
3034
|
}
|
|
3028
3035
|
};
|
|
3029
3036
|
|
|
@@ -3401,7 +3408,7 @@ var AggregateErrorPrototype = $AggregateError.prototype = create(Error.prototype
|
|
|
3401
3408
|
|
|
3402
3409
|
// `AggregateError` constructor
|
|
3403
3410
|
// https://tc39.es/ecma262/#sec-aggregate-error-constructor
|
|
3404
|
-
$({ global: true }, {
|
|
3411
|
+
$({ global: true, constructor: true, arity: 2 }, {
|
|
3405
3412
|
AggregateError: $AggregateError
|
|
3406
3413
|
});
|
|
3407
3414
|
|
|
@@ -3628,7 +3635,7 @@ var FORCED = !fails(function () {
|
|
|
3628
3635
|
});
|
|
3629
3636
|
|
|
3630
3637
|
// https://github.com/tc39/proposal-error-cause
|
|
3631
|
-
$({ global: true, arity: 2, forced: FORCED }, {
|
|
3638
|
+
$({ global: true, constructor: true, arity: 2, forced: FORCED }, {
|
|
3632
3639
|
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) {
|
|
3633
3640
|
// eslint-disable-next-line no-unused-vars -- required for functions `.length`
|
|
3634
3641
|
return function AggregateError(errors, message) { return apply(init, this, arguments); };
|
|
@@ -5285,7 +5292,7 @@ var NativeArrayBuffer = global[ARRAY_BUFFER];
|
|
|
5285
5292
|
|
|
5286
5293
|
// `ArrayBuffer` constructor
|
|
5287
5294
|
// https://tc39.es/ecma262/#sec-arraybuffer-constructor
|
|
5288
|
-
$({ global: true, forced: NativeArrayBuffer !== ArrayBuffer }, {
|
|
5295
|
+
$({ global: true, constructor: true, forced: NativeArrayBuffer !== ArrayBuffer }, {
|
|
5289
5296
|
ArrayBuffer: ArrayBuffer
|
|
5290
5297
|
});
|
|
5291
5298
|
|
|
@@ -6016,7 +6023,7 @@ var NATIVE_ARRAY_BUFFER = __webpack_require__(184);
|
|
|
6016
6023
|
|
|
6017
6024
|
// `DataView` constructor
|
|
6018
6025
|
// https://tc39.es/ecma262/#sec-dataview-constructor
|
|
6019
|
-
$({ global: true, forced: !NATIVE_ARRAY_BUFFER }, {
|
|
6026
|
+
$({ global: true, constructor: true, forced: !NATIVE_ARRAY_BUFFER }, {
|
|
6020
6027
|
DataView: ArrayBufferModule.DataView
|
|
6021
6028
|
});
|
|
6022
6029
|
|
|
@@ -6649,7 +6656,7 @@ module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
|
6649
6656
|
}
|
|
6650
6657
|
|
|
6651
6658
|
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
6652
|
-
$({ global: true, forced: Constructor != NativeConstructor }, exported);
|
|
6659
|
+
$({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);
|
|
6653
6660
|
|
|
6654
6661
|
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
6655
6662
|
|
|
@@ -7561,7 +7568,7 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
|
|
|
7561
7568
|
}
|
|
7562
7569
|
NumberWrapper.prototype = NumberPrototype;
|
|
7563
7570
|
NumberPrototype.constructor = NumberWrapper;
|
|
7564
|
-
defineBuiltIn(global, NUMBER, NumberWrapper);
|
|
7571
|
+
defineBuiltIn(global, NUMBER, NumberWrapper, { constructor: true });
|
|
7565
7572
|
}
|
|
7566
7573
|
|
|
7567
7574
|
|
|
@@ -9131,7 +9138,7 @@ if (FORCED_PROMISE_CONSTRUCTOR) {
|
|
|
9131
9138
|
}
|
|
9132
9139
|
}
|
|
9133
9140
|
|
|
9134
|
-
$({ global: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
9141
|
+
$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
9135
9142
|
Promise: PromiseConstructor
|
|
9136
9143
|
});
|
|
9137
9144
|
|
|
@@ -10460,7 +10467,7 @@ if (isForced('RegExp', BASE_FORCED)) {
|
|
|
10460
10467
|
|
|
10461
10468
|
RegExpPrototype.constructor = RegExpWrapper;
|
|
10462
10469
|
RegExpWrapper.prototype = RegExpPrototype;
|
|
10463
|
-
defineBuiltIn(global, 'RegExp', RegExpWrapper);
|
|
10470
|
+
defineBuiltIn(global, 'RegExp', RegExpWrapper, { constructor: true });
|
|
10464
10471
|
}
|
|
10465
10472
|
|
|
10466
10473
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
@@ -12819,11 +12826,11 @@ if (DESCRIPTORS) {
|
|
|
12819
12826
|
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
|
|
12820
12827
|
}
|
|
12821
12828
|
|
|
12829
|
+
var FORCED = TypedArrayConstructor != NativeTypedArrayConstructor;
|
|
12830
|
+
|
|
12822
12831
|
exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
|
|
12823
12832
|
|
|
12824
|
-
$({
|
|
12825
|
-
global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS
|
|
12826
|
-
}, exported);
|
|
12833
|
+
$({ global: true, constructor: true, forced: FORCED, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported);
|
|
12827
12834
|
|
|
12828
12835
|
if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
|
|
12829
12836
|
createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
|
|
@@ -15027,7 +15034,7 @@ if (IS_PURE || !hasOwn(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPr
|
|
|
15027
15034
|
createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor);
|
|
15028
15035
|
}
|
|
15029
15036
|
|
|
15030
|
-
$({ global: true, forced: IS_PURE }, {
|
|
15037
|
+
$({ global: true, constructor: true, forced: IS_PURE }, {
|
|
15031
15038
|
AsyncIterator: AsyncIteratorConstructor
|
|
15032
15039
|
});
|
|
15033
15040
|
|
|
@@ -15924,7 +15931,7 @@ if (FORCED || !hasOwn(IteratorPrototype, 'constructor') || IteratorPrototype.con
|
|
|
15924
15931
|
|
|
15925
15932
|
IteratorConstructor.prototype = IteratorPrototype;
|
|
15926
15933
|
|
|
15927
|
-
$({ global: true, forced: FORCED }, {
|
|
15934
|
+
$({ global: true, constructor: true, forced: FORCED }, {
|
|
15928
15935
|
Iterator: IteratorConstructor
|
|
15929
15936
|
});
|
|
15930
15937
|
|
|
@@ -17724,7 +17731,7 @@ defineBuiltIns(ObservablePrototype, {
|
|
|
17724
17731
|
|
|
17725
17732
|
defineBuiltIn(ObservablePrototype, $$OBSERVABLE, function () { return this; });
|
|
17726
17733
|
|
|
17727
|
-
$({ global: true, forced: OBSERVABLE_FORCED }, {
|
|
17734
|
+
$({ global: true, constructor: true, forced: OBSERVABLE_FORCED }, {
|
|
17728
17735
|
Observable: $Observable
|
|
17729
17736
|
});
|
|
17730
17737
|
|
|
@@ -19589,7 +19596,7 @@ var FORCED_CONSTRUCTOR = IS_PURE ? INCORRECT_TO_STRING || INCORRECT_CODE || MISS
|
|
|
19589
19596
|
|
|
19590
19597
|
// `DOMException` constructor
|
|
19591
19598
|
// https://webidl.spec.whatwg.org/#idl-DOMException
|
|
19592
|
-
$({ global: true, forced: FORCED_CONSTRUCTOR }, {
|
|
19599
|
+
$({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, {
|
|
19593
19600
|
DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
|
|
19594
19601
|
});
|
|
19595
19602
|
|
|
@@ -19709,7 +19716,7 @@ var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !DOM_EXCEPTION_HAS_STACK;
|
|
|
19709
19716
|
|
|
19710
19717
|
// `DOMException` constructor patch for `.stack` where it's required
|
|
19711
19718
|
// https://webidl.spec.whatwg.org/#es-DOMException-specialness
|
|
19712
|
-
$({ global: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic
|
|
19719
|
+
$({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic
|
|
19713
19720
|
DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
|
|
19714
19721
|
});
|
|
19715
19722
|
|
|
@@ -19874,30 +19881,42 @@ var checkBasicSemantic = function (structuredCloneImplementation) {
|
|
|
19874
19881
|
}) && structuredCloneImplementation;
|
|
19875
19882
|
};
|
|
19876
19883
|
|
|
19884
|
+
var checkErrorsCloning = function (structuredCloneImplementation) {
|
|
19885
|
+
return !fails(function () {
|
|
19886
|
+
var error = new Error();
|
|
19887
|
+
var test = structuredCloneImplementation({ a: error, b: error });
|
|
19888
|
+
return !(test && test.a === test.b && test.a instanceof Error);
|
|
19889
|
+
});
|
|
19890
|
+
};
|
|
19891
|
+
|
|
19877
19892
|
// https://github.com/whatwg/html/pull/5749
|
|
19878
|
-
var
|
|
19893
|
+
var checkNewErrorsCloningSemantic = function (structuredCloneImplementation) {
|
|
19879
19894
|
return !fails(function () {
|
|
19880
19895
|
var test = structuredCloneImplementation(new global.AggregateError([1], PERFORMANCE_MARK, { cause: 3 }));
|
|
19881
19896
|
return test.name != 'AggregateError' || test.errors[0] != 1 || test.message != PERFORMANCE_MARK || test.cause != 3;
|
|
19882
|
-
})
|
|
19897
|
+
});
|
|
19883
19898
|
};
|
|
19884
19899
|
|
|
19885
|
-
// FF94+, Safari
|
|
19886
|
-
//
|
|
19900
|
+
// FF94+, Safari 15.4+, Chrome 98+, NodeJS 17.0+, Deno 1.13+
|
|
19901
|
+
// FF and Safari implementations can't clone errors
|
|
19887
19902
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1556604
|
|
19903
|
+
// Chrome <103 returns `null` if cloned object contains multiple references to one error
|
|
19904
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12542
|
|
19888
19905
|
// no one of current implementations supports new (html/5749) error cloning semantic
|
|
19889
19906
|
var nativeStructuredClone = global.structuredClone;
|
|
19890
19907
|
|
|
19891
|
-
var FORCED_REPLACEMENT = IS_PURE || !
|
|
19908
|
+
var FORCED_REPLACEMENT = IS_PURE || !checkErrorsCloning(nativeStructuredClone) || !checkNewErrorsCloningSemantic(nativeStructuredClone);
|
|
19892
19909
|
|
|
19893
19910
|
// Chrome 82+, Safari 14.1+, Deno 1.11+
|
|
19894
19911
|
// Chrome 78-81 implementation swaps `.name` and `.message` of cloned `DOMException`
|
|
19912
|
+
// Chrome returns `null` if cloned object contains multiple references to one error
|
|
19895
19913
|
// Safari 14.1 implementation doesn't clone some `RegExp` flags, so requires a workaround
|
|
19896
|
-
//
|
|
19914
|
+
// Safari implementation can't clone errors
|
|
19897
19915
|
// Deno 1.2-1.10 implementations too naive
|
|
19898
|
-
// NodeJS 16.0+ does not have `PerformanceMark` constructor
|
|
19899
|
-
//
|
|
19900
|
-
//
|
|
19916
|
+
// NodeJS 16.0+ does not have `PerformanceMark` constructor
|
|
19917
|
+
// NodeJS <17.2 structured cloning implementation from `performance.mark` is too naive
|
|
19918
|
+
// and can't clone, for example, `RegExp` or some boxed primitives
|
|
19919
|
+
// https://github.com/nodejs/node/issues/40840
|
|
19901
19920
|
// no one of current implementations supports new (html/5749) error cloning semantic
|
|
19902
19921
|
var structuredCloneFromMark = !nativeStructuredClone && checkBasicSemantic(function (value) {
|
|
19903
19922
|
return new PerformanceMark(PERFORMANCE_MARK, { detail: value }).detail;
|
|
@@ -21402,7 +21421,7 @@ if (NativeURL) {
|
|
|
21402
21421
|
|
|
21403
21422
|
setToStringTag(URLConstructor, 'URL');
|
|
21404
21423
|
|
|
21405
|
-
$({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
21424
|
+
$({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
21406
21425
|
URL: URLConstructor
|
|
21407
21426
|
});
|
|
21408
21427
|
|
|
@@ -21980,7 +21999,7 @@ defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
|
|
|
21980
21999
|
|
|
21981
22000
|
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
21982
22001
|
|
|
21983
|
-
$({ global: true, forced: !USE_NATIVE_URL }, {
|
|
22002
|
+
$({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
|
|
21984
22003
|
URLSearchParams: URLSearchParamsConstructor
|
|
21985
22004
|
});
|
|
21986
22005
|
|
|
@@ -22023,7 +22042,7 @@ if (!USE_NATIVE_URL && isCallable(Headers)) {
|
|
|
22023
22042
|
RequestPrototype.constructor = RequestConstructor;
|
|
22024
22043
|
RequestConstructor.prototype = RequestPrototype;
|
|
22025
22044
|
|
|
22026
|
-
$({ global: true,
|
|
22045
|
+
$({ global: true, constructor: true, noTargetGet: true, forced: true }, {
|
|
22027
22046
|
Request: RequestConstructor
|
|
22028
22047
|
});
|
|
22029
22048
|
}
|