opacacms 0.3.11 → 0.3.12

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.
@@ -25,6 +25,7 @@ import {
25
25
  // src/db/bun-sqlite.ts
26
26
  import fs from "node:fs/promises";
27
27
  import path from "node:path";
28
+ import { pathToFileURL } from "node:url";
28
29
  import { FileMigrationProvider, Migrator, sql } from "kysely";
29
30
  class BunSQLiteAdapter extends BaseDatabaseAdapter {
30
31
  path;
@@ -555,7 +556,7 @@ class BunSQLiteAdapter extends BaseDatabaseAdapter {
555
556
  provider: new FileMigrationProvider({
556
557
  fs,
557
558
  path,
558
- migrationFolder: path.resolve(process.cwd(), this.migrationDir)
559
+ migrationFolder: pathToFileURL(path.resolve(process.cwd(), this.migrationDir)).href
559
560
  })
560
561
  });
561
562
  const { error, results } = await migrator.migrateToLatest();
@@ -25,6 +25,7 @@ import {
25
25
  // src/db/better-sqlite.ts
26
26
  import fs from "node:fs/promises";
27
27
  import path from "node:path";
28
+ import { pathToFileURL } from "node:url";
28
29
  import {
29
30
  CompiledQuery,
30
31
  FileMigrationProvider,
@@ -548,7 +549,7 @@ class BetterSQLiteAdapter extends BaseDatabaseAdapter {
548
549
  provider: new FileMigrationProvider({
549
550
  fs,
550
551
  path,
551
- migrationFolder: path.resolve(process.cwd(), this.migrationDir)
552
+ migrationFolder: pathToFileURL(path.resolve(process.cwd(), this.migrationDir)).href
552
553
  })
553
554
  });
554
555
  const { error, results } = await migrator.migrateToLatest();
@@ -24,6 +24,7 @@ import {
24
24
  // src/db/postgres.ts
25
25
  import fs from "node:fs/promises";
26
26
  import path from "node:path";
27
+ import { pathToFileURL } from "node:url";
27
28
  import {
28
29
  CompiledQuery,
29
30
  FileMigrationProvider,
@@ -578,7 +579,7 @@ class PostgresAdapter extends BaseDatabaseAdapter {
578
579
  provider: new FileMigrationProvider({
579
580
  fs,
580
581
  path,
581
- migrationFolder: path.resolve(process.cwd(), this.migrationDir)
582
+ migrationFolder: pathToFileURL(path.resolve(process.cwd(), this.migrationDir)).href
582
583
  })
583
584
  });
584
585
  const { error, results } = await migrator.migrateToLatest();
@@ -25,6 +25,7 @@ import {
25
25
  // src/db/d1.ts
26
26
  import fs from "node:fs/promises";
27
27
  import path from "node:path";
28
+ import { pathToFileURL } from "node:url";
28
29
  import { CompiledQuery, FileMigrationProvider, Migrator } from "kysely";
29
30
  class D1Adapter extends BaseDatabaseAdapter {
30
31
  name = "d1";
@@ -574,7 +575,7 @@ class D1Adapter extends BaseDatabaseAdapter {
574
575
  provider: new FileMigrationProvider({
575
576
  fs,
576
577
  path,
577
- migrationFolder: path.resolve(process.cwd(), this.migrationDir)
578
+ migrationFolder: pathToFileURL(path.resolve(process.cwd(), this.migrationDir)).href
578
579
  })
579
580
  });
580
581
  const { error, results } = await migrator.migrateToLatest();
@@ -25,6 +25,7 @@ import {
25
25
  // src/db/sqlite.ts
26
26
  import fs from "node:fs/promises";
27
27
  import path from "node:path";
28
+ import { pathToFileURL } from "node:url";
28
29
  import {
29
30
  CompiledQuery,
30
31
  FileMigrationProvider,
@@ -563,7 +564,7 @@ class SQLiteAdapter extends BaseDatabaseAdapter {
563
564
  provider: new FileMigrationProvider({
564
565
  fs,
565
566
  path,
566
- migrationFolder: path.resolve(process.cwd(), this.migrationDir)
567
+ migrationFolder: pathToFileURL(path.resolve(process.cwd(), this.migrationDir)).href
567
568
  })
568
569
  });
569
570
  const { error, results } = await migrator.migrateToLatest();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BetterSQLiteAdapter,
3
3
  createBetterSQLiteAdapter
4
- } from "../chunk-ec6wz44n.js";
4
+ } from "../chunk-1vtdkx5e.js";
5
5
  import"../chunk-re459gm9.js";
6
6
  import"../chunk-s8mqwnm1.js";
7
7
  import"../chunk-q5sb5dcr.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BunSQLiteAdapter,
3
3
  createBunSQLiteAdapter
4
- } from "../chunk-5a6cjmfz.js";
4
+ } from "../chunk-0njhbe4a.js";
5
5
  import"../chunk-re459gm9.js";
6
6
  import"../chunk-s8mqwnm1.js";
7
7
  import"../chunk-q5sb5dcr.js";
package/dist/db/d1.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  D1Adapter,
3
3
  createD1Adapter
4
- } from "../chunk-g7bgnpy4.js";
4
+ } from "../chunk-8hhzvesq.js";
5
5
  import"../chunk-re459gm9.js";
6
6
  import"../chunk-s8mqwnm1.js";
7
7
  import"../chunk-q5sb5dcr.js";
package/dist/db/index.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  D1Adapter,
3
3
  createD1Adapter
4
- } from "../chunk-g7bgnpy4.js";
4
+ } from "../chunk-8hhzvesq.js";
5
5
  import {
6
6
  PostgresAdapter,
7
7
  createPostgresAdapter
8
- } from "../chunk-5prjxes5.js";
8
+ } from "../chunk-2ec9fsgr.js";
9
9
  import {
10
10
  SQLiteAdapter,
11
11
  createSQLiteAdapter
12
- } from "../chunk-swa093n5.js";
12
+ } from "../chunk-xdmw9vzq.js";
13
13
  import {
14
14
  BunSQLiteAdapter,
15
15
  createBunSQLiteAdapter
16
- } from "../chunk-5a6cjmfz.js";
16
+ } from "../chunk-0njhbe4a.js";
17
17
  import {
18
18
  BetterSQLiteAdapter,
19
19
  createBetterSQLiteAdapter
20
- } from "../chunk-ec6wz44n.js";
20
+ } from "../chunk-1vtdkx5e.js";
21
21
  import"../chunk-re459gm9.js";
22
22
  import {
23
23
  BaseDatabaseAdapter
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PostgresAdapter,
3
3
  createPostgresAdapter
4
- } from "../chunk-5prjxes5.js";
4
+ } from "../chunk-2ec9fsgr.js";
5
5
  import"../chunk-re459gm9.js";
6
6
  import"../chunk-s8mqwnm1.js";
7
7
  import"../chunk-q5sb5dcr.js";
package/dist/db/sqlite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SQLiteAdapter,
3
3
  createSQLiteAdapter
4
- } from "../chunk-swa093n5.js";
4
+ } from "../chunk-xdmw9vzq.js";
5
5
  import"../chunk-re459gm9.js";
6
6
  import"../chunk-s8mqwnm1.js";
7
7
  import"../chunk-q5sb5dcr.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opacacms",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "license": "MIT",
5
5
  "description": "OpacaCMS: A lightweight, type-safe, and developer-first Headless CMS for the edge and beyond.",
6
6
  "keywords": [