core-js-bundle 3.35.0 → 3.35.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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2023 Denis Pushkarev
1
+ Copyright (c) 2014-2024 Denis Pushkarev
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * core-js 3.35.0
3
- * © 2014-2023 Denis Pushkarev (zloirock.ru)
4
- * license: https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE
2
+ * core-js 3.35.1
3
+ * © 2014-2024 Denis Pushkarev (zloirock.ru)
4
+ * license: https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE
5
5
  * source: https://github.com/zloirock/core-js
6
6
  */
7
7
  !function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
@@ -859,7 +859,7 @@ module.exports = function (options, source) {
859
859
  } else if (STATIC) {
860
860
  target = global[TARGET] || defineGlobalProperty(TARGET, {});
861
861
  } else {
862
- target = (global[TARGET] || {}).prototype;
862
+ target = global[TARGET] && global[TARGET].prototype;
863
863
  }
864
864
  if (target) for (key in source) {
865
865
  sourceProperty = source[key];
@@ -1466,10 +1466,10 @@ var store = __webpack_require__(36);
1466
1466
  (module.exports = function (key, value) {
1467
1467
  return store[key] || (store[key] = value !== undefined ? value : {});
1468
1468
  })('versions', []).push({
1469
- version: '3.35.0',
1469
+ version: '3.35.1',
1470
1470
  mode: IS_PURE ? 'pure' : 'global',
1471
- copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1472
- license: 'https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE',
1471
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
1472
+ license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
1473
1473
  source: 'https://github.com/zloirock/core-js'
1474
1474
  });
1475
1475
 
@@ -1782,7 +1782,7 @@ var TEMPLATE = String(String).split('String');
1782
1782
 
1783
1783
  var makeBuiltIn = module.exports = function (value, name, options) {
1784
1784
  if (stringSlice($String(name), 0, 7) === 'Symbol(') {
1785
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
1785
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
1786
1786
  }
1787
1787
  if (options && options.getter) name = 'get ' + name;
1788
1788
  if (options && options.setter) name = 'set ' + name;
@@ -2192,7 +2192,8 @@ var min = Math.min;
2192
2192
  // `ToLength` abstract operation
2193
2193
  // https://tc39.es/ecma262/#sec-tolength
2194
2194
  module.exports = function (argument) {
2195
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
2195
+ var len = toIntegerOrInfinity(argument);
2196
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
2196
2197
  };
2197
2198
 
2198
2199
 
@@ -2811,7 +2812,6 @@ var getBuiltIn = __webpack_require__(23);
2811
2812
  var inspectSource = __webpack_require__(50);
2812
2813
 
2813
2814
  var noop = function () { /* empty */ };
2814
- var empty = [];
2815
2815
  var construct = getBuiltIn('Reflect', 'construct');
2816
2816
  var constructorRegExp = /^\s*(?:class|function)\b/;
2817
2817
  var exec = uncurryThis(constructorRegExp.exec);
@@ -2820,7 +2820,7 @@ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
2820
2820
  var isConstructorModern = function isConstructor(argument) {
2821
2821
  if (!isCallable(argument)) return false;
2822
2822
  try {
2823
- construct(noop, empty, argument);
2823
+ construct(noop, [], argument);
2824
2824
  return true;
2825
2825
  } catch (error) {
2826
2826
  return false;
@@ -12809,7 +12809,7 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
12809
12809
 
12810
12810
  // TODO: Remove from `core-js@4` since it's moved to entry points
12811
12811
  __webpack_require__(379);
12812
- var uncurryThis = __webpack_require__(85);
12812
+ var call = __webpack_require__(8);
12813
12813
  var defineBuiltIn = __webpack_require__(47);
12814
12814
  var regexpExec = __webpack_require__(380);
12815
12815
  var fails = __webpack_require__(7);
@@ -12823,7 +12823,7 @@ module.exports = function (KEY, exec, FORCED, SHAM) {
12823
12823
  var SYMBOL = wellKnownSymbol(KEY);
12824
12824
 
12825
12825
  var DELEGATES_TO_SYMBOL = !fails(function () {
12826
- // String methods call symbol-named RegEp methods
12826
+ // String methods call symbol-named RegExp methods
12827
12827
  var O = {};
12828
12828
  O[SYMBOL] = function () { return 7; };
12829
12829
  return ''[KEY](O) !== 7;
@@ -12861,18 +12861,17 @@ module.exports = function (KEY, exec, FORCED, SHAM) {
12861
12861
  !DELEGATES_TO_EXEC ||
12862
12862
  FORCED
12863
12863
  ) {
12864
- var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);
12864
+ var nativeRegExpMethod = /./[SYMBOL];
12865
12865
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
12866
- var uncurriedNativeMethod = uncurryThis(nativeMethod);
12867
12866
  var $exec = regexp.exec;
12868
12867
  if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
12869
12868
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
12870
12869
  // The native String method already delegates to @@method (this
12871
12870
  // polyfilled function), leasing to infinite recursion.
12872
12871
  // We avoid it by directly calling the native @@method method.
12873
- return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
12872
+ return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) };
12874
12873
  }
12875
- return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
12874
+ return { done: true, value: call(nativeMethod, str, regexp, arg2) };
12876
12875
  }
12877
12876
  return { done: false };
12878
12877
  });
@@ -13367,12 +13366,6 @@ var replace = uncurryThis(''.replace);
13367
13366
  var stringSlice = uncurryThis(''.slice);
13368
13367
  var max = Math.max;
13369
13368
 
13370
- var stringIndexOf = function (string, searchValue, fromIndex) {
13371
- if (fromIndex > string.length) return -1;
13372
- if (searchValue === '') return fromIndex;
13373
- return indexOf(string, searchValue, fromIndex);
13374
- };
13375
-
13376
13369
  // `String.prototype.replaceAll` method
13377
13370
  // https://tc39.es/ecma262/#sec-string.prototype.replaceall
13378
13371
  $({ target: 'String', proto: true }, {
@@ -13401,14 +13394,14 @@ $({ target: 'String', proto: true }, {
13401
13394
  if (!functionalReplace) replaceValue = toString(replaceValue);
13402
13395
  searchLength = searchString.length;
13403
13396
  advanceBy = max(1, searchLength);
13404
- position = stringIndexOf(string, searchString, 0);
13397
+ position = indexOf(string, searchString);
13405
13398
  while (position !== -1) {
13406
13399
  replacement = functionalReplace
13407
13400
  ? toString(replaceValue(searchString, position, string))
13408
13401
  : getSubstitution(searchString, string, position, [], undefined, replaceValue);
13409
13402
  result += stringSlice(string, endOfLastMatch, position) + replacement;
13410
13403
  endOfLastMatch = position + searchLength;
13411
- position = stringIndexOf(string, searchString, position + advanceBy);
13404
+ position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy);
13412
13405
  }
13413
13406
  if (endOfLastMatch < string.length) {
13414
13407
  result += stringSlice(string, endOfLastMatch);
@@ -13469,31 +13462,25 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
13469
13462
 
13470
13463
  "use strict";
13471
13464
 
13472
- var apply = __webpack_require__(94);
13473
13465
  var call = __webpack_require__(8);
13474
13466
  var uncurryThis = __webpack_require__(14);
13475
13467
  var fixRegExpWellKnownSymbolLogic = __webpack_require__(398);
13476
13468
  var anObject = __webpack_require__(46);
13477
13469
  var isNullOrUndefined = __webpack_require__(17);
13478
- var isRegExp = __webpack_require__(372);
13479
13470
  var requireObjectCoercible = __webpack_require__(16);
13480
13471
  var speciesConstructor = __webpack_require__(219);
13481
13472
  var advanceStringIndex = __webpack_require__(399);
13482
13473
  var toLength = __webpack_require__(64);
13483
13474
  var toString = __webpack_require__(68);
13484
13475
  var getMethod = __webpack_require__(29);
13485
- var arraySlice = __webpack_require__(76);
13486
- var callRegExpExec = __webpack_require__(400);
13487
- var regexpExec = __webpack_require__(380);
13476
+ var regExpExec = __webpack_require__(400);
13488
13477
  var stickyHelpers = __webpack_require__(375);
13489
13478
  var fails = __webpack_require__(7);
13490
13479
 
13491
13480
  var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
13492
13481
  var MAX_UINT32 = 0xFFFFFFFF;
13493
13482
  var min = Math.min;
13494
- var $push = [].push;
13495
- var exec = uncurryThis(/./.exec);
13496
- var push = uncurryThis($push);
13483
+ var push = uncurryThis([].push);
13497
13484
  var stringSlice = uncurryThis(''.slice);
13498
13485
 
13499
13486
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
@@ -13507,60 +13494,20 @@ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
13507
13494
  return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
13508
13495
  });
13509
13496
 
13497
+ var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
13498
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
13499
+ 'test'.split(/(?:)/, -1).length !== 4 ||
13500
+ 'ab'.split(/(?:ab)*/).length !== 2 ||
13501
+ '.'.split(/(.?)(.?)/).length !== 4 ||
13502
+ // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
13503
+ '.'.split(/()()/).length > 1 ||
13504
+ ''.split(/.?/).length;
13505
+
13510
13506
  // @@split logic
13511
13507
  fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
13512
- var internalSplit;
13513
- if (
13514
- 'abbc'.split(/(b)*/)[1] === 'c' ||
13515
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
13516
- 'test'.split(/(?:)/, -1).length !== 4 ||
13517
- 'ab'.split(/(?:ab)*/).length !== 2 ||
13518
- '.'.split(/(.?)(.?)/).length !== 4 ||
13519
- // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
13520
- '.'.split(/()()/).length > 1 ||
13521
- ''.split(/.?/).length
13522
- ) {
13523
- // based on es5-shim implementation, need to rework it
13524
- internalSplit = function (separator, limit) {
13525
- var string = toString(requireObjectCoercible(this));
13526
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
13527
- if (lim === 0) return [];
13528
- if (separator === undefined) return [string];
13529
- // If `separator` is not a regex, use native split
13530
- if (!isRegExp(separator)) {
13531
- return call(nativeSplit, string, separator, lim);
13532
- }
13533
- var output = [];
13534
- var flags = (separator.ignoreCase ? 'i' : '') +
13535
- (separator.multiline ? 'm' : '') +
13536
- (separator.unicode ? 'u' : '') +
13537
- (separator.sticky ? 'y' : '');
13538
- var lastLastIndex = 0;
13539
- // Make `global` and avoid `lastIndex` issues by working with a copy
13540
- var separatorCopy = new RegExp(separator.source, flags + 'g');
13541
- var match, lastIndex, lastLength;
13542
- while (match = call(regexpExec, separatorCopy, string)) {
13543
- lastIndex = separatorCopy.lastIndex;
13544
- if (lastIndex > lastLastIndex) {
13545
- push(output, stringSlice(string, lastLastIndex, match.index));
13546
- if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1));
13547
- lastLength = match[0].length;
13548
- lastLastIndex = lastIndex;
13549
- if (output.length >= lim) break;
13550
- }
13551
- if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
13552
- }
13553
- if (lastLastIndex === string.length) {
13554
- if (lastLength || !exec(separatorCopy, '')) push(output, '');
13555
- } else push(output, stringSlice(string, lastLastIndex));
13556
- return output.length > lim ? arraySlice(output, 0, lim) : output;
13557
- };
13558
- // Chakra, V8
13559
- } else if ('0'.split(undefined, 0).length) {
13560
- internalSplit = function (separator, limit) {
13561
- return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
13562
- };
13563
- } else internalSplit = nativeSplit;
13508
+ var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
13509
+ return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
13510
+ } : nativeSplit;
13564
13511
 
13565
13512
  return [
13566
13513
  // `String.prototype.split` method
@@ -13580,30 +13527,30 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
13580
13527
  function (string, limit) {
13581
13528
  var rx = anObject(this);
13582
13529
  var S = toString(string);
13583
- var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
13584
13530
 
13585
- if (res.done) return res.value;
13531
+ if (!BUGGY) {
13532
+ var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
13533
+ if (res.done) return res.value;
13534
+ }
13586
13535
 
13587
13536
  var C = speciesConstructor(rx, RegExp);
13588
-
13589
13537
  var unicodeMatching = rx.unicode;
13590
13538
  var flags = (rx.ignoreCase ? 'i' : '') +
13591
13539
  (rx.multiline ? 'm' : '') +
13592
13540
  (rx.unicode ? 'u' : '') +
13593
13541
  (UNSUPPORTED_Y ? 'g' : 'y');
13594
-
13595
13542
  // ^(? + rx + ) is needed, in combination with some S slicing, to
13596
13543
  // simulate the 'y' flag.
13597
13544
  var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
13598
13545
  var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
13599
13546
  if (lim === 0) return [];
13600
- if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
13547
+ if (S.length === 0) return regExpExec(splitter, S) === null ? [S] : [];
13601
13548
  var p = 0;
13602
13549
  var q = 0;
13603
13550
  var A = [];
13604
13551
  while (q < S.length) {
13605
13552
  splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
13606
- var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
13553
+ var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
13607
13554
  var e;
13608
13555
  if (
13609
13556
  z === null ||
@@ -13624,7 +13571,7 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
13624
13571
  return A;
13625
13572
  }
13626
13573
  ];
13627
- }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
13574
+ }, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
13628
13575
 
13629
13576
 
13630
13577
  /***/ }),