@dineway-ai/plugin-seo-graph 0.1.9 → 0.1.11
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.
- package/package.json +3 -3
- package/src/index.ts +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dineway-ai/plugin-seo-graph",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "SEO Graph plugin for the Dineway Agentic Website builder — meta tags, Open Graph, canonical URLs, robots directives, and JSON-LD schema markup",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"src/"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"dineway": "0.1.
|
|
31
|
+
"dineway": "^0.1.16"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@jdevalk/astro-seo-graph": "^0.7.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/react": "19.2.14",
|
|
41
41
|
"typescript": "^5.6.0",
|
|
42
42
|
"vitest": "^2.1.0",
|
|
43
|
-
"dineway": "0.1.
|
|
43
|
+
"dineway": "^0.1.16"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"typecheck": "tsgo --noEmit",
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
|
|
1
3
|
import { definePlugin } from "dineway";
|
|
2
4
|
import type { PluginDescriptor, RouteContext } from "dineway";
|
|
3
5
|
|
|
@@ -6,10 +8,16 @@ import { generateLlmsTxt } from "./llms.js";
|
|
|
6
8
|
import { metadataHandler } from "./metadata.js";
|
|
7
9
|
import { listSchemaEntries } from "./schema/endpoints.js";
|
|
8
10
|
|
|
11
|
+
const packageVersion = (
|
|
12
|
+
JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")) as {
|
|
13
|
+
version: string;
|
|
14
|
+
}
|
|
15
|
+
).version;
|
|
16
|
+
|
|
9
17
|
export function seoGraphPlugin(): PluginDescriptor {
|
|
10
18
|
return {
|
|
11
19
|
id: "seo-graph",
|
|
12
|
-
version:
|
|
20
|
+
version: packageVersion,
|
|
13
21
|
format: "native",
|
|
14
22
|
entrypoint: new URL("./index.ts", import.meta.url).pathname,
|
|
15
23
|
adminEntry: new URL("./admin.tsx", import.meta.url).pathname,
|
|
@@ -24,7 +32,7 @@ export function seoGraphPlugin(): PluginDescriptor {
|
|
|
24
32
|
export function createPlugin() {
|
|
25
33
|
return definePlugin({
|
|
26
34
|
id: "seo-graph",
|
|
27
|
-
version:
|
|
35
|
+
version: packageVersion,
|
|
28
36
|
capabilities: ["content:read", "hooks.page-fragments:register", "network:request"],
|
|
29
37
|
allowedHosts: ["api.indexnow.org"],
|
|
30
38
|
|