gemi 0.4.34 → 0.4.36
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/chunk-01e07763e3e32710.js +2 -0
- package/dist/chunk-088ed28ebed2b009.js +5 -0
- package/dist/chunk-1334ee957ff9058c.js +2 -0
- package/dist/chunk-1cc0d1072ee4a92b.js +1 -1
- package/dist/chunk-29bc27c5e126c304.js +18 -0
- package/dist/chunk-2a48e0098ccd4249.js +2 -0
- package/dist/chunk-2b2764983015552e.js +2 -0
- package/dist/chunk-32f06f9ad00aaabd.js +2 -0
- package/dist/chunk-3ab807ceccde81f3.js +3 -0
- package/dist/chunk-464cce477d8a56e0.js +2 -0
- package/dist/chunk-4e023976eb557258.js +1 -1
- package/dist/chunk-552bdaee8c03e091.js +9 -0
- package/dist/chunk-589f4b330dd6d32e.js +2 -0
- package/dist/chunk-5c3681fb029d7588.js +1 -0
- package/dist/chunk-682b01231754a121.js +2 -0
- package/dist/chunk-6943b50bd0a3ac84.js +1 -0
- package/dist/chunk-7d7b2c1f2a8dd018.js +6 -0
- package/dist/chunk-860f5fcef7074193.js +1 -1
- package/dist/chunk-9d069ba29a122630.js +1 -0
- package/dist/chunk-9d2af1a704b857ee.js +2 -0
- package/dist/chunk-b07249c949a284d2.js +16 -0
- package/dist/chunk-c8b00b645df96ed5.js +1 -1
- package/dist/chunk-db65c75cda396f98.js +1 -1
- package/dist/chunk-e3ef81776c8f2d28.js +2 -0
- package/dist/chunk-e4f28182cf5f6e1d.js +2 -0
- package/dist/chunk-ef1ebd10affe5726.js +2 -0
- package/dist/chunk-fc165cee61f6efe8.js +6 -0
- package/dist/client/index.js +5 -2
- package/dist/client/init.d.ts.map +1 -1
- package/dist/server/index.js +5 -5
- package/dist/storage/File.d.ts +4 -0
- package/dist/storage/File.d.ts.map +1 -1
- package/dist/storage/index.js +10 -1
- package/dist/utils/type.d.ts +3 -0
- package/dist/utils/type.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/storage/File.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import sharp from "sharp";
|
|
1
2
|
import { Buffer } from "node:buffer";
|
|
3
|
+
import { Prettify } from "../utils/type";
|
|
2
4
|
interface PutParams {
|
|
3
5
|
name: string;
|
|
4
6
|
bucket?: string;
|
|
@@ -9,12 +11,14 @@ interface ReadParams {
|
|
|
9
11
|
name: string;
|
|
10
12
|
bucket?: string;
|
|
11
13
|
}
|
|
14
|
+
type Metadata = Prettify<sharp.Metadata>;
|
|
12
15
|
export declare class Storage {
|
|
13
16
|
static folder(path: string): {
|
|
14
17
|
put: (params: PutParams | Blob) => Promise<string>;
|
|
15
18
|
fetch: (params: ReadParams) => Promise<Response>;
|
|
16
19
|
};
|
|
17
20
|
static put(params: PutParams | Blob): Promise<string>;
|
|
21
|
+
static metadata(obj: Blob | File): Promise<Partial<Metadata>>;
|
|
18
22
|
static fetch(params: ReadParams | string): Promise<Response>;
|
|
19
23
|
static delete(): void;
|
|
20
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../storage/File.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../storage/File.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAIzC,qBAAa,OAAO;IAClB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM;sBAKF,SAAS,GAAG,IAAI;wBAcd,UAAU;;WAqBvB,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;WAkC5B,QAAQ,CAAC,GAAG,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;WAStD,KAAK,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;IAgC9C,MAAM,CAAC,MAAM;CACd"}
|