core-js-bundle 3.28.0 → 3.29.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/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  ## Raising funds
15
15
 
16
- `core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer if you are interested in `core-js`: [**Open Collective**](https://opencollective.com/core-js), [**Patreon**](https://patreon.com/zloirock), **Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz )**.
16
+ `core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer if you are interested in `core-js`: [**Open Collective**](https://opencollective.com/core-js), [**Patreon**](https://patreon.com/zloirock), [**Boosty**](https://boosty.to/zloirock), **Bitcoin ( bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz )**, [**Alipay**](https://user-images.githubusercontent.com/2213682/219464783-c17ad329-17ce-4795-82a7-f609493345ed.png).
17
17
 
18
18
  ---
19
19
 
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * core-js 3.28.0
2
+ * core-js 3.29.0
3
3
  * © 2014-2023 Denis Pushkarev (zloirock.ru)
4
- * license: https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE
4
+ * license: https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE
5
5
  * source: https://github.com/zloirock/core-js
6
6
  */
7
7
  !function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
@@ -514,7 +514,8 @@ __webpack_require__(739);
514
514
  __webpack_require__(740);
515
515
  __webpack_require__(743);
516
516
  __webpack_require__(748);
517
- module.exports = __webpack_require__(749);
517
+ __webpack_require__(749);
518
+ module.exports = __webpack_require__(750);
518
519
 
519
520
 
520
521
  /***/ }),
@@ -1388,10 +1389,10 @@ var store = __webpack_require__(37);
1388
1389
  (module.exports = function (key, value) {
1389
1390
  return store[key] || (store[key] = value !== undefined ? value : {});
1390
1391
  })('versions', []).push({
1391
- version: '3.28.0',
1392
+ version: '3.29.0',
1392
1393
  mode: IS_PURE ? 'pure' : 'global',
1393
1394
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1394
- license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',
1395
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
1395
1396
  source: 'https://github.com/zloirock/core-js'
1396
1397
  });
1397
1398
 
@@ -14370,7 +14371,7 @@ var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
14370
14371
  var aTypedArray = ArrayBufferViewCore.aTypedArray;
14371
14372
  var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
14372
14373
 
14373
- var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails(function () {
14374
+ var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails(function () {
14374
14375
  // eslint-disable-next-line es/no-typed-arrays -- required for testing
14375
14376
  var array = new Uint8ClampedArray(2);
14376
14377
  call($set, array, { length: 1, 0: 3 }, 1);
@@ -14378,7 +14379,7 @@ var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails(function () {
14378
14379
  });
14379
14380
 
14380
14381
  // https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other
14381
- var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () {
14382
+ var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () {
14382
14383
  var array = new Int8Array(2);
14383
14384
  array.set(1);
14384
14385
  array.set('2', 1);
@@ -14391,13 +14392,13 @@ exportTypedArrayMethod('set', function set(arrayLike /* , offset */) {
14391
14392
  aTypedArray(this);
14392
14393
  var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
14393
14394
  var src = toIndexedObject(arrayLike);
14394
- if (WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset);
14395
+ if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset);
14395
14396
  var length = this.length;
14396
14397
  var len = lengthOfArrayLike(src);
14397
14398
  var index = 0;
14398
14399
  if (len + offset > length) throw RangeError('Wrong length');
14399
14400
  while (index < len) this[offset + index] = src[index++];
14400
- }, !WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);
14401
+ }, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);
14401
14402
 
14402
14403
 
14403
14404
  /***/ }),
@@ -17059,7 +17060,7 @@ var $RangeError = RangeError;
17059
17060
  var $TypeError = TypeError;
17060
17061
 
17061
17062
  var $RangeIterator = createIteratorConstructor(function NumericRangeIterator(start, end, option, type, zero, one) {
17062
- // TODO: Drop the first `typeof` check after removing lagacy methods in `core-js@4`
17063
+ // TODO: Drop the first `typeof` check after removing legacy methods in `core-js@4`
17063
17064
  if (typeof start != type || (end !== Infinity && end !== -Infinity && typeof end != type)) {
17064
17065
  throw $TypeError(INCORRECT_RANGE);
17065
17066
  }
@@ -18279,31 +18280,21 @@ Context.prototype = {
18279
18280
  var i = this.skip(IS_WHITESPACE, this.index);
18280
18281
  var fork = this.fork(i);
18281
18282
  var chr = at(source, i);
18282
- var result;
18283
- if (exec(IS_NUMBER_START, chr)) result = fork.number();
18284
- else switch (chr) {
18283
+ if (exec(IS_NUMBER_START, chr)) return fork.number();
18284
+ switch (chr) {
18285
18285
  case '{':
18286
- result = fork.object();
18287
- break;
18286
+ return fork.object();
18288
18287
  case '[':
18289
- result = fork.array();
18290
- break;
18288
+ return fork.array();
18291
18289
  case '"':
18292
- result = fork.string();
18293
- break;
18290
+ return fork.string();
18294
18291
  case 't':
18295
- result = fork.keyword(true);
18296
- break;
18292
+ return fork.keyword(true);
18297
18293
  case 'f':
18298
- result = fork.keyword(false);
18299
- break;
18294
+ return fork.keyword(false);
18300
18295
  case 'n':
18301
- result = fork.keyword(null);
18302
- break;
18303
- default:
18304
- throw SyntaxError('Unexpected character: "' + chr + '" at: ' + i);
18305
- }
18306
- return result;
18296
+ return fork.keyword(null);
18297
+ } throw SyntaxError('Unexpected character: "' + chr + '" at: ' + i);
18307
18298
  },
18308
18299
  node: function (type, value, start, end, nodes) {
18309
18300
  return new Node(value, end, type ? null : slice(this.source, start, end), nodes);
@@ -23169,7 +23160,7 @@ var structuredCloneInternal = function (value, map) {
23169
23160
 
23170
23161
  var type = classof(value);
23171
23162
  var deep = false;
23172
- var C, name, cloned, dataTransfer, i, length, keys, key, source, target;
23163
+ var C, name, cloned, dataTransfer, i, length, keys, key, source, target, options;
23173
23164
 
23174
23165
  switch (type) {
23175
23166
  case 'Array':
@@ -23324,11 +23315,12 @@ var structuredCloneInternal = function (value, map) {
23324
23315
  if (!C && typeof value.slice != 'function') throwUnpolyfillable(type);
23325
23316
  // detached buffers throws in `DataView` and `.slice`
23326
23317
  try {
23327
- if (typeof value.slice == 'function') {
23318
+ if (typeof value.slice == 'function' && !value.resizable) {
23328
23319
  cloned = value.slice(0);
23329
23320
  } else {
23330
23321
  length = value.byteLength;
23331
- cloned = new ArrayBuffer(length);
23322
+ options = 'maxByteLength' in value ? { maxByteLength: value.maxByteLength } : undefined;
23323
+ cloned = new ArrayBuffer(length, options);
23332
23324
  source = new C(value);
23333
23325
  target = new C(cloned);
23334
23326
  for (i = 0; i < length; i++) {
@@ -24631,6 +24623,7 @@ $({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS
24631
24623
 
24632
24624
  var fails = __webpack_require__(7);
24633
24625
  var wellKnownSymbol = __webpack_require__(34);
24626
+ var DESCRIPTORS = __webpack_require__(6);
24634
24627
  var IS_PURE = __webpack_require__(36);
24635
24628
 
24636
24629
  var ITERATOR = wellKnownSymbol('iterator');
@@ -24646,6 +24639,7 @@ module.exports = !fails(function () {
24646
24639
  result += key + value;
24647
24640
  });
24648
24641
  return (IS_PURE && !url.toJSON)
24642
+ || (!searchParams.size && (IS_PURE || !DESCRIPTORS))
24649
24643
  || !searchParams.sort
24650
24644
  || url.href !== 'http://a/c%20d?a=1&c=3'
24651
24645
  || searchParams.get('c') !== '3'
@@ -24866,6 +24860,7 @@ var uncurryThis = __webpack_require__(14);
24866
24860
  var DESCRIPTORS = __webpack_require__(6);
24867
24861
  var USE_NATIVE_URL = __webpack_require__(745);
24868
24862
  var defineBuiltIn = __webpack_require__(48);
24863
+ var defineBuiltInAccessor = __webpack_require__(79);
24869
24864
  var defineBuiltIns = __webpack_require__(210);
24870
24865
  var setToStringTag = __webpack_require__(84);
24871
24866
  var createIteratorConstructor = __webpack_require__(171);
@@ -25061,7 +25056,8 @@ URLSearchParamsState.prototype = {
25061
25056
  var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
25062
25057
  anInstance(this, URLSearchParamsPrototype);
25063
25058
  var init = arguments.length > 0 ? arguments[0] : undefined;
25064
- setInternalState(this, new URLSearchParamsState(init));
25059
+ var state = setInternalState(this, new URLSearchParamsState(init));
25060
+ if (!DESCRIPTORS) this.length = state.entries.length;
25065
25061
  };
25066
25062
 
25067
25063
  var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
@@ -25073,6 +25069,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
25073
25069
  validateArgumentsLength(arguments.length, 2);
25074
25070
  var state = getInternalParamsState(this);
25075
25071
  push(state.entries, { key: $toString(name), value: $toString(value) });
25072
+ if (!DESCRIPTORS) this.length++;
25076
25073
  state.updateURL();
25077
25074
  },
25078
25075
  // `URLSearchParams.prototype.delete` method
@@ -25087,6 +25084,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
25087
25084
  if (entries[index].key === key) splice(entries, index, 1);
25088
25085
  else index++;
25089
25086
  }
25087
+ if (!DESCRIPTORS) this.length = entries.length;
25090
25088
  state.updateURL();
25091
25089
  },
25092
25090
  // `URLSearchParams.prototype.get` method
@@ -25148,6 +25146,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
25148
25146
  }
25149
25147
  }
25150
25148
  if (!found) push(entries, { key: key, value: val });
25149
+ if (!DESCRIPTORS) this.length = entries.length;
25151
25150
  state.updateURL();
25152
25151
  },
25153
25152
  // `URLSearchParams.prototype.sort` method
@@ -25193,6 +25192,16 @@ defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
25193
25192
  return getInternalParamsState(this).serialize();
25194
25193
  }, { enumerable: true });
25195
25194
 
25195
+ // `URLSearchParams.prototype.size` getter
25196
+ // https://github.com/whatwg/url/pull/734
25197
+ if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
25198
+ get: function size() {
25199
+ return getInternalParamsState(this).entries.length;
25200
+ },
25201
+ configurable: true,
25202
+ enumerable: true
25203
+ });
25204
+
25196
25205
  setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
25197
25206
 
25198
25207
  $({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
@@ -25276,5 +25285,33 @@ $({ target: 'URL', proto: true, enumerable: true }, {
25276
25285
  __webpack_require__(747);
25277
25286
 
25278
25287
 
25288
+ /***/ }),
25289
+ /* 750 */
25290
+ /***/ (function(module, exports, __webpack_require__) {
25291
+
25292
+ "use strict";
25293
+
25294
+ var DESCRIPTORS = __webpack_require__(6);
25295
+ var uncurryThis = __webpack_require__(14);
25296
+ var defineBuiltInAccessor = __webpack_require__(79);
25297
+
25298
+ var URLSearchParamsPrototype = URLSearchParams.prototype;
25299
+ var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
25300
+
25301
+ // `URLSearchParams.prototype.size` getter
25302
+ // https://github.com/whatwg/url/pull/734
25303
+ if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
25304
+ defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
25305
+ get: function size() {
25306
+ var count = 0;
25307
+ forEach(this, function () { count++; });
25308
+ return count;
25309
+ },
25310
+ configurable: true,
25311
+ enumerable: true
25312
+ });
25313
+ }
25314
+
25315
+
25279
25316
  /***/ })
25280
25317
  /******/ ]); }();