orgnote-api 0.7.8 → 0.7.9

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.
@@ -33,20 +33,20 @@ export async function encryptNote<T extends AbstractEncryptedNote>(
33
33
  note.meta = { id: note.meta.id, published: note.meta.published };
34
34
 
35
35
  if (encryptionParams.type === ModelsPublicNoteEncryptedEnum.GpgKeys) {
36
- return encryptNoteViaKeys(
36
+ return await encryptNoteViaKeys(
37
37
  note,
38
38
  encryptionParams.publicKey,
39
39
  encryptionParams.privateKey,
40
40
  encryptionParams.privateKeyPassphrase
41
41
  );
42
42
  }
43
- return encryptNoteViaPassword(note, encryptionParams.password);
43
+ return await encryptNoteViaPassword(note, encryptionParams.password);
44
44
  }
45
45
  export async function encryptNoteViaPassword<T extends AbstractEncryptedNote>(
46
46
  note: T,
47
47
  password: string
48
48
  ): Promise<T> {
49
- const content = encryptViaPassword(note.content, password);
49
+ const content = await encryptViaPassword(note.content, password);
50
50
  return {
51
51
  ...note,
52
52
  content,
@@ -105,7 +105,7 @@ export async function decryptNoteViaPassword<T extends AbstractEncryptedNote>(
105
105
  note: T,
106
106
  password: string
107
107
  ): Promise<T> {
108
- const content = decryptViaPassword(note.content, password);
108
+ const content = await decryptViaPassword(note.content, password);
109
109
  return {
110
110
  ...note,
111
111
  content,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.ts",