@prisma/query-plan-executor 7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1 → 7.3.0-dev.1
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 +78 -41
- 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.
|
|
97776
|
+
var version = "7.3.0-dev.1";
|
|
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) {
|
|
@@ -105707,6 +105707,76 @@ var mockAdapterErrors = {
|
|
|
105707
105707
|
dispose: new Error("Not implemented: dispose")
|
|
105708
105708
|
};
|
|
105709
105709
|
|
|
105710
|
+
// ../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs
|
|
105711
|
+
function klona(x2) {
|
|
105712
|
+
if (typeof x2 !== "object") return x2;
|
|
105713
|
+
var k2, tmp, str = Object.prototype.toString.call(x2);
|
|
105714
|
+
if (str === "[object Object]") {
|
|
105715
|
+
if (x2.constructor !== Object && typeof x2.constructor === "function") {
|
|
105716
|
+
tmp = new x2.constructor();
|
|
105717
|
+
for (k2 in x2) {
|
|
105718
|
+
if (x2.hasOwnProperty(k2) && tmp[k2] !== x2[k2]) {
|
|
105719
|
+
tmp[k2] = klona(x2[k2]);
|
|
105720
|
+
}
|
|
105721
|
+
}
|
|
105722
|
+
} else {
|
|
105723
|
+
tmp = {};
|
|
105724
|
+
for (k2 in x2) {
|
|
105725
|
+
if (k2 === "__proto__") {
|
|
105726
|
+
Object.defineProperty(tmp, k2, {
|
|
105727
|
+
value: klona(x2[k2]),
|
|
105728
|
+
configurable: true,
|
|
105729
|
+
enumerable: true,
|
|
105730
|
+
writable: true
|
|
105731
|
+
});
|
|
105732
|
+
} else {
|
|
105733
|
+
tmp[k2] = klona(x2[k2]);
|
|
105734
|
+
}
|
|
105735
|
+
}
|
|
105736
|
+
}
|
|
105737
|
+
return tmp;
|
|
105738
|
+
}
|
|
105739
|
+
if (str === "[object Array]") {
|
|
105740
|
+
k2 = x2.length;
|
|
105741
|
+
for (tmp = Array(k2); k2--; ) {
|
|
105742
|
+
tmp[k2] = klona(x2[k2]);
|
|
105743
|
+
}
|
|
105744
|
+
return tmp;
|
|
105745
|
+
}
|
|
105746
|
+
if (str === "[object Set]") {
|
|
105747
|
+
tmp = /* @__PURE__ */ new Set();
|
|
105748
|
+
x2.forEach(function(val) {
|
|
105749
|
+
tmp.add(klona(val));
|
|
105750
|
+
});
|
|
105751
|
+
return tmp;
|
|
105752
|
+
}
|
|
105753
|
+
if (str === "[object Map]") {
|
|
105754
|
+
tmp = /* @__PURE__ */ new Map();
|
|
105755
|
+
x2.forEach(function(val, key) {
|
|
105756
|
+
tmp.set(klona(key), klona(val));
|
|
105757
|
+
});
|
|
105758
|
+
return tmp;
|
|
105759
|
+
}
|
|
105760
|
+
if (str === "[object Date]") {
|
|
105761
|
+
return /* @__PURE__ */ new Date(+x2);
|
|
105762
|
+
}
|
|
105763
|
+
if (str === "[object RegExp]") {
|
|
105764
|
+
tmp = new RegExp(x2.source, x2.flags);
|
|
105765
|
+
tmp.lastIndex = x2.lastIndex;
|
|
105766
|
+
return tmp;
|
|
105767
|
+
}
|
|
105768
|
+
if (str === "[object DataView]") {
|
|
105769
|
+
return new x2.constructor(klona(x2.buffer));
|
|
105770
|
+
}
|
|
105771
|
+
if (str === "[object ArrayBuffer]") {
|
|
105772
|
+
return x2.slice(0);
|
|
105773
|
+
}
|
|
105774
|
+
if (str.slice(-6) === "Array]") {
|
|
105775
|
+
return new x2.constructor(x2);
|
|
105776
|
+
}
|
|
105777
|
+
return x2;
|
|
105778
|
+
}
|
|
105779
|
+
|
|
105710
105780
|
// ../../node_modules/.pnpm/@bugsnag+cuid@3.2.1/node_modules/@bugsnag/cuid/lib/pad.mjs
|
|
105711
105781
|
function pad(num, size) {
|
|
105712
105782
|
var s2 = "000000000" + num;
|
|
@@ -106490,7 +106560,7 @@ function mapValue(value, columnName, scalarType, enums) {
|
|
|
106490
106560
|
throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
|
|
106491
106561
|
}
|
|
106492
106562
|
}
|
|
106493
|
-
if (Array.isArray(value)) {
|
|
106563
|
+
if (Array.isArray(value) || value instanceof Uint8Array) {
|
|
106494
106564
|
for (const byte of value) {
|
|
106495
106565
|
if (byte !== 0) return true;
|
|
106496
106566
|
}
|
|
@@ -106600,7 +106670,7 @@ function formatSqlComment(tags) {
|
|
|
106600
106670
|
function applySqlCommenters(plugins, context2) {
|
|
106601
106671
|
const merged = {};
|
|
106602
106672
|
for (const plugin of plugins) {
|
|
106603
|
-
const tags = plugin(context2);
|
|
106673
|
+
const tags = plugin(klona(context2));
|
|
106604
106674
|
for (const [key, value] of Object.entries(tags)) {
|
|
106605
106675
|
if (value !== void 0) {
|
|
106606
106676
|
merged[key] = value;
|
|
@@ -107161,17 +107231,6 @@ function serializeRawValue(value, type2) {
|
|
|
107161
107231
|
throw new Error(`Cannot serialize value of type ${typeof value} as JsonArray`);
|
|
107162
107232
|
}
|
|
107163
107233
|
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
107234
|
case ColumnTypeEnum.Boolean:
|
|
107176
107235
|
switch (typeof value) {
|
|
107177
107236
|
case "boolean":
|
|
@@ -109723,9 +109782,6 @@ function mapArg(arg, argType) {
|
|
|
109723
109782
|
if (typeof arg === "string" && argType.scalarType === "bytes") {
|
|
109724
109783
|
return Buffer.from(arg, "base64");
|
|
109725
109784
|
}
|
|
109726
|
-
if (Array.isArray(arg) && argType.scalarType === "bytes") {
|
|
109727
|
-
return Buffer.from(arg);
|
|
109728
|
-
}
|
|
109729
109785
|
if (ArrayBuffer.isView(arg)) {
|
|
109730
109786
|
return Buffer.from(arg.buffer, arg.byteOffset, arg.byteLength);
|
|
109731
109787
|
}
|
|
@@ -109744,9 +109800,6 @@ function mapRow(row, fields) {
|
|
|
109744
109800
|
case "DATETIME2":
|
|
109745
109801
|
return (/* @__PURE__ */ new Date(`${value}Z`)).toISOString().replace(/(\.000)?Z$/, "+00:00");
|
|
109746
109802
|
}
|
|
109747
|
-
if (Buffer.isBuffer(value)) {
|
|
109748
|
-
return Array.from(value);
|
|
109749
|
-
}
|
|
109750
109803
|
if (typeof value === "bigint") {
|
|
109751
109804
|
return value.toString();
|
|
109752
109805
|
}
|
|
@@ -109888,7 +109941,8 @@ function mapDriverError(error44) {
|
|
|
109888
109941
|
kind: "mysql",
|
|
109889
109942
|
code: error44.errno,
|
|
109890
109943
|
message: error44.sqlMessage ?? "N/A",
|
|
109891
|
-
state: error44.sqlState ?? "N/A"
|
|
109944
|
+
state: error44.sqlState ?? "N/A",
|
|
109945
|
+
cause: error44.cause?.message ?? void 0
|
|
109892
109946
|
};
|
|
109893
109947
|
}
|
|
109894
109948
|
}
|
|
@@ -110627,9 +110681,6 @@ function mapArg2(arg, argType) {
|
|
|
110627
110681
|
if (typeof arg === "string" && argType.scalarType === "bytes") {
|
|
110628
110682
|
return Buffer.from(arg, "base64");
|
|
110629
110683
|
}
|
|
110630
|
-
if (Array.isArray(arg) && argType.scalarType === "bytes") {
|
|
110631
|
-
return Buffer.from(arg);
|
|
110632
|
-
}
|
|
110633
110684
|
if (ArrayBuffer.isView(arg)) {
|
|
110634
110685
|
return Buffer.from(arg.buffer, arg.byteOffset, arg.byteLength);
|
|
110635
110686
|
}
|
|
@@ -110653,9 +110704,6 @@ function mapRow2(row, columns) {
|
|
|
110653
110704
|
}
|
|
110654
110705
|
return value;
|
|
110655
110706
|
}
|
|
110656
|
-
if (Buffer.isBuffer(value)) {
|
|
110657
|
-
return Array.from(value);
|
|
110658
|
-
}
|
|
110659
110707
|
if (typeof value === "string" && type2 === import_mssql3.default.UniqueIdentifier) {
|
|
110660
110708
|
return value.toLowerCase();
|
|
110661
110709
|
}
|
|
@@ -111300,18 +111348,10 @@ function normalize_xml(xml) {
|
|
|
111300
111348
|
function toJson(json2) {
|
|
111301
111349
|
return json2;
|
|
111302
111350
|
}
|
|
111303
|
-
function encodeBuffer(buffer) {
|
|
111304
|
-
return Array.from(new Uint8Array(buffer));
|
|
111305
|
-
}
|
|
111306
111351
|
var parsePgBytes = getTypeParser(ScalarColumnType.BYTEA);
|
|
111307
|
-
var
|
|
111308
|
-
function normalizeByteaArray(serializedBytesArray) {
|
|
111309
|
-
const buffers = parseBytesArray(serializedBytesArray);
|
|
111310
|
-
return buffers.map((buf) => buf ? encodeBuffer(buf) : null);
|
|
111311
|
-
}
|
|
111352
|
+
var normalizeByteaArray = getTypeParser(ArrayColumnType.BYTEA_ARRAY);
|
|
111312
111353
|
function convertBytes(serializedBytes) {
|
|
111313
|
-
|
|
111314
|
-
return encodeBuffer(buffer);
|
|
111354
|
+
return parsePgBytes(serializedBytes);
|
|
111315
111355
|
}
|
|
111316
111356
|
function normalizeBit(bit) {
|
|
111317
111357
|
return bit;
|
|
@@ -111364,11 +111404,8 @@ function mapArg3(arg, argType) {
|
|
|
111364
111404
|
if (typeof arg === "string" && argType.scalarType === "bytes") {
|
|
111365
111405
|
return Buffer.from(arg, "base64");
|
|
111366
111406
|
}
|
|
111367
|
-
if (Array.isArray(arg) && argType.scalarType === "bytes") {
|
|
111368
|
-
return Buffer.from(arg);
|
|
111369
|
-
}
|
|
111370
111407
|
if (ArrayBuffer.isView(arg)) {
|
|
111371
|
-
return
|
|
111408
|
+
return new Uint8Array(arg.buffer, arg.byteOffset, arg.byteLength);
|
|
111372
111409
|
}
|
|
111373
111410
|
return arg;
|
|
111374
111411
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-dev.1",
|
|
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.
|
|
24
|
-
"@prisma/adapter-
|
|
25
|
-
"@prisma/
|
|
26
|
-
"@prisma/client-engine-runtime": "7.
|
|
27
|
-
"@prisma/adapter-
|
|
23
|
+
"@prisma/adapter-pg": "7.3.0-dev.1",
|
|
24
|
+
"@prisma/adapter-mariadb": "7.3.0-dev.1",
|
|
25
|
+
"@prisma/adapter-mssql": "7.3.0-dev.1",
|
|
26
|
+
"@prisma/client-engine-runtime": "7.3.0-dev.1",
|
|
27
|
+
"@prisma/driver-adapter-utils": "7.3.0-dev.1"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|