@dra2020/baseclient 1.0.38 → 1.0.39
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/baseclient.js +2 -0
- package/dist/baseclient.js.map +1 -1
- package/dist/util/util.d.ts +2 -1
- package/lib/util/util.ts +3 -1
- package/package.json +1 -1
package/dist/baseclient.js
CHANGED
|
@@ -9961,6 +9961,8 @@ exports.partialEqual = partialEqual;
|
|
|
9961
9961
|
function exactEqual(o1, o2, options) {
|
|
9962
9962
|
if (o1 === o2)
|
|
9963
9963
|
return true;
|
|
9964
|
+
if (options && options.epsilon && typeof o1 === 'number' && typeof o2 === 'number' && Math.abs(o1 - o2) < options.epsilon)
|
|
9965
|
+
return true;
|
|
9964
9966
|
if (options && options.emptyStringIsNull)
|
|
9965
9967
|
if ((o1 == null && o2 == '') || (o2 == null && o1 == ''))
|
|
9966
9968
|
return true;
|