orgnote-api 0.19.0 → 0.19.2
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.
|
@@ -285,7 +285,7 @@ test('Should decrypt value from provided real world data and passwords', async (
|
|
|
285
285
|
});
|
|
286
286
|
expect(decryptedMessage).toEqual('Hello world!');
|
|
287
287
|
});
|
|
288
|
-
test
|
|
288
|
+
test('Should raise error when incorrect encryption key are provided', async () => {
|
|
289
289
|
const armoredContent = `-----BEGIN PGP MESSAGE-----
|
|
290
290
|
|
|
291
291
|
wy4ECQMIDRL+7RNRG5HgqfYADGAtPBJBPtrTYE0LsdlwkHqzMJ0H5k0VpRaN
|
|
@@ -6,7 +6,7 @@ export interface FileManagerStore {
|
|
|
6
6
|
renameFile: (fileNode: FileNode, newName: string) => Promise<void>;
|
|
7
7
|
deleteFile: (fileNode: FileNode) => Promise<void>;
|
|
8
8
|
updateFileManager: () => void;
|
|
9
|
-
createFolder: (name?: string) => Promise<void>;
|
|
9
|
+
createFolder: (filePath?: string[], name?: string) => Promise<void>;
|
|
10
10
|
editedFileItem: Ref<FileNode>;
|
|
11
11
|
stopEdit: () => void;
|
|
12
12
|
expandedNodes: Ref<string[]>;
|
package/models/files-store.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { Store } from './store.js';
|
|
|
2
2
|
export interface FilesStore {
|
|
3
3
|
getBlobUrl: (filePath: string) => Promise<string>;
|
|
4
4
|
uploadMediaFile: (path?: string) => Promise<string>;
|
|
5
|
+
saveFile: (file: File, path?: string) => Promise<string>;
|
|
5
6
|
}
|
|
6
7
|
export type FilesStoreDefinition = Store<FilesStore>;
|