@mateosuarezdev/brpc 1.0.77 → 1.0.78

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.
@@ -1,3 +1,4 @@
1
1
  export * from "./upload";
2
2
  export * from "./delete";
3
3
  export * from "./helpers";
4
+ export * from "./types";
@@ -11,7 +11,7 @@ type DeleteOneBadResult = {
11
11
  error: Error | null;
12
12
  };
13
13
  type DeleteOneResult = DeleteOneNiceResult | DeleteOneBadResult;
14
- export type UploadedImageVariants = {
14
+ export type UploadResult = {
15
15
  shared: {
16
16
  name: string;
17
17
  resolvedType: ResolvedFileType;
@@ -1,7 +1,7 @@
1
1
  import type { Acl, RawUploadResult, UploadableObjectBuffer } from "../types";
2
2
  import { type BunFile } from "bun";
3
3
  import { type GeneratedImageVariants } from "../images";
4
- import type { UploadedImageVariants } from "./types";
4
+ import type { UploadResult } from "./types";
5
5
  /**
6
6
  * Uploads a file or optimized buffer to S3 with UUID-based naming
7
7
  *
@@ -49,9 +49,9 @@ export declare function uploadGeneratedVariants(path: string, generated: Generat
49
49
  acl?: Acl;
50
50
  uploadedBy?: string;
51
51
  baseId?: string;
52
- }): Promise<UploadedImageVariants>;
52
+ }): Promise<UploadResult>;
53
53
  export declare function generateAndUploadImage(path: string, file: File | BunFile | string, opts?: {
54
54
  acl?: Acl;
55
55
  uploadedBy?: string;
56
56
  quality?: number;
57
- }): Promise<UploadedImageVariants>;
57
+ }): Promise<UploadResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mateosuarezdev/brpc",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "description": "A Type-Safe, Flexible Web application framework for Bun",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",