uql-orm 0.114.0 → 0.114.1
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 +1 -1
- package/skills/uql-orm/SKILL.md +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"homepage": "https://uql-orm.dev",
|
|
4
4
|
"description": "JSON-native TypeScript ORM for Bun, Browsers, Edge, Node, Workers. Supports PostgreSQL, PGlite, MySQL, MariaDB, SQLite, CockroachDB, SQL Server, Turso, Neon, Cloudflare D1 and MongoDB. Queries are plain JSON, typed to the leaf.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.114.
|
|
6
|
+
"version": "0.114.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=22.18"
|
package/skills/uql-orm/SKILL.md
CHANGED
|
@@ -276,7 +276,7 @@ import { createApi, toFetchHandler } from 'uql-orm/http';
|
|
|
276
276
|
const api = createApi<Request>({
|
|
277
277
|
pool,
|
|
278
278
|
include: [Post, User],
|
|
279
|
-
contextOf: (req) => ({ tenantId:
|
|
279
|
+
contextOf: async (req) => ({ tenantId: (await getSession(req))?.tenantId }), // a verified session or JWT
|
|
280
280
|
});
|
|
281
281
|
|
|
282
282
|
export const handler = toFetchHandler(api); // on a catch-all under /api/v1
|