@prisma/adapter-mssql 6.15.0-integration-fix-prisma-client-dirname-aws-lambda.2 → 6.15.0-integration-fix-prisma-client-dirname-aws-lambda.3
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 +1 -1
- package/dist/index.mjs +5 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -155,7 +155,7 @@ function mapRow(row, columns) {
|
|
|
155
155
|
const type = columns?.[i]?.type;
|
|
156
156
|
if (value instanceof Date) {
|
|
157
157
|
if (type === import_mssql.default.Time) {
|
|
158
|
-
return value.toISOString().split("T").
|
|
158
|
+
return value.toISOString().split("T")[1].replace("Z", "");
|
|
159
159
|
}
|
|
160
160
|
return value.toISOString();
|
|
161
161
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,10 @@ import sql2 from "mssql";
|
|
|
10
10
|
var name = "@prisma/adapter-mssql";
|
|
11
11
|
|
|
12
12
|
// src/conversion.ts
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
ColumnTypeEnum,
|
|
15
|
+
DriverAdapterError
|
|
16
|
+
} from "@prisma/driver-adapter-utils";
|
|
14
17
|
import sql from "mssql";
|
|
15
18
|
function mapColumnType(col) {
|
|
16
19
|
switch (col.type) {
|
|
@@ -122,7 +125,7 @@ function mapRow(row, columns) {
|
|
|
122
125
|
const type = columns?.[i]?.type;
|
|
123
126
|
if (value instanceof Date) {
|
|
124
127
|
if (type === sql.Time) {
|
|
125
|
-
return value.toISOString().split("T").
|
|
128
|
+
return value.toISOString().split("T")[1].replace("Z", "");
|
|
126
129
|
}
|
|
127
130
|
return value.toISOString();
|
|
128
131
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-mssql",
|
|
3
|
-
"version": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.
|
|
3
|
+
"version": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.3",
|
|
4
4
|
"description": "Prisma's driver adapter for \"mssql\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"mssql": "^11.0.1",
|
|
35
35
|
"async-mutex": "0.5.0",
|
|
36
|
-
"@prisma/driver-adapter-utils": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.
|
|
36
|
+
"@prisma/driver-adapter-utils": "6.15.0-integration-fix-prisma-client-dirname-aws-lambda.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/mssql": "9.1.7",
|