qarpeo 0.4.8 → 0.4.9

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.
@@ -9,7 +9,7 @@ import { useRuntimeConfig, defineEventHandler } from 'nuxt/server';
9
9
  import { mkdir, writeFile, readFile } from 'node:fs/promises';
10
10
  import { defu } from 'defu';
11
11
 
12
- const version = "0.4.7";
12
+ const version = "0.4.8";
13
13
 
14
14
  function resolveBindingName(service, override, defaultName) {
15
15
  if (override && typeof override === "string") {
@@ -1,4 +1,7 @@
1
- export { ALL_CMS_TABLE_NAMES, getActiveCmsTableNames } from "../../../utils/cms-table-names";
1
+ import type { CMSOptions } from "../../../types";
2
+ import { type TableResolveOptions } from "../utils/table-names";
3
+ export declare const ALL_CMS_TABLE_NAMES: readonly ["cms_collection", "cms_entry", "cms_revision", "cms_category", "cms_tag", "cms_bookmark", "cms_subscriber"];
4
+ export declare function getActiveCmsTableNames(cms?: boolean | CMSOptions, prefixOrOptions?: boolean | string | TableResolveOptions): string[];
2
5
  export declare const cmsCollection: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3
6
  name: string;
4
7
  schema: undefined;
@@ -1,6 +1,26 @@
1
1
  import { integer, text, index, uniqueIndex, snakeCase } from "drizzle-orm/sqlite-core";
2
2
  import { resolveTableName, resolveIndexName } from "../utils/table-names.mjs";
3
- export { ALL_CMS_TABLE_NAMES, getActiveCmsTableNames } from "../../../utils/cms-table-names";
3
+ export const ALL_CMS_TABLE_NAMES = [
4
+ "cms_collection",
5
+ "cms_entry",
6
+ "cms_revision",
7
+ "cms_category",
8
+ "cms_tag",
9
+ "cms_bookmark",
10
+ "cms_subscriber"
11
+ ];
12
+ export function getActiveCmsTableNames(cms, prefixOrOptions) {
13
+ if (!cms) return [];
14
+ return [
15
+ resolveTableName("cms_collection", prefixOrOptions),
16
+ resolveTableName("cms_entry", prefixOrOptions),
17
+ resolveTableName("cms_revision", prefixOrOptions),
18
+ resolveTableName("cms_category", prefixOrOptions),
19
+ resolveTableName("cms_tag", prefixOrOptions),
20
+ resolveTableName("cms_bookmark", prefixOrOptions),
21
+ resolveTableName("cms_subscriber", prefixOrOptions)
22
+ ];
23
+ }
4
24
  const collectionTbl = resolveTableName("cms_collection");
5
25
  const entryTbl = resolveTableName("cms_entry");
6
26
  const revisionTbl = resolveTableName("cms_revision");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qarpeo",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "Zero-config Cloudflare Edge Platform for Nuxt",
5
5
  "keywords": [
6
6
  "analytics-engine",