snyk 1.1306.3 → 1.1306.4

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.
@@ -9600,7 +9600,7 @@ const _toString = Object.prototype.toString
9600
9600
  function resolveYamlOmap (data) {
9601
9601
  if (data === null) return true
9602
9602
 
9603
- const objectKeys = []
9603
+ const objectKeys = {}
9604
9604
  const object = data
9605
9605
 
9606
9606
  for (let index = 0, length = object.length; index < length; index += 1) {
@@ -9619,8 +9619,8 @@ function resolveYamlOmap (data) {
9619
9619
 
9620
9620
  if (!pairHasKey) return false
9621
9621
 
9622
- if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey)
9623
- else return false
9622
+ if (_hasOwnProperty.call(objectKeys, pairKey)) return false
9623
+ Object.defineProperty(objectKeys, pairKey, { value: true })
9624
9624
  }
9625
9625
 
9626
9626
  return true
@@ -147431,7 +147431,7 @@ var _toString = Object.prototype.toString;
147431
147431
  function resolveYamlOmap(data) {
147432
147432
  if (data === null) return true;
147433
147433
 
147434
- var objectKeys = [], index, length, pair, pairKey, pairHasKey,
147434
+ var objectKeys = {}, index, length, pair, pairKey, pairHasKey,
147435
147435
  object = data;
147436
147436
 
147437
147437
  for (index = 0, length = object.length; index < length; index += 1) {
@@ -147449,8 +147449,8 @@ function resolveYamlOmap(data) {
147449
147449
 
147450
147450
  if (!pairHasKey) return false;
147451
147451
 
147452
- if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
147453
- else return false;
147452
+ if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
147453
+ Object.defineProperty(objectKeys, pairKey, { value: true });
147454
147454
  }
147455
147455
 
147456
147456
  return true;
@@ -262609,7 +262609,7 @@ const _toString = Object.prototype.toString
262609
262609
  function resolveYamlOmap (data) {
262610
262610
  if (data === null) return true
262611
262611
 
262612
- const objectKeys = []
262612
+ const objectKeys = {}
262613
262613
  const object = data
262614
262614
 
262615
262615
  for (let index = 0, length = object.length; index < length; index += 1) {
@@ -262628,8 +262628,8 @@ function resolveYamlOmap (data) {
262628
262628
 
262629
262629
  if (!pairHasKey) return false
262630
262630
 
262631
- if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey)
262632
- else return false
262631
+ if (_hasOwnProperty.call(objectKeys, pairKey)) return false
262632
+ Object.defineProperty(objectKeys, pairKey, { value: true })
262633
262633
  }
262634
262634
 
262635
262635
  return true