@pramen/server 0.0.6 → 0.0.7
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/dist/sdk/handlers.d.ts +2 -1
- package/package.json +1 -1
- package/src/sdk/handlers.ts +2 -1
package/dist/sdk/handlers.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export interface HandlerContext<S extends SchemaDef = SchemaDef> {
|
|
|
14
14
|
readonly files: Files;
|
|
15
15
|
/** The Worker/DO environment — bindings (KV, R2, DB, …) plus vars and secrets
|
|
16
16
|
* (AUTH_SECRET, plus anything in wrangler.jsonc / .dev.vars / `wrangler secret`).
|
|
17
|
-
* Use it to call external
|
|
17
|
+
* Use it to call external services from handlers — Cloudflare bindings (e.g. the
|
|
18
|
+
* `send_email` binding for Cloudflare Email Sending) or third-party APIs (Stripe, …). Loosely typed;
|
|
18
19
|
* cast a value at the use site, e.g. `ctx.env.STRIPE_SECRET_KEY as string`. */
|
|
19
20
|
readonly env: Readonly<Record<string, unknown>>;
|
|
20
21
|
/** Resolved identity for this request (null = anonymous). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pramen/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "pramen server runtime — schema, ACL, ORM, live queries, files, and the createPramen(app) factory for Cloudflare Workers + Durable Objects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/src/sdk/handlers.ts
CHANGED
|
@@ -19,7 +19,8 @@ export interface HandlerContext<S extends SchemaDef = SchemaDef> {
|
|
|
19
19
|
readonly files: Files;
|
|
20
20
|
/** The Worker/DO environment — bindings (KV, R2, DB, …) plus vars and secrets
|
|
21
21
|
* (AUTH_SECRET, plus anything in wrangler.jsonc / .dev.vars / `wrangler secret`).
|
|
22
|
-
* Use it to call external
|
|
22
|
+
* Use it to call external services from handlers — Cloudflare bindings (e.g. the
|
|
23
|
+
* `send_email` binding for Cloudflare Email Sending) or third-party APIs (Stripe, …). Loosely typed;
|
|
23
24
|
* cast a value at the use site, e.g. `ctx.env.STRIPE_SECRET_KEY as string`. */
|
|
24
25
|
readonly env: Readonly<Record<string, unknown>>;
|
|
25
26
|
/** Resolved identity for this request (null = anonymous). */
|