@siteping/server 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +2 -2
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 — validation, auth, CORS, redaction, hooks and webhooks on the Fetch API. No Node built-in: it runs on Node, Bun, Deno and edge workers.
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 — Next.js App Router
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 — or `access` for your own sessions
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.1",
3
+ "version": "0.2.3",
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,
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "@siteping/adapter-memory": "workspace:*",
64
64
  "@siteping/core": "workspace:*",
65
- "better-auth": "^1.7.12",
65
+ "better-auth": "^1.7.14",
66
66
  "jose": "^6.2.13"
67
67
  }
68
68
  }