@prisma/query-plan-executor 7.2.0-dev.19 → 7.2.0-dev.20
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 -39
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -97773,7 +97773,7 @@ __export(index_exports, {
|
|
|
97773
97773
|
module.exports = __toCommonJS(index_exports);
|
|
97774
97774
|
|
|
97775
97775
|
// package.json
|
|
97776
|
-
var version = "7.2.0-dev.
|
|
97776
|
+
var version = "7.2.0-dev.20";
|
|
97777
97777
|
|
|
97778
97778
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
97779
97779
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -106490,7 +106490,7 @@ function mapValue(value, columnName, scalarType, enums) {
|
|
|
106490
106490
|
throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
|
|
106491
106491
|
}
|
|
106492
106492
|
}
|
|
106493
|
-
if (Array.isArray(value)) {
|
|
106493
|
+
if (Array.isArray(value) || value instanceof Uint8Array) {
|
|
106494
106494
|
for (const byte of value) {
|
|
106495
106495
|
if (byte !== 0) return true;
|
|
106496
106496
|
}
|
|
@@ -107161,17 +107161,6 @@ function serializeRawValue(value, type2) {
|
|
|
107161
107161
|
throw new Error(`Cannot serialize value of type ${typeof value} as JsonArray`);
|
|
107162
107162
|
}
|
|
107163
107163
|
return value.map((v2) => serializeRawValue(v2, ColumnTypeEnum.Json));
|
|
107164
|
-
case ColumnTypeEnum.Bytes:
|
|
107165
|
-
if (Array.isArray(value)) {
|
|
107166
|
-
return new Uint8Array(value);
|
|
107167
|
-
} else {
|
|
107168
|
-
throw new Error(`Cannot serialize value of type ${typeof value} as Bytes`);
|
|
107169
|
-
}
|
|
107170
|
-
case ColumnTypeEnum.BytesArray:
|
|
107171
|
-
if (!Array.isArray(value)) {
|
|
107172
|
-
throw new Error(`Cannot serialize value of type ${typeof value} as BytesArray`);
|
|
107173
|
-
}
|
|
107174
|
-
return value.map((v2) => serializeRawValue(v2, ColumnTypeEnum.Bytes));
|
|
107175
107164
|
case ColumnTypeEnum.Boolean:
|
|
107176
107165
|
switch (typeof value) {
|
|
107177
107166
|
case "boolean":
|
|
@@ -109723,9 +109712,6 @@ function mapArg(arg, argType) {
|
|
|
109723
109712
|
if (typeof arg === "string" && argType.scalarType === "bytes") {
|
|
109724
109713
|
return Buffer.from(arg, "base64");
|
|
109725
109714
|
}
|
|
109726
|
-
if (Array.isArray(arg) && argType.scalarType === "bytes") {
|
|
109727
|
-
return Buffer.from(arg);
|
|
109728
|
-
}
|
|
109729
109715
|
if (ArrayBuffer.isView(arg)) {
|
|
109730
109716
|
return Buffer.from(arg.buffer, arg.byteOffset, arg.byteLength);
|
|
109731
109717
|
}
|
|
@@ -109744,9 +109730,6 @@ function mapRow(row, fields) {
|
|
|
109744
109730
|
case "DATETIME2":
|
|
109745
109731
|
return (/* @__PURE__ */ new Date(`${value}Z`)).toISOString().replace(/(\.000)?Z$/, "+00:00");
|
|
109746
109732
|
}
|
|
109747
|
-
if (Buffer.isBuffer(value)) {
|
|
109748
|
-
return Array.from(value);
|
|
109749
|
-
}
|
|
109750
109733
|
if (typeof value === "bigint") {
|
|
109751
109734
|
return value.toString();
|
|
109752
109735
|
}
|
|
@@ -110628,9 +110611,6 @@ function mapArg2(arg, argType) {
|
|
|
110628
110611
|
if (typeof arg === "string" && argType.scalarType === "bytes") {
|
|
110629
110612
|
return Buffer.from(arg, "base64");
|
|
110630
110613
|
}
|
|
110631
|
-
if (Array.isArray(arg) && argType.scalarType === "bytes") {
|
|
110632
|
-
return Buffer.from(arg);
|
|
110633
|
-
}
|
|
110634
110614
|
if (ArrayBuffer.isView(arg)) {
|
|
110635
110615
|
return Buffer.from(arg.buffer, arg.byteOffset, arg.byteLength);
|
|
110636
110616
|
}
|
|
@@ -110654,9 +110634,6 @@ function mapRow2(row, columns) {
|
|
|
110654
110634
|
}
|
|
110655
110635
|
return value;
|
|
110656
110636
|
}
|
|
110657
|
-
if (Buffer.isBuffer(value)) {
|
|
110658
|
-
return Array.from(value);
|
|
110659
|
-
}
|
|
110660
110637
|
if (typeof value === "string" && type2 === import_mssql3.default.UniqueIdentifier) {
|
|
110661
110638
|
return value.toLowerCase();
|
|
110662
110639
|
}
|
|
@@ -111301,18 +111278,10 @@ function normalize_xml(xml) {
|
|
|
111301
111278
|
function toJson(json2) {
|
|
111302
111279
|
return json2;
|
|
111303
111280
|
}
|
|
111304
|
-
function encodeBuffer(buffer) {
|
|
111305
|
-
return Array.from(new Uint8Array(buffer));
|
|
111306
|
-
}
|
|
111307
111281
|
var parsePgBytes = getTypeParser(ScalarColumnType.BYTEA);
|
|
111308
|
-
var
|
|
111309
|
-
function normalizeByteaArray(serializedBytesArray) {
|
|
111310
|
-
const buffers = parseBytesArray(serializedBytesArray);
|
|
111311
|
-
return buffers.map((buf) => buf ? encodeBuffer(buf) : null);
|
|
111312
|
-
}
|
|
111282
|
+
var normalizeByteaArray = getTypeParser(ArrayColumnType.BYTEA_ARRAY);
|
|
111313
111283
|
function convertBytes(serializedBytes) {
|
|
111314
|
-
|
|
111315
|
-
return encodeBuffer(buffer);
|
|
111284
|
+
return parsePgBytes(serializedBytes);
|
|
111316
111285
|
}
|
|
111317
111286
|
function normalizeBit(bit) {
|
|
111318
111287
|
return bit;
|
|
@@ -111365,11 +111334,8 @@ function mapArg3(arg, argType) {
|
|
|
111365
111334
|
if (typeof arg === "string" && argType.scalarType === "bytes") {
|
|
111366
111335
|
return Buffer.from(arg, "base64");
|
|
111367
111336
|
}
|
|
111368
|
-
if (Array.isArray(arg) && argType.scalarType === "bytes") {
|
|
111369
|
-
return Buffer.from(arg);
|
|
111370
|
-
}
|
|
111371
111337
|
if (ArrayBuffer.isView(arg)) {
|
|
111372
|
-
return
|
|
111338
|
+
return new Uint8Array(arg.buffer, arg.byteOffset, arg.byteLength);
|
|
111373
111339
|
}
|
|
111374
111340
|
return arg;
|
|
111375
111341
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.2.0-dev.
|
|
3
|
+
"version": "7.2.0-dev.20",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"temporal-polyfill": "0.3.0",
|
|
21
21
|
"vitest": "3.2.4",
|
|
22
22
|
"zod": "4.1.3",
|
|
23
|
-
"@prisma/adapter-pg": "7.2.0-dev.
|
|
24
|
-
"@prisma/adapter-mariadb": "7.2.0-dev.
|
|
25
|
-
"@prisma/adapter-mssql": "7.2.0-dev.
|
|
26
|
-
"@prisma/client-engine-runtime": "7.2.0-dev.
|
|
27
|
-
"@prisma/driver-adapter-utils": "7.2.0-dev.
|
|
23
|
+
"@prisma/adapter-pg": "7.2.0-dev.20",
|
|
24
|
+
"@prisma/adapter-mariadb": "7.2.0-dev.20",
|
|
25
|
+
"@prisma/adapter-mssql": "7.2.0-dev.20",
|
|
26
|
+
"@prisma/client-engine-runtime": "7.2.0-dev.20",
|
|
27
|
+
"@prisma/driver-adapter-utils": "7.2.0-dev.20"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|