@verikit/prisma 0.23.6 → 0.23.7
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/README.md +21 -1
- package/dist/create-prisma-adapter.d.ts +31 -48
- package/dist/create-prisma-adapter.d.ts.map +1 -1
- package/dist/create-prisma-adapter.js +65 -47
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @verikit/prisma
|
|
2
2
|
|
|
3
|
-
Prisma ORM
|
|
3
|
+
Prisma ORM adapter for VeriKit server resources.
|
|
4
4
|
|
|
5
5
|
See the [VeriKit documentation](https://verikit.dev) for setup and usage.
|
|
6
|
+
|
|
7
|
+
## Consistent pagination
|
|
8
|
+
|
|
9
|
+
`listTransaction` is required: `list()`'s records and count queries always run
|
|
10
|
+
through it, in the same transaction, so a concurrent write between them can
|
|
11
|
+
never desync a page from `meta.total`. The adapter only ever sees a single
|
|
12
|
+
model delegate, not the full Prisma client, so it has no way to open a
|
|
13
|
+
transaction on its own pass one built from your `PrismaClient`:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
createPrismaAdapter(resource, {
|
|
17
|
+
model: prisma.post,
|
|
18
|
+
fields: { title: "title" },
|
|
19
|
+
id: { field: "id" },
|
|
20
|
+
listTransaction: (operation) =>
|
|
21
|
+
prisma.$transaction(
|
|
22
|
+
(tx) => operation(tx.post),
|
|
23
|
+
{ isolationLevel: "RepeatableRead" },
|
|
24
|
+
),
|
|
25
|
+
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import type { FieldMap, RelationshipMap, Resource } from "@verikit/core";
|
|
2
2
|
import { type ResourceAdapter } from "@verikit/server";
|
|
3
3
|
/**
|
|
4
|
-
* Structural subset of a
|
|
5
|
-
*
|
|
6
|
-
* a generated client's per-model argument/return types are specific to that model and schema,
|
|
7
|
-
* there's no exported type that describes "any model delegate" generically, and every real
|
|
8
|
-
* delegate is a structural superset of this anyway (same shape `@verikit/drizzle`'s
|
|
9
|
-
* `AnyDrizzleDatabase` uses for the same reason).
|
|
4
|
+
* Structural subset of a Prisma model delegate used by this adapter.
|
|
5
|
+
* Kept generic to avoid coupling to generated model-specific types.
|
|
10
6
|
*/
|
|
11
7
|
export interface PrismaModelDelegate {
|
|
12
8
|
findMany(args?: any): Promise<any[]>;
|
|
@@ -25,21 +21,21 @@ export interface PrismaModelDelegate {
|
|
|
25
21
|
}>;
|
|
26
22
|
}
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
* Runs a list operation with the model delegate bound to a Prisma transaction.
|
|
25
|
+
* For example: `(operation) => prisma.$transaction((tx) => operation(tx.post))`.
|
|
26
|
+
*/
|
|
27
|
+
export type PrismaListTransaction = <T>(operation: (model: PrismaModelDelegate) => Promise<T>) => Promise<T>;
|
|
28
|
+
/**
|
|
29
|
+
* Coerces raw string IDs into the type expected by Prisma `where` clauses.
|
|
30
|
+
* Explicit configuration is required because Prisma exposes no runtime ID type metadata.
|
|
32
31
|
*/
|
|
33
32
|
export interface PrismaIdConfig<TId = unknown> {
|
|
34
33
|
/** The Prisma scalar name of the model's primary (or other unique) id field. */
|
|
35
34
|
field: string;
|
|
36
35
|
/**
|
|
37
|
-
* Decodes a route-segment
|
|
38
|
-
* `undefined`
|
|
39
|
-
*
|
|
40
|
-
* "missing" without even querying, mirroring `@verikit/drizzle`'s `coerceId`. Defaults to
|
|
41
|
-
* the identity function, which only suits a string-typed id (cuid/uuid); a numeric or
|
|
42
|
-
* composite id must supply this.
|
|
36
|
+
* Decodes a route-segment ID for Prisma `where` clauses.
|
|
37
|
+
* Return `undefined` for invalid IDs to skip the query and report "missing".
|
|
38
|
+
* Defaults to identity; numeric or composite IDs require an implementation.
|
|
43
39
|
*/
|
|
44
40
|
fromPath?: (segment: string) => TId | undefined;
|
|
45
41
|
/**
|
|
@@ -49,37 +45,18 @@ export interface PrismaIdConfig<TId = unknown> {
|
|
|
49
45
|
toPath?: (value: TId) => string;
|
|
50
46
|
}
|
|
51
47
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* is already ASCII-case-insensitive without it; MySQL's case-sensitivity is a property of the
|
|
56
|
-
* column's collation, which Prisma can't override from the query API. Omit this (or pass
|
|
57
|
-
* `"sqlite"`/`"mysql"`, which take the same code path) unless the datasource is PostgreSQL.
|
|
58
|
-
* Only `"sqlite"` is exercised by this package's own test suite; `"postgresql"`'s branch is
|
|
59
|
-
* implemented per Prisma's documented behavior but isn't integration-tested here (no
|
|
60
|
-
* PostgreSQL instance in this repo's test environment) establish and test your own
|
|
61
|
-
* provider's search behavior before relying on it in production.
|
|
62
|
-
*
|
|
63
|
-
* Separately, unlike `@verikit/drizzle` (which escapes `%`/`_` in the search term before
|
|
64
|
-
* building its own `LIKE ... ESCAPE '\'`), this adapter's search goes through Prisma's
|
|
65
|
-
* `contains` filter, which has no escape-character option. A search term containing `%` or
|
|
66
|
-
* `_` is passed through and interpreted as a SQL wildcard by the underlying database, not
|
|
67
|
-
* matched literally. There's no adapter-level fix for this without dropping to raw SQL (and
|
|
68
|
-
* losing cross-provider portability with it); a consumer that needs literal-substring search
|
|
69
|
-
* semantics must filter or escape those characters itself before calling the adapter.
|
|
48
|
+
* Case-insensitive search strategy for `.searchable()` fields.
|
|
49
|
+
* PostgreSQL uses Prisma's `mode: "insensitive"`; SQLite and MySQL rely on
|
|
50
|
+
* collation. `%`, `_`, and `\` are matched literally across providers.
|
|
70
51
|
*/
|
|
71
52
|
export type PrismaSearchProvider = "postgresql" | "sqlite" | "mysql";
|
|
72
53
|
export interface PrismaAdapterOptions<TFields extends FieldMap> {
|
|
73
54
|
/** The generated Prisma model delegate this adapter reads/writes, e.g. `prisma.post`. */
|
|
74
55
|
model: PrismaModelDelegate;
|
|
75
56
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* delegate has no introspectable schema to fall back against; every field must be listed
|
|
80
|
-
* explicitly. Relation fields and arbitrary Prisma `include`/`select` values are out of
|
|
81
|
-
* scope see `ResourceAdapter`'s docstring on why relationship loading isn't part of this
|
|
82
|
-
* contract yet.
|
|
57
|
+
* Maps every resource field to its Prisma scalar field.
|
|
58
|
+
* All fields must be explicitly mapped; relations and Prisma `include`/`select`
|
|
59
|
+
* values are not supported.
|
|
83
60
|
*/
|
|
84
61
|
fields: {
|
|
85
62
|
[K in keyof TFields & string]: string;
|
|
@@ -88,6 +65,14 @@ export interface PrismaAdapterOptions<TFields extends FieldMap> {
|
|
|
88
65
|
id: PrismaIdConfig;
|
|
89
66
|
/** See `PrismaSearchProvider`. */
|
|
90
67
|
provider?: PrismaSearchProvider;
|
|
68
|
+
/**
|
|
69
|
+
* Runs `list()` records and count queries in the same transaction to keep
|
|
70
|
+
* pagination consistent. Required because the adapter cannot open a transaction
|
|
71
|
+
* from a model delegate alone.
|
|
72
|
+
*
|
|
73
|
+
* Use Prisma's `RepeatableRead` isolation for a stable pagination snapshot.
|
|
74
|
+
*/
|
|
75
|
+
listTransaction: PrismaListTransaction;
|
|
91
76
|
}
|
|
92
77
|
/** A canonical API record returned by the Prisma adapter. */
|
|
93
78
|
export interface PrismaResourceRecord extends Record<string, unknown> {
|
|
@@ -95,13 +80,11 @@ export interface PrismaResourceRecord extends Record<string, unknown> {
|
|
|
95
80
|
id: string;
|
|
96
81
|
}
|
|
97
82
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* `.searchable()` field's `fieldType` isn't text-like (`text`/`textarea`/`email`) Prisma's
|
|
104
|
-
* `contains` filter only works on `String` scalars.
|
|
83
|
+
* Creates a Prisma-backed `ResourceAdapter`.
|
|
84
|
+
* Selects only configured fields plus `id`, never full model rows.
|
|
85
|
+
*
|
|
86
|
+
* @throws {Error} If a resource field is unmapped or a `.searchable()` field
|
|
87
|
+
* is not text-like.
|
|
105
88
|
*/
|
|
106
89
|
export declare function createPrismaAdapter<TFields extends FieldMap, TRelationships extends RelationshipMap, TTable = unknown>(resource: Resource<string, TFields, TTable, TRelationships>, options: PrismaAdapterOptions<TFields>): ResourceAdapter<PrismaResourceRecord>;
|
|
107
90
|
//# sourceMappingURL=create-prisma-adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-prisma-adapter.d.ts","sourceRoot":"","sources":["../src/create-prisma-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,iBAAiB,CAAC;AAYzB
|
|
1
|
+
{"version":3,"file":"create-prisma-adapter.d.ts","sourceRoot":"","sources":["../src/create-prisma-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,iBAAiB,CAAC;AAYzB;;;GAGG;AAEH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACrC,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACnC,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACpC,SAAS,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACpC,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,UAAU,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,mBAAmB,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAChD,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,UAAU,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD;AAGD;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,EACpC,SAAS,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,CAAC,CAAC,KAClD,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,GAAG,GAAG,OAAO;IAC3C,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,GAAG,SAAS,CAAC;IAChD;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErE,MAAM,WAAW,oBAAoB,CAAC,OAAO,SAAS,QAAQ;IAC5D,yFAAyF;IACzF,KAAK,EAAE,mBAAmB,CAAC;IAC3B;;;;OAIG;IACH,MAAM,EAAE;SAAG,CAAC,IAAI,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM;KAAE,CAAC;IAClD,8EAA8E;IAC9E,EAAE,EAAE,cAAc,CAAC;IACnB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC;;;;;;OAMG;IACH,eAAe,EAAE,qBAAqB,CAAC;CACxC;AAED,6DAA6D;AAC7D,MAAM,WAAW,oBAAqB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACnE,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,SAAS,QAAQ,EACxB,cAAc,SAAS,eAAe,EACtC,MAAM,GAAG,OAAO,EAEhB,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAC3D,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACrC,eAAe,CAAC,oBAAoB,CAAC,CAkUvC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { UniqueConstraintError, } from "@verikit/server";
|
|
2
2
|
import { buildSelect, isRecordNotFoundError, isUniqueConstraintError, mapFilterToPrisma, mapValuesToData, presentRow, uniqueConstraintFields, } from "./mapping.js";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* `.searchable()` field's `fieldType` isn't text-like (`text`/`textarea`/`email`) Prisma's
|
|
10
|
-
* `contains` filter only works on `String` scalars.
|
|
4
|
+
* Creates a Prisma-backed `ResourceAdapter`.
|
|
5
|
+
* Selects only configured fields plus `id`, never full model rows.
|
|
6
|
+
*
|
|
7
|
+
* @throws {Error} If a resource field is unmapped or a `.searchable()` field
|
|
8
|
+
* is not text-like.
|
|
11
9
|
*/
|
|
12
10
|
export function createPrismaAdapter(resource, options) {
|
|
13
11
|
const { model, id } = options;
|
|
@@ -45,6 +43,14 @@ export function createPrismaAdapter(resource, options) {
|
|
|
45
43
|
})),
|
|
46
44
|
};
|
|
47
45
|
}
|
|
46
|
+
function matchesLiteralSearch(row, term, searchable) {
|
|
47
|
+
const normalizedTerm = term.toLowerCase();
|
|
48
|
+
return searchable.some((scalar) => {
|
|
49
|
+
const value = row[scalar];
|
|
50
|
+
return (typeof value === "string" &&
|
|
51
|
+
value.toLowerCase().includes(normalizedTerm));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
48
54
|
function scopeWhere(scope) {
|
|
49
55
|
if (!scope || Object.keys(scope).length === 0)
|
|
50
56
|
return undefined;
|
|
@@ -73,11 +79,25 @@ export function createPrismaAdapter(resource, options) {
|
|
|
73
79
|
? constraints[0]
|
|
74
80
|
: { AND: constraints };
|
|
75
81
|
}
|
|
82
|
+
async function findRecord(pathId, scope) {
|
|
83
|
+
const value = fromPath(pathId);
|
|
84
|
+
if (value === undefined) {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
if (scope && !model.findFirst) {
|
|
88
|
+
throw new Error("@verikit/prisma: scoped reads require a Prisma delegate with findFirst().");
|
|
89
|
+
}
|
|
90
|
+
const row = scope
|
|
91
|
+
? await model.findFirst({
|
|
92
|
+
where: combinedWhere(scope, { [id.field]: value }),
|
|
93
|
+
select,
|
|
94
|
+
})
|
|
95
|
+
: await model.findUnique({ where: { [id.field]: value }, select });
|
|
96
|
+
return present(row);
|
|
97
|
+
}
|
|
76
98
|
return {
|
|
77
99
|
async list(params) {
|
|
78
|
-
//
|
|
79
|
-
// anything; treat it as an unsatisfiable filter (zero results), matching
|
|
80
|
-
// @verikit/drizzle's convention for the same case.
|
|
100
|
+
// Search with no searchable fields can never match; return zero results.
|
|
81
101
|
const permittedSearchScalars = params.searchFields
|
|
82
102
|
? searchableScalars
|
|
83
103
|
.filter(([name]) => params.searchFields.includes(name))
|
|
@@ -86,48 +106,48 @@ export function createPrismaAdapter(resource, options) {
|
|
|
86
106
|
if (params.search && permittedSearchScalars.length === 0) {
|
|
87
107
|
return { records: [], total: 0 };
|
|
88
108
|
}
|
|
89
|
-
|
|
109
|
+
// Prisma `contains` can't escape LIKE metacharacters across all providers.
|
|
110
|
+
// Apply literal matching locally so `%`, `_`, and `\` cannot widen results.
|
|
111
|
+
const literalSearch = params.search !== undefined && /[\\%_]/.test(params.search);
|
|
112
|
+
const where = combinedWhere(params.scope, params.search && !literalSearch
|
|
90
113
|
? searchWhere(params.search, permittedSearchScalars)
|
|
91
114
|
: undefined, params.filters);
|
|
92
115
|
const sort = params.sort;
|
|
93
116
|
const sortScalar = sort && fields[sort.field];
|
|
94
117
|
const orderBy = sort && sortScalar ? { [sortScalar]: sort.direction } : undefined;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
118
|
+
const readPage = async (listModel) => {
|
|
119
|
+
if (literalSearch) {
|
|
120
|
+
const rows = await listModel.findMany({
|
|
121
|
+
where,
|
|
122
|
+
select,
|
|
123
|
+
...(orderBy && { orderBy }),
|
|
124
|
+
});
|
|
125
|
+
const matchingRows = rows.filter((row) => matchesLiteralSearch(row, params.search, permittedSearchScalars));
|
|
126
|
+
const offset = (params.page - 1) * params.pageSize;
|
|
127
|
+
return {
|
|
128
|
+
rows: matchingRows.slice(offset, offset + params.pageSize),
|
|
129
|
+
total: matchingRows.length,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
const [rows, total] = await Promise.all([
|
|
133
|
+
listModel.findMany({
|
|
134
|
+
where,
|
|
135
|
+
select,
|
|
136
|
+
...(orderBy && { orderBy }),
|
|
137
|
+
skip: (params.page - 1) * params.pageSize,
|
|
138
|
+
take: params.pageSize,
|
|
139
|
+
}),
|
|
140
|
+
listModel.count({ where }),
|
|
141
|
+
]);
|
|
142
|
+
return { rows, total };
|
|
143
|
+
};
|
|
144
|
+
const { rows, total } = await options.listTransaction(readPage);
|
|
110
145
|
return {
|
|
111
146
|
records: rows.map((row) => present(row)),
|
|
112
147
|
total,
|
|
113
148
|
};
|
|
114
149
|
},
|
|
115
|
-
|
|
116
|
-
const value = fromPath(pathId);
|
|
117
|
-
if (value === undefined) {
|
|
118
|
-
return undefined;
|
|
119
|
-
}
|
|
120
|
-
if (scope && !model.findFirst) {
|
|
121
|
-
throw new Error("@verikit/prisma: scoped reads require a Prisma delegate with findFirst().");
|
|
122
|
-
}
|
|
123
|
-
const row = scope
|
|
124
|
-
? await model.findFirst({
|
|
125
|
-
where: combinedWhere(scope, { [id.field]: value }),
|
|
126
|
-
select,
|
|
127
|
-
})
|
|
128
|
-
: await model.findUnique({ where: { [id.field]: value }, select });
|
|
129
|
-
return present(row);
|
|
130
|
-
},
|
|
150
|
+
find: findRecord,
|
|
131
151
|
async create(values) {
|
|
132
152
|
const data = mapValuesToData(values, fields);
|
|
133
153
|
try {
|
|
@@ -153,10 +173,8 @@ export function createPrismaAdapter(resource, options) {
|
|
|
153
173
|
if (scope) {
|
|
154
174
|
const where = combinedWhere(scope, { [id.field]: value });
|
|
155
175
|
try {
|
|
156
|
-
//
|
|
157
|
-
//
|
|
158
|
-
// trip instead of two. Older Prisma delegates fall back to updateMany
|
|
159
|
-
// plus a follow-up scoped find.
|
|
176
|
+
// Return the updated row directly when supported; older Prisma delegates
|
|
177
|
+
// fall back to `updateMany` followed by a scoped read.
|
|
160
178
|
if (model.updateManyAndReturn) {
|
|
161
179
|
const [row] = await model.updateManyAndReturn({
|
|
162
180
|
where,
|
|
@@ -169,7 +187,7 @@ export function createPrismaAdapter(resource, options) {
|
|
|
169
187
|
throw new Error("@verikit/prisma: scoped updates require a Prisma delegate with updateMany() or updateManyAndReturn().");
|
|
170
188
|
}
|
|
171
189
|
const result = await model.updateMany({ where, data });
|
|
172
|
-
return result.count === 0 ? undefined :
|
|
190
|
+
return result.count === 0 ? undefined : findRecord(pathId, scope);
|
|
173
191
|
}
|
|
174
192
|
catch (error) {
|
|
175
193
|
if (isUniqueConstraintError(error)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verikit/prisma",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.7",
|
|
4
4
|
"description": "Prisma ORM storage adapter for @verikit/server resources.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@verikit/
|
|
40
|
-
"@verikit/
|
|
39
|
+
"@verikit/core": "0.23.7",
|
|
40
|
+
"@verikit/server": "0.23.7"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@prisma/adapter-better-sqlite3": "^7.9.1",
|