rwsdk 0.1.19-test.20250717130914 → 0.1.19-test.20250717132530
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DODialect } from "kysely-do";
|
|
2
2
|
import { DurableObject } from "cloudflare:workers";
|
|
3
|
-
import { Kysely } from "kysely";
|
|
3
|
+
import { Kysely, ParseJSONResultsPlugin, } from "kysely";
|
|
4
4
|
import { createMigrator } from "./index.js";
|
|
5
5
|
import debug from "../debug.js";
|
|
6
6
|
const log = debug("sdk:do-db");
|
|
@@ -13,6 +13,7 @@ export class SqliteDurableObject extends DurableObject {
|
|
|
13
13
|
this.migrationTableName = migrationTableName;
|
|
14
14
|
this.kysely = new Kysely({
|
|
15
15
|
dialect: new DODialect({ ctx }),
|
|
16
|
+
plugins: [new ParseJSONResultsPlugin()],
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
19
|
async initialize() {
|