prisma-sql 1.56.0 → 1.58.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/generator.cjs +3 -3
- package/dist/generator.cjs.map +1 -1
- package/dist/generator.js +3 -3
- package/dist/generator.js.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +358 -49
package/dist/index.cjs
CHANGED
|
@@ -5612,6 +5612,10 @@ function parseJsonValue(value) {
|
|
|
5612
5612
|
function parseCountValue(value) {
|
|
5613
5613
|
if (value === null || value === void 0) return 0;
|
|
5614
5614
|
if (typeof value === "number") return value;
|
|
5615
|
+
if (typeof value === "bigint") {
|
|
5616
|
+
const n = Number(value);
|
|
5617
|
+
return Number.isSafeInteger(n) ? n : 0;
|
|
5618
|
+
}
|
|
5615
5619
|
if (typeof value === "string") {
|
|
5616
5620
|
const n = Number.parseInt(value, 10);
|
|
5617
5621
|
return Number.isFinite(n) ? n : 0;
|
|
@@ -5622,6 +5626,10 @@ function parseCountValue(value) {
|
|
|
5622
5626
|
if (countKey !== void 0) {
|
|
5623
5627
|
const v = obj[countKey];
|
|
5624
5628
|
if (typeof v === "number") return v;
|
|
5629
|
+
if (typeof v === "bigint") {
|
|
5630
|
+
const n = Number(v);
|
|
5631
|
+
return Number.isSafeInteger(n) ? n : 0;
|
|
5632
|
+
}
|
|
5625
5633
|
if (typeof v === "string") {
|
|
5626
5634
|
const n = Number.parseInt(v, 10);
|
|
5627
5635
|
return Number.isFinite(n) ? n : 0;
|