@siteping/server 0.2.0 → 0.2.2
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/README.md +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# @siteping/server
|
|
6
6
|
|
|
7
|
-
The HTTP endpoint of [SitePing](https://github.com/NeosiaNexus/SitePing) over any store, for any framework
|
|
7
|
+
The HTTP endpoint of [SitePing](https://github.com/NeosiaNexus/SitePing) over any store, for any framework: validation, auth, CORS, redaction, hooks and webhooks on the Fetch API. No Node built-in: it runs on Node, Bun, Deno and edge workers.
|
|
8
8
|
|
|
9
9
|
**[Documentation](https://siteping.dev/docs/server)**
|
|
10
10
|
|
|
@@ -19,13 +19,13 @@ Node ≥ 22, or any runtime with the Fetch API.
|
|
|
19
19
|
## Quick start
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
// app/api/siteping/route.ts
|
|
22
|
+
// app/api/siteping/route.ts (Next.js App Router)
|
|
23
23
|
import { createSitepingHandler } from "@siteping/server";
|
|
24
24
|
import { store } from "@/lib/siteping-store"; // Drizzle, memory, Prisma or your own
|
|
25
25
|
|
|
26
26
|
export const { GET, POST, PATCH, DELETE, OPTIONS } = createSitepingHandler({
|
|
27
27
|
store,
|
|
28
|
-
apiKey: process.env.SITEPING_API_KEY, // Bearer auth
|
|
28
|
+
apiKey: process.env.SITEPING_API_KEY, // Bearer auth, or `access` for your own sessions
|
|
29
29
|
allowedOrigins: ["https://my-site.com"], // exact-match CORS
|
|
30
30
|
});
|
|
31
31
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siteping/server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Store- and framework-agnostic HTTP handler for Siteping — any SitepingStore behind one Fetch API endpoint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"node": ">=22"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"zod": "^4.6.
|
|
60
|
+
"zod": "^4.6.7"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@siteping/adapter-memory": "workspace:*",
|
|
64
64
|
"@siteping/core": "workspace:*",
|
|
65
|
-
"better-auth": "^1.7.
|
|
66
|
-
"jose": "^6.2.
|
|
65
|
+
"better-auth": "^1.7.12",
|
|
66
|
+
"jose": "^6.2.13"
|
|
67
67
|
}
|
|
68
68
|
}
|