bunderstack 0.11.0 → 0.12.0
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/src/index.ts +2 -1
- package/src/trpc.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunderstack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Batteries-included backend framework for Bun: CRUD APIs, auth, file storage, realtime, tRPC, email, and validated env from a single Drizzle schema and config object.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"backend",
|
package/src/index.ts
CHANGED
|
@@ -478,7 +478,7 @@ export async function createBunderstack<
|
|
|
478
478
|
const bucketName =
|
|
479
479
|
opts.bucket ??
|
|
480
480
|
key.split('/')[0] ??
|
|
481
|
-
|
|
481
|
+
config.storage.defaultBucket
|
|
482
482
|
const adapter = registry.get(bucketName)?.adapter
|
|
483
483
|
if (adapter?.presignGet) {
|
|
484
484
|
return adapter.presignGet(key, {
|
|
@@ -613,6 +613,7 @@ export async function createBunderstack<
|
|
|
613
613
|
email,
|
|
614
614
|
jobs,
|
|
615
615
|
realtime,
|
|
616
|
+
storage,
|
|
616
617
|
req,
|
|
617
618
|
}),
|
|
618
619
|
})
|
package/src/trpc.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type { DbFor } from './db'
|
|
|
7
7
|
import type { EmailFacade } from './email'
|
|
8
8
|
import type { JobsRuntimeFacade } from './jobs/index'
|
|
9
9
|
import type { RealtimeFacade } from './realtime/facade'
|
|
10
|
+
import type { StorageFacade } from './index'
|
|
10
11
|
|
|
11
12
|
export type TRPCContext<
|
|
12
13
|
TSchema extends Record<string, unknown>,
|
|
@@ -18,6 +19,7 @@ export type TRPCContext<
|
|
|
18
19
|
email: EmailFacade
|
|
19
20
|
jobs: JobsRuntimeFacade
|
|
20
21
|
realtime: RealtimeFacade<TSchema>
|
|
22
|
+
storage: StorageFacade
|
|
21
23
|
req: Request
|
|
22
24
|
}
|
|
23
25
|
|