@prisma/adapter-pg
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -69,5 +69,10 @@ "use strict"; | ||
} | ||
function convertJson(json) { | ||
return json === "null" ? import_driver_adapter_utils.JsonNullMarker : JSON.parse(json); | ||
} | ||
import_pg.types.setTypeParser(PgColumnType.DATE, (date) => date); | ||
import_pg.types.setTypeParser(PgColumnType.TIME, (date) => date); | ||
import_pg.types.setTypeParser(PgColumnType.TIMESTAMP, (date) => date); | ||
import_pg.types.setTypeParser(PgColumnType.JSONB, convertJson); | ||
import_pg.types.setTypeParser(PgColumnType.JSON, convertJson); | ||
@@ -74,0 +79,0 @@ // src/pg.ts |
{ | ||
"name": "@prisma/adapter-pg", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Prisma's driver adapter for \"pg\"", | ||
@@ -17,3 +17,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@prisma/driver-adapter-utils": "0.5.0" | ||
"@prisma/driver-adapter-utils": "0.6.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
13190
336
+ Added@prisma/driver-adapter-utils@0.6.0(transitive)
- Removed@prisma/driver-adapter-utils@0.5.0(transitive)