Skip to content

Commit 0d3c8d3

Browse files
Copilothotlong
andcommitted
fix: add missing @objectstack/runtime and @objectstack/driver-memory deps, fix TS errors in api route
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> Agent-Logs-Url: https://github.com/objectstack-ai/objectql/sessions/3ef73934-e48f-4ae6-94ac-50068f04f399
1 parent 3385929 commit 0d3c8d3

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

apps/demo/api/[[...route]].ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function extractBody(incoming: VercelIncomingMessage, method: string, contentTyp
176176
if (method === 'GET' || method === 'HEAD' || method === 'OPTIONS') return null;
177177
if (incoming.rawBody != null) {
178178
if (typeof incoming.rawBody === 'string') return incoming.rawBody;
179-
return incoming.rawBody;
179+
return incoming.rawBody as unknown as Uint8Array;
180180
}
181181
if (incoming.body != null) {
182182
if (typeof incoming.body === 'string') return incoming.body;
@@ -355,7 +355,8 @@ async function bootstrap(): Promise<Hono> {
355355
...(process.env.VERCEL_PROJECT_PRODUCTION_URL ? [`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`] : []),
356356
...(process.env.AUTH_TRUSTED_ORIGINS ? process.env.AUTH_TRUSTED_ORIGINS.split(',').map(s => s.trim()) : []),
357357
],
358-
})), PLUGIN_TIMEOUT_MS, 'AuthPlugin');
358+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
359+
} as any)), PLUGIN_TIMEOUT_MS, 'AuthPlugin');
359360
log('AuthPlugin registered.');
360361

361362
// 6. Application config — empty manifest; demo metadata is loaded via

apps/demo/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@
2626
"@objectql/types": "workspace:*",
2727
"@objectstack/cli": "^3.2.8",
2828
"@objectstack/core": "^3.2.8",
29+
"@objectstack/driver-memory": "^3.2.8",
2930
"@objectstack/objectql": "^3.2.8",
3031
"@objectstack/plugin-auth": "^3.2.8",
3132
"@objectstack/plugin-hono-server": "^3.2.8",
33+
"@objectstack/runtime": "^3.2.8",
3234
"@objectstack/studio": "^3.2.8",
3335
"@types/node": "^20.19.37",
3436
"hono": "^4.12.8",

pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)