@gabrielbryk/jq-ts 1.3.2 → 1.3.3
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.cjs +2 -3
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2567,9 +2567,8 @@ function compare(a, b) {
|
|
|
2567
2567
|
return 0;
|
|
2568
2568
|
}
|
|
2569
2569
|
function add(left, right, span) {
|
|
2570
|
-
if (left === null
|
|
2571
|
-
if (
|
|
2572
|
-
if (typeof left === "number" && right === null) return left;
|
|
2570
|
+
if (left === null) return right;
|
|
2571
|
+
if (right === null) return left;
|
|
2573
2572
|
if (typeof left === "number" && typeof right === "number") return left + right;
|
|
2574
2573
|
if (typeof left === "string" && typeof right === "string") return left + right;
|
|
2575
2574
|
if (Array.isArray(left) && Array.isArray(right)) return [...left, ...right];
|
package/dist/index.mjs
CHANGED
|
@@ -2566,9 +2566,8 @@ function compare(a, b) {
|
|
|
2566
2566
|
return 0;
|
|
2567
2567
|
}
|
|
2568
2568
|
function add(left, right, span) {
|
|
2569
|
-
if (left === null
|
|
2570
|
-
if (
|
|
2571
|
-
if (typeof left === "number" && right === null) return left;
|
|
2569
|
+
if (left === null) return right;
|
|
2570
|
+
if (right === null) return left;
|
|
2572
2571
|
if (typeof left === "number" && typeof right === "number") return left + right;
|
|
2573
2572
|
if (typeof left === "string" && typeof right === "string") return left + right;
|
|
2574
2573
|
if (Array.isArray(left) && Array.isArray(right)) return [...left, ...right];
|