@hollware/nuxt 1.0.0-rc.1 → 1.0.0-rc.3

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.
@@ -50,6 +50,7 @@ export declare function useHollwareSite(): import("nuxt/app").AsyncData<{
50
50
  translationGroupField: string | null;
51
51
  tagsField: string | null;
52
52
  sortByField: string | null;
53
+ automaticFields?: Record<string, "firstPublished" | "lastModified" | "readingTime" | "wordCount"> | undefined;
53
54
  components: {
54
55
  name: string;
55
56
  description: string | null;
@@ -14,6 +14,7 @@ declare const _default: import("h3").EventHandler<import("h3").EventHandlerReque
14
14
  translationGroupField: string | null;
15
15
  tagsField: string | null;
16
16
  sortByField: string | null;
17
+ automaticFields?: Record<string, "firstPublished" | "lastModified" | "readingTime" | "wordCount"> | undefined;
17
18
  components: {
18
19
  name: string;
19
20
  description: string | null;
@@ -24,6 +24,11 @@ var webhook_default = defineEventHandler(async (event) => {
24
24
  statusMessage: "The signature of the event does not hold"
25
25
  });
26
26
  const payload = JSON.parse(body);
27
+ const site = String(Reflect.get(Reflect.get(config, "hollware") ?? {}, "site") ?? "");
28
+ if ((typeof payload === "object" && payload !== null ? Reflect.get(payload, "site") : void 0) !== site) throw createError({
29
+ statusCode: 401,
30
+ statusMessage: "The event is of another site"
31
+ });
27
32
  const found = typeof payload === "object" && payload !== null ? Reflect.get(payload, "cacheTags") : void 0;
28
33
  const tags = Array.isArray(found) ? found.filter((tag) => typeof tag === "string") : [];
29
34
  const cache = cacheOf(event.context);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hollware/nuxt",
3
- "version": "1.0.0-rc.1",
3
+ "version": "1.0.0-rc.3",
4
4
  "description": "Read Hollware from a Nuxt site, over a service binding or HTTP.",
5
5
  "homepage": "https://hollware.com",
6
6
  "bugs": {
@@ -29,18 +29,18 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@comark/vue": "0.7.0",
32
- "@hollware/client": "1.0.0-rc.1",
33
- "@hollware/core": "1.0.0-rc.1",
34
- "@nuxt/kit": "4.6.1"
32
+ "@hollware/client": "1.0.0-rc.3",
33
+ "@hollware/core": "1.0.0-rc.3",
34
+ "@nuxt/kit": "4.6.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "24.19.2",
38
38
  "h3": "1.15.11",
39
39
  "nitropack": "2.13.4",
40
- "nuxt": "4.6.1",
40
+ "nuxt": "4.6.2",
41
41
  "publint": "0.3.25",
42
42
  "typescript": "7.0.2",
43
- "vite-plus": "1.2.0",
43
+ "vite-plus": "1.3.0",
44
44
  "vue": "3.5.44"
45
45
  },
46
46
  "peerDependencies": {