core-js-bundle 3.36.0 → 3.36.1
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 +49 -12
- package/minified.js +10 -10
- package/minified.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* core-js 3.36.
|
|
2
|
+
* core-js 3.36.1
|
|
3
3
|
* © 2014-2024 Denis Pushkarev (zloirock.ru)
|
|
4
|
-
* license: https://github.com/zloirock/core-js/blob/v3.36.
|
|
4
|
+
* license: https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE
|
|
5
5
|
* source: https://github.com/zloirock/core-js
|
|
6
6
|
*/
|
|
7
7
|
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
|
|
@@ -1481,10 +1481,10 @@ var SHARED = '__core-js_shared__';
|
|
|
1481
1481
|
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
1482
1482
|
|
|
1483
1483
|
(store.versions || (store.versions = [])).push({
|
|
1484
|
-
version: '3.36.
|
|
1484
|
+
version: '3.36.1',
|
|
1485
1485
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1486
1486
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
1487
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.36.
|
|
1487
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
|
|
1488
1488
|
source: 'https://github.com/zloirock/core-js'
|
|
1489
1489
|
});
|
|
1490
1490
|
|
|
@@ -3477,7 +3477,8 @@ module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
|
3477
3477
|
|
|
3478
3478
|
/* eslint-disable no-proto -- safe */
|
|
3479
3479
|
var uncurryThisAccessor = __webpack_require__(114);
|
|
3480
|
-
var
|
|
3480
|
+
var isObject = __webpack_require__(20);
|
|
3481
|
+
var requireObjectCoercible = __webpack_require__(16);
|
|
3481
3482
|
var aPossiblePrototype = __webpack_require__(115);
|
|
3482
3483
|
|
|
3483
3484
|
// `Object.setPrototypeOf` method
|
|
@@ -3494,8 +3495,9 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
3494
3495
|
CORRECT_SETTER = test instanceof Array;
|
|
3495
3496
|
} catch (error) { /* empty */ }
|
|
3496
3497
|
return function setPrototypeOf(O, proto) {
|
|
3497
|
-
|
|
3498
|
+
requireObjectCoercible(O);
|
|
3498
3499
|
aPossiblePrototype(proto);
|
|
3500
|
+
if (!isObject(O)) return O;
|
|
3499
3501
|
if (CORRECT_SETTER) setter(O, proto);
|
|
3500
3502
|
else O.__proto__ = proto;
|
|
3501
3503
|
return O;
|
|
@@ -4743,9 +4745,9 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
|
|
|
4743
4745
|
var length, result, step, iterator, next, value;
|
|
4744
4746
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
4745
4747
|
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
4748
|
+
result = IS_CONSTRUCTOR ? new this() : [];
|
|
4746
4749
|
iterator = getIterator(O, iteratorMethod);
|
|
4747
4750
|
next = iterator.next;
|
|
4748
|
-
result = IS_CONSTRUCTOR ? new this() : [];
|
|
4749
4751
|
for (;!(step = call(next, iterator)).done; index++) {
|
|
4750
4752
|
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
|
4751
4753
|
createProperty(result, index, value);
|
|
@@ -16151,6 +16153,7 @@ collection('WeakSet', function (init) {
|
|
|
16151
16153
|
"use strict";
|
|
16152
16154
|
|
|
16153
16155
|
var $ = __webpack_require__(3);
|
|
16156
|
+
var globalThis = __webpack_require__(4);
|
|
16154
16157
|
var isPrototypeOf = __webpack_require__(24);
|
|
16155
16158
|
var getPrototypeOf = __webpack_require__(128);
|
|
16156
16159
|
var setPrototypeOf = __webpack_require__(113);
|
|
@@ -16161,15 +16164,30 @@ var createPropertyDescriptor = __webpack_require__(11);
|
|
|
16161
16164
|
var installErrorStack = __webpack_require__(121);
|
|
16162
16165
|
var normalizeStringArgument = __webpack_require__(119);
|
|
16163
16166
|
var wellKnownSymbol = __webpack_require__(33);
|
|
16167
|
+
var fails = __webpack_require__(7);
|
|
16168
|
+
var IS_PURE = __webpack_require__(36);
|
|
16164
16169
|
|
|
16170
|
+
var NativeSuppressedError = globalThis.SuppressedError;
|
|
16165
16171
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
16166
16172
|
var $Error = Error;
|
|
16167
16173
|
|
|
16174
|
+
// https://github.com/oven-sh/bun/issues/9282
|
|
16175
|
+
var WRONG_ARITY = !!NativeSuppressedError && NativeSuppressedError.length !== 3;
|
|
16176
|
+
|
|
16177
|
+
// https://github.com/oven-sh/bun/issues/9283
|
|
16178
|
+
var EXTRA_ARGS_SUPPORT = !!NativeSuppressedError && fails(function () {
|
|
16179
|
+
return NativeSuppressedError(1, 2, 3, { cause: 4 }).cause === 4;
|
|
16180
|
+
});
|
|
16181
|
+
|
|
16182
|
+
var PATCH = WRONG_ARITY || EXTRA_ARGS_SUPPORT;
|
|
16183
|
+
|
|
16168
16184
|
var $SuppressedError = function SuppressedError(error, suppressed, message) {
|
|
16169
16185
|
var isInstance = isPrototypeOf(SuppressedErrorPrototype, this);
|
|
16170
16186
|
var that;
|
|
16171
16187
|
if (setPrototypeOf) {
|
|
16172
|
-
that =
|
|
16188
|
+
that = PATCH && (!isInstance || getPrototypeOf(this) === SuppressedErrorPrototype)
|
|
16189
|
+
? new NativeSuppressedError()
|
|
16190
|
+
: setPrototypeOf(new $Error(), isInstance ? getPrototypeOf(this) : SuppressedErrorPrototype);
|
|
16173
16191
|
} else {
|
|
16174
16192
|
that = isInstance ? this : create(SuppressedErrorPrototype);
|
|
16175
16193
|
createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');
|
|
@@ -16184,15 +16202,17 @@ var $SuppressedError = function SuppressedError(error, suppressed, message) {
|
|
|
16184
16202
|
if (setPrototypeOf) setPrototypeOf($SuppressedError, $Error);
|
|
16185
16203
|
else copyConstructorProperties($SuppressedError, $Error, { name: true });
|
|
16186
16204
|
|
|
16187
|
-
var SuppressedErrorPrototype = $SuppressedError.prototype = create($Error.prototype, {
|
|
16205
|
+
var SuppressedErrorPrototype = $SuppressedError.prototype = PATCH ? NativeSuppressedError.prototype : create($Error.prototype, {
|
|
16188
16206
|
constructor: createPropertyDescriptor(1, $SuppressedError),
|
|
16189
16207
|
message: createPropertyDescriptor(1, ''),
|
|
16190
16208
|
name: createPropertyDescriptor(1, 'SuppressedError')
|
|
16191
16209
|
});
|
|
16192
16210
|
|
|
16211
|
+
if (PATCH && !IS_PURE) SuppressedErrorPrototype.constructor = $SuppressedError;
|
|
16212
|
+
|
|
16193
16213
|
// `SuppressedError` constructor
|
|
16194
16214
|
// https://github.com/tc39/proposal-explicit-resource-management
|
|
16195
|
-
$({ global: true, constructor: true, arity: 3 }, {
|
|
16215
|
+
$({ global: true, constructor: true, arity: 3, forced: PATCH }, {
|
|
16196
16216
|
SuppressedError: $SuppressedError
|
|
16197
16217
|
});
|
|
16198
16218
|
|
|
@@ -24600,13 +24620,24 @@ module.exports = typeof Bun == 'function' && Bun && typeof Bun.version == 'strin
|
|
|
24600
24620
|
"use strict";
|
|
24601
24621
|
|
|
24602
24622
|
var $ = __webpack_require__(3);
|
|
24623
|
+
var globalThis = __webpack_require__(4);
|
|
24603
24624
|
var microtask = __webpack_require__(344);
|
|
24604
24625
|
var aCallable = __webpack_require__(30);
|
|
24605
24626
|
var validateArgumentsLength = __webpack_require__(342);
|
|
24627
|
+
var fails = __webpack_require__(7);
|
|
24628
|
+
var DESCRIPTORS = __webpack_require__(6);
|
|
24629
|
+
|
|
24630
|
+
// Bun ~ 1.0.30 bug
|
|
24631
|
+
// https://github.com/oven-sh/bun/issues/9249
|
|
24632
|
+
var WRONG_ARITY = fails(function () {
|
|
24633
|
+
// getOwnPropertyDescriptor for prevent experimental warning in Node 11
|
|
24634
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
24635
|
+
return DESCRIPTORS && Object.getOwnPropertyDescriptor(globalThis, 'queueMicrotask').value.length !== 1;
|
|
24636
|
+
});
|
|
24606
24637
|
|
|
24607
24638
|
// `queueMicrotask` method
|
|
24608
24639
|
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask
|
|
24609
|
-
$({ global: true, enumerable: true, dontCallGetSet: true }, {
|
|
24640
|
+
$({ global: true, enumerable: true, dontCallGetSet: true, forced: WRONG_ARITY }, {
|
|
24610
24641
|
queueMicrotask: function queueMicrotask(fn) {
|
|
24611
24642
|
validateArgumentsLength(arguments.length, 1);
|
|
24612
24643
|
microtask(aCallable(fn));
|
|
@@ -26995,9 +27026,15 @@ var THROWS_WITHOUT_ARGUMENTS = USE_NATIVE_URL && fails(function () {
|
|
|
26995
27026
|
URL.canParse();
|
|
26996
27027
|
});
|
|
26997
27028
|
|
|
27029
|
+
// Bun ~ 1.0.30 bug
|
|
27030
|
+
// https://github.com/oven-sh/bun/issues/9250
|
|
27031
|
+
var WRONG_ARITY = fails(function () {
|
|
27032
|
+
return URL.canParse.length !== 1;
|
|
27033
|
+
});
|
|
27034
|
+
|
|
26998
27035
|
// `URL.canParse` method
|
|
26999
27036
|
// https://url.spec.whatwg.org/#dom-url-canparse
|
|
27000
|
-
$({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, {
|
|
27037
|
+
$({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS || WRONG_ARITY }, {
|
|
27001
27038
|
canParse: function canParse(url) {
|
|
27002
27039
|
var length = validateArgumentsLength(arguments.length, 1);
|
|
27003
27040
|
var urlString = toString(url);
|