@spica-devkit/storage 0.9.15 → 0.9.18

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.
@@ -27,6 +27,9 @@ export interface StorageObject {
27
27
  };
28
28
  }
29
29
  export interface BufferWithMeta {
30
+ /**
31
+ * string | Buffer | Uint8Array | number[];
32
+ */
30
33
  data: any;
31
34
  name: string;
32
35
  contentType: string;
@@ -3,6 +3,9 @@ export declare function initialize(options: ApikeyInitialization | IdentityIniti
3
3
  export declare function insert(object: File | BufferWithMeta, onUploadProgress?: (progress: ProgressEvent) => void): Promise<StorageObject>;
4
4
  export declare function insertMany(objects: FileList | (File | BufferWithMeta)[], onUploadProgress?: (progress: ProgressEvent) => void): Promise<StorageObject[]>;
5
5
  export declare function get(id: string): Promise<StorageObject>;
6
+ /**
7
+ * Returns Blob for browser environment, ReadableStream for Nodejs environment
8
+ */
6
9
  export declare function download(id: string, options?: {
7
10
  headers?: any;
8
11
  onDownloadProgress?: (progress: ProgressEvent) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spica-devkit/storage",
3
3
  "license": "AGPLv3",
4
- "version": "0.9.15",
4
+ "version": "0.9.18",
5
5
  "description": "Storage package for Spica.",
6
6
  "author": "spica",
7
7
  "keywords": [