@prisma/adapter-neon 5.19.0-dev.13 → 5.19.0-dev.15
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.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -309,6 +309,9 @@ function normalize_timez(time) {
|
|
|
309
309
|
function normalize_money(money) {
|
|
310
310
|
return money.slice(1);
|
|
311
311
|
}
|
|
312
|
+
function normalize_xml(xml) {
|
|
313
|
+
return xml;
|
|
314
|
+
}
|
|
312
315
|
function toJson(json) {
|
|
313
316
|
return json;
|
|
314
317
|
}
|
|
@@ -346,7 +349,8 @@ var customParsers = {
|
|
|
346
349
|
[ScalarColumnType.BYTEA]: convertBytes,
|
|
347
350
|
[ArrayColumnType.BYTEA_ARRAY]: normalizeByteaArray,
|
|
348
351
|
[ArrayColumnType.BIT_ARRAY]: normalize_array(normalizeBit),
|
|
349
|
-
[ArrayColumnType.VARBIT_ARRAY]: normalize_array(normalizeBit)
|
|
352
|
+
[ArrayColumnType.VARBIT_ARRAY]: normalize_array(normalizeBit),
|
|
353
|
+
[ArrayColumnType.XML_ARRAY]: normalize_array(normalize_xml)
|
|
350
354
|
};
|
|
351
355
|
function fixArrayBufferValues(values) {
|
|
352
356
|
for (let i = 0; i < values.length; i++) {
|
package/dist/index.mjs
CHANGED
|
@@ -272,6 +272,9 @@ function normalize_timez(time) {
|
|
|
272
272
|
function normalize_money(money) {
|
|
273
273
|
return money.slice(1);
|
|
274
274
|
}
|
|
275
|
+
function normalize_xml(xml) {
|
|
276
|
+
return xml;
|
|
277
|
+
}
|
|
275
278
|
function toJson(json) {
|
|
276
279
|
return json;
|
|
277
280
|
}
|
|
@@ -309,7 +312,8 @@ var customParsers = {
|
|
|
309
312
|
[ScalarColumnType.BYTEA]: convertBytes,
|
|
310
313
|
[ArrayColumnType.BYTEA_ARRAY]: normalizeByteaArray,
|
|
311
314
|
[ArrayColumnType.BIT_ARRAY]: normalize_array(normalizeBit),
|
|
312
|
-
[ArrayColumnType.VARBIT_ARRAY]: normalize_array(normalizeBit)
|
|
315
|
+
[ArrayColumnType.VARBIT_ARRAY]: normalize_array(normalizeBit),
|
|
316
|
+
[ArrayColumnType.XML_ARRAY]: normalize_array(normalize_xml)
|
|
313
317
|
};
|
|
314
318
|
function fixArrayBufferValues(values) {
|
|
315
319
|
for (let i = 0; i < values.length; i++) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-neon",
|
|
3
|
-
"version": "5.19.0-dev.
|
|
3
|
+
"version": "5.19.0-dev.15",
|
|
4
4
|
"description": "Prisma's driver adapter for \"@neondatabase/serverless\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"postgres-array": "3.0.2",
|
|
35
|
-
"@prisma/driver-adapter-utils": "5.19.0-dev.
|
|
35
|
+
"@prisma/driver-adapter-utils": "5.19.0-dev.15"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@neondatabase/serverless": "0.9.3",
|