@hpcc-js/util 2.47.1 → 2.48.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/dist/index.js CHANGED
@@ -5,8 +5,8 @@
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
7
  var PKG_NAME = "@hpcc-js/util";
8
- var PKG_VERSION = "2.47.1";
9
- var BUILD_VERSION = "2.103.1";
8
+ var PKG_VERSION = "2.48.0";
9
+ var BUILD_VERSION = "2.103.5";
10
10
 
11
11
  /*! *****************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
@@ -1412,7 +1412,8 @@
1412
1412
  var isArray$1 = Array.isArray;
1413
1413
  var keyList = Object.keys;
1414
1414
  var hasProp = Object.prototype.hasOwnProperty;
1415
- function verboseDeepEquals(a, b) {
1415
+ function verboseDeepEquals(a, b, functionRefCompare) {
1416
+ if (functionRefCompare === void 0) { functionRefCompare = false; }
1416
1417
  if (a === b)
1417
1418
  return true;
1418
1419
  if (a && b) {
@@ -1429,7 +1430,7 @@
1429
1430
  return false;
1430
1431
  }
1431
1432
  for (i = length_1; i-- !== 0;)
1432
- if (!verboseDeepEquals(a[i], b[i])) {
1433
+ if (!verboseDeepEquals(a[i], b[i], functionRefCompare)) {
1433
1434
  return false;
1434
1435
  }
1435
1436
  return true;
@@ -1477,13 +1478,13 @@
1477
1478
  }
1478
1479
  for (i = length_1; i-- !== 0;) {
1479
1480
  key = keys[i];
1480
- if (!verboseDeepEquals(a[key], b[key])) {
1481
+ if (!verboseDeepEquals(a[key], b[key], functionRefCompare)) {
1481
1482
  return false;
1482
1483
  }
1483
1484
  }
1484
1485
  return true;
1485
1486
  }
1486
- else if (typeof a === "function" && typeof b === "function") {
1487
+ else if (!functionRefCompare && typeof a === "function" && typeof b === "function") {
1487
1488
  var retVal_3 = a.toString() === b.toString();
1488
1489
  if (!retVal_3) {
1489
1490
  console.warn("functions not equal: ".concat(a.toString(), " !== ").concat(b.toString()));
@@ -1497,7 +1498,8 @@
1497
1498
  }
1498
1499
  return retVal;
1499
1500
  }
1500
- function deepEquals(a, b) {
1501
+ function deepEquals(a, b, functionRefCompare) {
1502
+ if (functionRefCompare === void 0) { functionRefCompare = false; }
1501
1503
  if (a === b)
1502
1504
  return true;
1503
1505
  if (a && b) {
@@ -1512,7 +1514,7 @@
1512
1514
  if (length_2 !== b.length)
1513
1515
  return false;
1514
1516
  for (i = length_2; i-- !== 0;)
1515
- if (!deepEquals(a[i], b[i]))
1517
+ if (!deepEquals(a[i], b[i], functionRefCompare))
1516
1518
  return false;
1517
1519
  return true;
1518
1520
  }
@@ -1539,19 +1541,20 @@
1539
1541
  return false;
1540
1542
  for (i = length_2; i-- !== 0;) {
1541
1543
  key = keys[i];
1542
- if (!deepEquals(a[key], b[key]))
1544
+ if (!deepEquals(a[key], b[key], functionRefCompare))
1543
1545
  return false;
1544
1546
  }
1545
1547
  return true;
1546
1548
  }
1547
- else if (typeof a === "function" && typeof b === "function") {
1549
+ else if (!functionRefCompare && typeof a === "function" && typeof b === "function") {
1548
1550
  return a.toString() === b.toString();
1549
1551
  }
1550
1552
  }
1551
1553
  return a !== a && b !== b;
1552
1554
  }
1553
- function update(origItem, newItem) {
1554
- return deepEquals(origItem, newItem) ? origItem : newItem;
1555
+ function update(origItem, newItem, functionRefCompare) {
1556
+ if (functionRefCompare === void 0) { functionRefCompare = false; }
1557
+ return deepEquals(origItem, newItem, functionRefCompare) ? origItem : newItem;
1555
1558
  }
1556
1559
 
1557
1560
  var root = typeof globalThis !== "undefined" ? globalThis : window;