@paraspell/sdk-common 14.3.3 → 14.3.5
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.mjs +5 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -369,8 +369,12 @@ var isBridge = function isBridge(origin, destination) {
|
|
|
369
369
|
var isPrimitive = function isPrimitive(obj) {
|
|
370
370
|
return obj !== Object(obj);
|
|
371
371
|
};
|
|
372
|
+
var isNumeric = function isNumeric(value) {
|
|
373
|
+
return typeof value === 'number' || typeof value === 'bigint';
|
|
374
|
+
};
|
|
372
375
|
var _deepEqual = function deepEqual(obj1, obj2) {
|
|
373
376
|
if (obj1 === obj2) return true;
|
|
377
|
+
if (isNumeric(obj1) && isNumeric(obj2)) return obj1 == obj2;
|
|
374
378
|
if (isPrimitive(obj1) && isPrimitive(obj2)) return obj1 === obj2;
|
|
375
379
|
if (_typeof(obj1) !== 'object' || obj1 === null || _typeof(obj2) !== 'object' || obj2 === null) {
|
|
376
380
|
return false;
|
|
@@ -468,11 +472,7 @@ var hasJunction = function hasJunction(location, junctionType, junctionValue) {
|
|
|
468
472
|
return true;
|
|
469
473
|
}
|
|
470
474
|
var jv = matchingJunction[junctionType];
|
|
471
|
-
|
|
472
|
-
return JSON.stringify(jv) === JSON.stringify(junctionValue);
|
|
473
|
-
} catch (_unused) {
|
|
474
|
-
return jv === junctionValue;
|
|
475
|
-
}
|
|
475
|
+
return _deepEqual(jv, junctionValue);
|
|
476
476
|
};
|
|
477
477
|
|
|
478
478
|
var replaceBigInt = function replaceBigInt(_key, value) {
|