@lifeready/core 6.0.4 → 6.0.5

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.
@@ -10,6 +10,6 @@ export declare class FileUploadService {
10
10
  constructor(config: KcConfig, http: HttpClient, auth: AuthClass);
11
11
  downloadEncryptedFile(fileStateNodeId: string): Promise<JSONObject>;
12
12
  downloadEncryptedFile2(fileStateNodeId: string): Promise<string>;
13
- loadFile(file: File): Promise<ArrayBuffer>;
13
+ loadFile(file: File | ArrayBuffer): Promise<ArrayBuffer>;
14
14
  uploadEncryptedFile(options: UploadEncryptedFileOptions): Promise<string>;
15
15
  }
@@ -44,7 +44,7 @@ export interface UpdateDirectoryOptions extends CommonDirectoryOptions {
44
44
  export interface CommonFileOptions {
45
45
  plainMetaJson?: JSONObject;
46
46
  cipherMetaClearJson?: JSONObject;
47
- file?: File;
47
+ file?: File | ArrayBuffer;
48
48
  upload?: (cipherFileContent: string) => Promise<string>;
49
49
  }
50
50
  export interface CreateFileOptions extends CommonFileOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeready/core",
3
- "version": "6.0.4",
3
+ "version": "6.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~10.0.5",
6
6
  "@angular/core": "~10.0.5",