@restura/core 0.1.0-alpha.27 → 0.1.0-alpha.29
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.d.mts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1566,6 +1566,8 @@ function SQL(strings, ...values) {
|
|
|
1566
1566
|
query += value;
|
|
1567
1567
|
} else if (typeof value === "number") {
|
|
1568
1568
|
query += value;
|
|
1569
|
+
} else if (Array.isArray(value)) {
|
|
1570
|
+
query += format2.literal(JSON.stringify(value)) + "::jsonb";
|
|
1569
1571
|
} else {
|
|
1570
1572
|
query += format2.literal(value);
|
|
1571
1573
|
}
|