opacacms 0.1.16 → 0.1.17

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.
@@ -1229,7 +1229,6 @@ async function runAuthMigrations(db) {
1229
1229
  // src/server/middlewares/database-init.ts
1230
1230
  init_system_schema();
1231
1231
  function createDatabaseInitMiddleware(config, state) {
1232
- const supportsAuth = config.db.name === "sqlite" || config.db.name === "postgres" || config.db.name === "d1";
1233
1232
  return async (_c, next) => {
1234
1233
  if (!state.migrated) {
1235
1234
  const isDev = typeof process !== "undefined" && true;
@@ -1262,7 +1261,7 @@ function createDatabaseInitMiddleware(config, state) {
1262
1261
  } else {
1263
1262
  logger.debug("Automatic schema migrations skipped (Production).");
1264
1263
  }
1265
- if (supportsAuth && !state.auth) {
1264
+ if (!state.auth) {
1266
1265
  state.auth = await createAuth(config);
1267
1266
  }
1268
1267
  state.migrated = true;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createAPIRouter
3
- } from "../chunk-5ftxp8m2.js";
3
+ } from "../chunk-6typkt16.js";
4
4
  import"../chunk-dy5t83hr.js";
5
5
  import"../chunk-62ev8gnc.js";
6
6
  import"../chunk-2kyhqvhc.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createAPIRouter
3
- } from "../chunk-5ftxp8m2.js";
3
+ } from "../chunk-6typkt16.js";
4
4
  import"../chunk-dy5t83hr.js";
5
5
  import"../chunk-62ev8gnc.js";
6
6
  import"../chunk-2kyhqvhc.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createAPIRouter
3
- } from "../chunk-5ftxp8m2.js";
3
+ } from "../chunk-6typkt16.js";
4
4
  import"../chunk-dy5t83hr.js";
5
5
  import"../chunk-62ev8gnc.js";
6
6
  import"../chunk-2kyhqvhc.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createAPIRouter
3
- } from "../chunk-5ftxp8m2.js";
3
+ } from "../chunk-6typkt16.js";
4
4
  import"../chunk-dy5t83hr.js";
5
5
  import"../chunk-62ev8gnc.js";
6
6
  import"../chunk-2kyhqvhc.js";
package/dist/server.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  createGlobalHandlers,
5
5
  createHandlers,
6
6
  hydrateDoc
7
- } from "./chunk-5ftxp8m2.js";
7
+ } from "./chunk-6typkt16.js";
8
8
  import {
9
9
  defineConfig
10
10
  } from "./chunk-zvwb67nd.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opacacms",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "scripts": {
5
5
  "build": "bun run ../../scripts/build.ts && tsc --emitDeclarationOnly",
6
6
  "build:publish": "bun run ../../scripts/build.ts --publish && tsc --emitDeclarationOnly",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "exports": {
30
30
  "./styles.css": {
31
- "import": "./dist/admin.css"
31
+ "import": "./src/admin.css"
32
32
  },
33
33
  ".": {
34
34
  "types": "./dist/index.d.ts",