si-funciona 2.2.11 → 2.2.12

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.
@@ -3373,7 +3373,7 @@
3373
3373
  })
3374
3374
  } else {
3375
3375
  var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER
3376
- /* eslint-disable no-new -- required for testing */
3376
+ /* eslint-disable no-new, sonar/inconsistent-function-call -- required for testing */
3377
3377
  if (!fails(function () {
3378
3378
  NativeArrayBuffer(1)
3379
3379
  }) || !fails(function () {
@@ -3384,7 +3384,7 @@
3384
3384
  new NativeArrayBuffer(NaN)
3385
3385
  return NativeArrayBuffer.length !== 1 || INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME
3386
3386
  })) {
3387
- /* eslint-enable no-new -- required for testing */
3387
+ /* eslint-enable no-new, sonar/inconsistent-function-call -- required for testing */
3388
3388
  $ArrayBuffer = function ArrayBuffer (length) {
3389
3389
  anInstance(this, ArrayBufferPrototype)
3390
3390
  return inheritIfRequired(new NativeArrayBuffer(toIndex(length)), this, $ArrayBuffer)
@@ -4450,8 +4450,8 @@
4450
4450
  setInternalState(that, {
4451
4451
  type: CONSTRUCTOR_NAME,
4452
4452
  index: create(null),
4453
- first: undefined,
4454
- last: undefined,
4453
+ first: null,
4454
+ last: null,
4455
4455
  size: 0
4456
4456
  })
4457
4457
  if (!DESCRIPTORS) that.size = 0
@@ -4476,7 +4476,7 @@
4476
4476
  key: key,
4477
4477
  value: value,
4478
4478
  previous: previous = state.last,
4479
- next: undefined,
4479
+ next: null,
4480
4480
  removed: false
4481
4481
  }
4482
4482
  if (!state.first) state.first = entry
@@ -4510,10 +4510,10 @@
4510
4510
  var entry = state.first
4511
4511
  while (entry) {
4512
4512
  entry.removed = true
4513
- if (entry.previous) entry.previous = entry.previous.next = undefined
4513
+ if (entry.previous) entry.previous = entry.previous.next = null
4514
4514
  entry = entry.next
4515
4515
  }
4516
- state.first = state.last = undefined
4516
+ state.first = state.last = null
4517
4517
  state.index = create(null)
4518
4518
  if (DESCRIPTORS) state.size = 0
4519
4519
  else that.size = 0
@@ -4607,7 +4607,7 @@
4607
4607
  target: iterated,
4608
4608
  state: getInternalCollectionState(iterated),
4609
4609
  kind: kind,
4610
- last: undefined
4610
+ last: null
4611
4611
  })
4612
4612
  }, function () {
4613
4613
  var state = getInternalIteratorState(this)
@@ -4618,7 +4618,7 @@
4618
4618
  // get next entry
4619
4619
  if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
4620
4620
  // or finish the iteration
4621
- state.target = undefined
4621
+ state.target = null
4622
4622
  return createIterResultObject(undefined, true)
4623
4623
  }
4624
4624
  // return step by kind
@@ -4699,7 +4699,7 @@
4699
4699
  setInternalState(that, {
4700
4700
  type: CONSTRUCTOR_NAME,
4701
4701
  id: id++,
4702
- frozen: undefined
4702
+ frozen: null
4703
4703
  })
4704
4704
  if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP })
4705
4705
  })
@@ -4747,7 +4747,7 @@
4747
4747
  if (isObject(key)) {
4748
4748
  var data = getWeakData(key)
4749
4749
  if (data === true) return uncaughtFrozenStore(state).get(key)
4750
- return data ? data[state.id] : undefined
4750
+ if (data) return data[state.id]
4751
4751
  }
4752
4752
  },
4753
4753
  // `WeakMap.prototype.set(key, value)` method
@@ -7814,6 +7814,8 @@
7814
7814
  }, {}],
7815
7815
  251: [function (require, module, exports) {
7816
7816
  'use strict'
7817
+ /* eslint-disable no-undef, no-useless-call, sonar/no-reference-error -- required for testing */
7818
+ /* eslint-disable es/no-legacy-object-prototype-accessor-methods -- required for testing */
7817
7819
  var IS_PURE = require('../internals/is-pure')
7818
7820
  var globalThis = require('../internals/global-this')
7819
7821
  var fails = require('../internals/fails')
@@ -7826,7 +7828,6 @@
7826
7828
  if (WEBKIT && WEBKIT < 535) return
7827
7829
  var key = Math.random()
7828
7830
  // In FF throws only define methods
7829
- // eslint-disable-next-line no-undef, no-useless-call, es/no-legacy-object-prototype-accessor-methods -- required for testing
7830
7831
  __defineSetter__.call(null, key, function () { /* empty */ })
7831
7832
  delete globalThis[key]
7832
7833
  })
@@ -8726,10 +8727,10 @@
8726
8727
  var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
8727
8728
 
8728
8729
  (store.versions || (store.versions = [])).push({
8729
- version: '3.38.0',
8730
+ version: '3.38.1',
8730
8731
  mode: IS_PURE ? 'pure' : 'global',
8731
8732
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
8732
- license: 'https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE',
8733
+ license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
8733
8734
  source: 'https://github.com/zloirock/core-js'
8734
8735
  })
8735
8736
  }, { '../internals/define-global-property': 136, '../internals/global-this': 184, '../internals/is-pure': 208 }],
@@ -9773,7 +9774,7 @@
9773
9774
  }, { '../internals/an-instance': 81, '../internals/array-buffer': 90, '../internals/array-buffer-view-core': 89, '../internals/array-from-constructor-and-list': 94, '../internals/array-iteration': 98, '../internals/classof': 119, '../internals/create-non-enumerable-property': 128, '../internals/create-property-descriptor': 129, '../internals/define-built-in-accessor': 133, '../internals/descriptors': 138, '../internals/export': 160, '../internals/function-call': 169, '../internals/global-this': 184, '../internals/has-own-property': 185, '../internals/inherit-if-required': 192, '../internals/internal-state': 196, '../internals/is-integral-number': 204, '../internals/is-object': 206, '../internals/is-symbol': 210, '../internals/object-create': 238, '../internals/object-define-property': 240, '../internals/object-get-own-property-descriptor': 241, '../internals/object-get-own-property-names': 243, '../internals/object-is-prototype-of': 247, '../internals/object-set-prototype-of': 252, '../internals/set-species': 286, '../internals/to-index': 312, '../internals/to-length': 315, '../internals/to-offset': 317, '../internals/to-property-key': 320, '../internals/to-uint8-clamped': 323, '../internals/typed-array-constructors-require-wrappers': 326, '../internals/typed-array-from': 328 }],
9774
9775
  326: [function (require, module, exports) {
9775
9776
  'use strict'
9776
- /* eslint-disable no-new -- required for testing */
9777
+ /* eslint-disable no-new, sonar/inconsistent-function-call -- required for testing */
9777
9778
  var globalThis = require('../internals/global-this')
9778
9779
  var fails = require('../internals/fails')
9779
9780
  var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration')
@@ -10682,7 +10683,7 @@
10682
10683
  var target = state.target
10683
10684
  var index = state.index++
10684
10685
  if (!target || index >= target.length) {
10685
- state.target = undefined
10686
+ state.target = null
10686
10687
  return createIterResultObject(undefined, true)
10687
10688
  }
10688
10689
  switch (state.kind) {
@@ -13558,7 +13559,7 @@
13558
13559
  reactions: new Queue(),
13559
13560
  rejection: false,
13560
13561
  state: PENDING,
13561
- value: undefined
13562
+ value: null
13562
13563
  })
13563
13564
  }
13564
13565
 
@@ -14148,6 +14149,7 @@
14148
14149
  (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () {
14149
14150
  re2[MATCH] = false
14150
14151
  // RegExp constructor can alter flags and IsRegExp works correct with @@match
14152
+ // eslint-disable-next-line sonar/inconsistent-function-call -- required for testing
14151
14153
  return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i'
14152
14154
  }))
14153
14155
 
@@ -16035,6 +16037,7 @@
16035
16037
  var SymbolWrapper = function Symbol () {
16036
16038
  var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0])
16037
16039
  var result = isPrototypeOf(SymbolPrototype, this)
16040
+ // eslint-disable-next-line sonar/inconsistent-function-call -- ok
16038
16041
  ? new NativeSymbol(description)
16039
16042
  // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
16040
16043
  : description === undefined ? NativeSymbol() : NativeSymbol(description)
@@ -18748,9 +18751,11 @@
18748
18751
  'use strict'
18749
18752
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
18750
18753
  require('../modules/es.array.iterator')
18754
+ require('../modules/es.string.from-code-point')
18751
18755
  var $ = require('../internals/export')
18752
18756
  var globalThis = require('../internals/global-this')
18753
18757
  var safeGetBuiltIn = require('../internals/safe-get-built-in')
18758
+ var getBuiltIn = require('../internals/get-built-in')
18754
18759
  var call = require('../internals/function-call')
18755
18760
  var uncurryThis = require('../internals/function-uncurry-this')
18756
18761
  var DESCRIPTORS = require('../internals/descriptors')
@@ -18790,10 +18795,11 @@
18790
18795
  var Headers = safeGetBuiltIn('Headers')
18791
18796
  var RequestPrototype = NativeRequest && NativeRequest.prototype
18792
18797
  var HeadersPrototype = Headers && Headers.prototype
18793
- var RegExp = globalThis.RegExp
18794
18798
  var TypeError = globalThis.TypeError
18795
- var decodeURIComponent = globalThis.decodeURIComponent
18796
18799
  var encodeURIComponent = globalThis.encodeURIComponent
18800
+ var fromCharCode = String.fromCharCode
18801
+ var fromCodePoint = getBuiltIn('String', 'fromCodePoint')
18802
+ var $parseInt = parseInt
18797
18803
  var charAt = uncurryThis(''.charAt)
18798
18804
  var join = uncurryThis([].join)
18799
18805
  var push = uncurryThis([].push)
@@ -18802,33 +18808,125 @@
18802
18808
  var splice = uncurryThis([].splice)
18803
18809
  var split = uncurryThis(''.split)
18804
18810
  var stringSlice = uncurryThis(''.slice)
18811
+ var exec = uncurryThis(/./.exec)
18805
18812
 
18806
18813
  var plus = /\+/g
18807
- var sequences = Array(4)
18814
+ var FALLBACK_REPLACER = '\uFFFD'
18815
+ var VALID_HEX = /^[0-9a-f]+$/i
18816
+
18817
+ var parseHexOctet = function (string, start) {
18818
+ var substr = stringSlice(string, start, start + 2)
18819
+ if (!exec(VALID_HEX, substr)) return NaN
18808
18820
 
18809
- var percentSequence = function (bytes) {
18810
- return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'))
18821
+ return $parseInt(substr, 16)
18811
18822
  }
18812
18823
 
18813
- var percentDecode = function (sequence) {
18814
- try {
18815
- return decodeURIComponent(sequence)
18816
- } catch (error) {
18817
- return sequence
18824
+ var getLeadingOnes = function (octet) {
18825
+ var count = 0
18826
+ for (var mask = 0x80; mask > 0 && (octet & mask) !== 0; mask >>= 1) {
18827
+ count++
18818
18828
  }
18829
+ return count
18819
18830
  }
18820
18831
 
18821
- var deserialize = function (it) {
18822
- var result = replace(it, plus, ' ')
18823
- var bytes = 4
18824
- try {
18825
- return decodeURIComponent(result)
18826
- } catch (error) {
18827
- while (bytes) {
18828
- result = replace(result, percentSequence(bytes--), percentDecode)
18832
+ var utf8Decode = function (octets) {
18833
+ var codePoint = null
18834
+
18835
+ switch (octets.length) {
18836
+ case 1:
18837
+ codePoint = octets[0]
18838
+ break
18839
+ case 2:
18840
+ codePoint = (octets[0] & 0x1F) << 6 | (octets[1] & 0x3F)
18841
+ break
18842
+ case 3:
18843
+ codePoint = (octets[0] & 0x0F) << 12 | (octets[1] & 0x3F) << 6 | (octets[2] & 0x3F)
18844
+ break
18845
+ case 4:
18846
+ codePoint = (octets[0] & 0x07) << 18 | (octets[1] & 0x3F) << 12 | (octets[2] & 0x3F) << 6 | (octets[3] & 0x3F)
18847
+ break
18848
+ }
18849
+
18850
+ return codePoint > 0x10FFFF ? null : codePoint
18851
+ }
18852
+
18853
+ var decode = function (input) {
18854
+ input = replace(input, plus, ' ')
18855
+ var length = input.length
18856
+ var result = ''
18857
+ var i = 0
18858
+
18859
+ while (i < length) {
18860
+ var decodedChar = charAt(input, i)
18861
+
18862
+ if (decodedChar === '%') {
18863
+ if (charAt(input, i + 1) === '%' || i + 3 > length) {
18864
+ result += '%'
18865
+ i++
18866
+ continue
18867
+ }
18868
+
18869
+ var octet = parseHexOctet(input, i + 1)
18870
+
18871
+ // eslint-disable-next-line no-self-compare -- NaN check
18872
+ if (octet !== octet) {
18873
+ result += decodedChar
18874
+ i++
18875
+ continue
18876
+ }
18877
+
18878
+ i += 2
18879
+ var byteSequenceLength = getLeadingOnes(octet)
18880
+
18881
+ if (byteSequenceLength === 0) {
18882
+ decodedChar = fromCharCode(octet)
18883
+ } else {
18884
+ if (byteSequenceLength === 1 || byteSequenceLength > 4) {
18885
+ result += FALLBACK_REPLACER
18886
+ i++
18887
+ continue
18888
+ }
18889
+
18890
+ var octets = [octet]
18891
+ var sequenceIndex = 1
18892
+
18893
+ while (sequenceIndex < byteSequenceLength) {
18894
+ i++
18895
+ if (i + 3 > length || charAt(input, i) !== '%') break
18896
+
18897
+ var nextByte = parseHexOctet(input, i + 1)
18898
+
18899
+ // eslint-disable-next-line no-self-compare -- NaN check
18900
+ if (nextByte !== nextByte) {
18901
+ i += 3
18902
+ break
18903
+ }
18904
+ if (nextByte > 191 || nextByte < 128) break
18905
+
18906
+ push(octets, nextByte)
18907
+ i += 2
18908
+ sequenceIndex++
18909
+ }
18910
+
18911
+ if (octets.length !== byteSequenceLength) {
18912
+ result += FALLBACK_REPLACER
18913
+ continue
18914
+ }
18915
+
18916
+ var codePoint = utf8Decode(octets)
18917
+ if (codePoint === null) {
18918
+ result += FALLBACK_REPLACER
18919
+ } else {
18920
+ decodedChar = fromCodePoint(codePoint)
18921
+ }
18922
+ }
18829
18923
  }
18830
- return result
18924
+
18925
+ result += decodedChar
18926
+ i++
18831
18927
  }
18928
+
18929
+ return result
18832
18930
  }
18833
18931
 
18834
18932
  var find = /[!'()~]|%20/g
@@ -18862,7 +18960,7 @@
18862
18960
  var target = state.target
18863
18961
  var index = state.index++
18864
18962
  if (!target || index >= target.length) {
18865
- state.target = undefined
18963
+ state.target = null
18866
18964
  return createIterResultObject(undefined, true)
18867
18965
  }
18868
18966
  var entry = target[index]
@@ -18925,8 +19023,8 @@
18925
19023
  if (attribute.length) {
18926
19024
  entry = split(attribute, '=')
18927
19025
  push(entries, {
18928
- key: deserialize(shift(entry)),
18929
- value: deserialize(join(entry, '='))
19026
+ key: decode(shift(entry)),
19027
+ value: decode(join(entry, '='))
18930
19028
  })
18931
19029
  }
18932
19030
  }
@@ -19167,7 +19265,7 @@
19167
19265
  URLSearchParams: URLSearchParamsConstructor,
19168
19266
  getState: getInternalParamsState
19169
19267
  }
19170
- }, { '../internals/an-instance': 81, '../internals/an-object': 82, '../internals/array-sort': 105, '../internals/classof': 119, '../internals/create-iter-result-object': 127, '../internals/create-property-descriptor': 129, '../internals/define-built-in': 134, '../internals/define-built-in-accessor': 133, '../internals/define-built-ins': 135, '../internals/descriptors': 138, '../internals/export': 160, '../internals/function-bind-context': 166, '../internals/function-call': 169, '../internals/function-uncurry-this': 173, '../internals/get-iterator': 179, '../internals/get-iterator-method': 178, '../internals/global-this': 184, '../internals/has-own-property': 185, '../internals/internal-state': 196, '../internals/is-callable': 200, '../internals/is-object': 206, '../internals/iterator-create-constructor': 214, '../internals/object-create': 238, '../internals/safe-get-built-in': 273, '../internals/set-to-string-tag': 288, '../internals/to-string': 322, '../internals/url-constructor-detection': 331, '../internals/validate-arguments-length': 334, '../internals/well-known-symbol': 338, '../modules/es.array.iterator': 367 }],
19268
+ }, { '../internals/an-instance': 81, '../internals/an-object': 82, '../internals/array-sort': 105, '../internals/classof': 119, '../internals/create-iter-result-object': 127, '../internals/create-property-descriptor': 129, '../internals/define-built-in': 134, '../internals/define-built-in-accessor': 133, '../internals/define-built-ins': 135, '../internals/descriptors': 138, '../internals/export': 160, '../internals/function-bind-context': 166, '../internals/function-call': 169, '../internals/function-uncurry-this': 173, '../internals/get-built-in': 176, '../internals/get-iterator': 179, '../internals/get-iterator-method': 178, '../internals/global-this': 184, '../internals/has-own-property': 185, '../internals/internal-state': 196, '../internals/is-callable': 200, '../internals/is-object': 206, '../internals/iterator-create-constructor': 214, '../internals/object-create': 238, '../internals/safe-get-built-in': 273, '../internals/set-to-string-tag': 288, '../internals/to-string': 322, '../internals/url-constructor-detection': 331, '../internals/validate-arguments-length': 334, '../internals/well-known-symbol': 338, '../modules/es.array.iterator': 367, '../modules/es.string.from-code-point': 523 }],
19171
19269
  646: [function (require, module, exports) {
19172
19270
  'use strict'
19173
19271
  var defineBuiltIn = require('../internals/define-built-in')