@prisma/query-plan-executor 6.18.0-dev.18 → 6.18.0-dev.19
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 +18 -14
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -97612,7 +97612,7 @@ __export(index_exports, {
|
|
|
97612
97612
|
module.exports = __toCommonJS(index_exports);
|
|
97613
97613
|
|
|
97614
97614
|
// package.json
|
|
97615
|
-
var version = "6.18.0-dev.
|
|
97615
|
+
var version = "6.18.0-dev.19";
|
|
97616
97616
|
|
|
97617
97617
|
// ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
|
|
97618
97618
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
@@ -106155,12 +106155,12 @@ function mapValue(value, columnName, scalarType, enums) {
|
|
|
106155
106155
|
}
|
|
106156
106156
|
var TIME_TZ_PATTERN = /\d{2}:\d{2}:\d{2}(?:\.\d+)?(Z|[+-]\d{2}(:?\d{2})?)?$/;
|
|
106157
106157
|
function normalizeDateTime(dt2) {
|
|
106158
|
-
const
|
|
106159
|
-
if (
|
|
106160
|
-
return `${dt2}
|
|
106158
|
+
const timeTzMatches = TIME_TZ_PATTERN.exec(dt2);
|
|
106159
|
+
if (timeTzMatches === null) {
|
|
106160
|
+
return `${dt2}T00:00:00Z`;
|
|
106161
106161
|
}
|
|
106162
106162
|
let dtWithTz = dt2;
|
|
106163
|
-
const [timeTz, tz, tzMinuteOffset] =
|
|
106163
|
+
const [timeTz, tz, tzMinuteOffset] = timeTzMatches;
|
|
106164
106164
|
if (tz !== void 0 && tz !== "Z" && tzMinuteOffset === void 0) {
|
|
106165
106165
|
dtWithTz = `${dt2}:00`;
|
|
106166
106166
|
} else if (tz === void 0) {
|
|
@@ -106169,6 +106169,10 @@ function normalizeDateTime(dt2) {
|
|
|
106169
106169
|
if (timeTz.length === dt2.length) {
|
|
106170
106170
|
return `1970-01-01T${dtWithTz}`;
|
|
106171
106171
|
}
|
|
106172
|
+
const timeSeparatorIndex = timeTzMatches.index - 1;
|
|
106173
|
+
if (dtWithTz[timeSeparatorIndex] === " ") {
|
|
106174
|
+
dtWithTz = `${dtWithTz.slice(0, timeSeparatorIndex)}T${dtWithTz.slice(timeSeparatorIndex + 1)}`;
|
|
106175
|
+
}
|
|
106172
106176
|
return dtWithTz;
|
|
106173
106177
|
}
|
|
106174
106178
|
function providerToOtelSystem(provider) {
|
|
@@ -109271,11 +109275,11 @@ var typeCast = (field, next) => {
|
|
|
109271
109275
|
function formatDateTime(date5) {
|
|
109272
109276
|
const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
|
|
109273
109277
|
const ms = date5.getUTCMilliseconds();
|
|
109274
|
-
return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
|
|
109278
|
+
return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
|
|
109275
109279
|
}
|
|
109276
109280
|
function formatDate(date5) {
|
|
109277
109281
|
const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
|
|
109278
|
-
return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
|
|
109282
|
+
return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
|
|
109279
109283
|
}
|
|
109280
109284
|
function formatTime(date5) {
|
|
109281
109285
|
const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
|
|
@@ -110177,11 +110181,11 @@ function mapRow2(row, columns) {
|
|
|
110177
110181
|
function formatDateTime2(date5) {
|
|
110178
110182
|
const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
|
|
110179
110183
|
const ms = date5.getUTCMilliseconds();
|
|
110180
|
-
return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
|
|
110184
|
+
return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
|
|
110181
110185
|
}
|
|
110182
110186
|
function formatDate2(date5) {
|
|
110183
110187
|
const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
|
|
110184
|
-
return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
|
|
110188
|
+
return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
|
|
110185
110189
|
}
|
|
110186
110190
|
function formatTime2(date5) {
|
|
110187
110191
|
const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
|
|
@@ -110772,10 +110776,10 @@ function normalize_date(date5) {
|
|
|
110772
110776
|
return date5;
|
|
110773
110777
|
}
|
|
110774
110778
|
function normalize_timestamp(time3) {
|
|
110775
|
-
return
|
|
110779
|
+
return `${time3.replace(" ", "T")}+00:00`;
|
|
110776
110780
|
}
|
|
110777
|
-
function
|
|
110778
|
-
return
|
|
110781
|
+
function normalize_timestamptz(time3) {
|
|
110782
|
+
return time3.replace(" ", "T").replace(/[+-]\d{2}(:\d{2})?$/, "+00:00");
|
|
110779
110783
|
}
|
|
110780
110784
|
function normalize_time(time3) {
|
|
110781
110785
|
return time3;
|
|
@@ -110818,8 +110822,8 @@ var customParsers = {
|
|
|
110818
110822
|
[ArrayColumnType.DATE_ARRAY]: normalize_array(normalize_date),
|
|
110819
110823
|
[ScalarColumnType.TIMESTAMP]: normalize_timestamp,
|
|
110820
110824
|
[ArrayColumnType.TIMESTAMP_ARRAY]: normalize_array(normalize_timestamp),
|
|
110821
|
-
[ScalarColumnType.TIMESTAMPTZ]:
|
|
110822
|
-
[ArrayColumnType.TIMESTAMPTZ_ARRAY]: normalize_array(
|
|
110825
|
+
[ScalarColumnType.TIMESTAMPTZ]: normalize_timestamptz,
|
|
110826
|
+
[ArrayColumnType.TIMESTAMPTZ_ARRAY]: normalize_array(normalize_timestamptz),
|
|
110823
110827
|
[ScalarColumnType.MONEY]: normalize_money,
|
|
110824
110828
|
[ArrayColumnType.MONEY_ARRAY]: normalize_array(normalize_money),
|
|
110825
110829
|
[ScalarColumnType.JSON]: toJson,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/query-plan-executor",
|
|
3
|
-
"version": "6.18.0-dev.
|
|
3
|
+
"version": "6.18.0-dev.19",
|
|
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-
|
|
24
|
-
"@prisma/adapter-
|
|
25
|
-
"@prisma/
|
|
26
|
-
"@prisma/driver-adapter-utils": "6.18.0-dev.
|
|
27
|
-
"@prisma/
|
|
23
|
+
"@prisma/adapter-mariadb": "6.18.0-dev.19",
|
|
24
|
+
"@prisma/adapter-pg": "6.18.0-dev.19",
|
|
25
|
+
"@prisma/adapter-mssql": "6.18.0-dev.19",
|
|
26
|
+
"@prisma/driver-adapter-utils": "6.18.0-dev.19",
|
|
27
|
+
"@prisma/client-engine-runtime": "6.18.0-dev.19"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|