@prisma/adapter-libsql 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-studio-ux-refinements.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 CHANGED
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  PrismaLibSQL: () => PrismaLibSQL
24
24
  });
25
- module.exports = __toCommonJS(src_exports);
25
+ module.exports = __toCommonJS(index_exports);
26
26
 
27
27
  // src/libsql.ts
28
28
  var import_driver_adapter_utils2 = require("@prisma/driver-adapter-utils");
@@ -79,14 +79,16 @@ function mapDeclType(declType) {
79
79
  return import_driver_adapter_utils.ColumnTypeEnum.Bytes;
80
80
  case "BOOLEAN":
81
81
  return import_driver_adapter_utils.ColumnTypeEnum.Boolean;
82
+ case "JSONB":
83
+ return import_driver_adapter_utils.ColumnTypeEnum.Json;
82
84
  default:
83
85
  debug("unknown decltype:", declType);
84
86
  return null;
85
87
  }
86
88
  }
87
- function mapDeclaredColumnTypes(columntTypes) {
89
+ function mapDeclaredColumnTypes(columnTypes) {
88
90
  const emptyIndices = /* @__PURE__ */ new Set();
89
- const result = columntTypes.map((typeName, index) => {
91
+ const result = columnTypes.map((typeName, index) => {
90
92
  const mappedType = mapDeclType(typeName);
91
93
  if (mappedType === null) {
92
94
  emptyIndices.add(index);
package/dist/index.mjs CHANGED
@@ -53,14 +53,16 @@ function mapDeclType(declType) {
53
53
  return ColumnTypeEnum.Bytes;
54
54
  case "BOOLEAN":
55
55
  return ColumnTypeEnum.Boolean;
56
+ case "JSONB":
57
+ return ColumnTypeEnum.Json;
56
58
  default:
57
59
  debug("unknown decltype:", declType);
58
60
  return null;
59
61
  }
60
62
  }
61
- function mapDeclaredColumnTypes(columntTypes) {
63
+ function mapDeclaredColumnTypes(columnTypes) {
62
64
  const emptyIndices = /* @__PURE__ */ new Set();
63
- const result = columntTypes.map((typeName, index) => {
65
+ const result = columnTypes.map((typeName, index) => {
64
66
  const mappedType = mapDeclType(typeName);
65
67
  if (mappedType === null) {
66
68
  emptyIndices.add(index);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-libsql",
3
- "version": "6.3.0-integration-simpler-typeinfo-query.1",
3
+ "version": "6.3.0-integration-studio-ux-refinements.1",
4
4
  "description": "Prisma's driver adapter for libSQL and Turso",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,7 +32,7 @@
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
34
  "async-mutex": "0.5.0",
35
- "@prisma/driver-adapter-utils": "6.3.0-integration-simpler-typeinfo-query.1"
35
+ "@prisma/driver-adapter-utils": "6.3.0-integration-studio-ux-refinements.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@libsql/client": "0.8.0"