A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
common: fix exports
Abdullah Attac4360ab95f8a
diff --git a/packages/common/src/utils/export-notes.ts b/packages/common/src/utils/export-notes.tsindex 81953f817..dfff4c215 100644--- a/packages/common/src/utils/export-notes.ts+++ b/packages/common/src/utils/export-notes.ts@@ -172,7 +172,7 @@ export async function* exportNote(yield <ExportableNote>{type: "note",path,- data: content,+ data: resolvePaths(content, path),mtime: new Date(note.dateEdited),ctime: new Date(note.dateCreated)};@@ -256,7 +256,8 @@ export async function exportContent(const sources: Record<string, string> = {};for (const attachment of attachments) {- const attachmentPath = join(attachmentsRoot, attachment.filename);+ const filename = [attachment.hash, attachment.filename].join("-");+ const attachmentPath = join(attachmentsRoot, filename);sources[attachment.hash] = resolveAttachment(elements,attachment,diff --git a/packages/core/package-lock.json b/packages/core/package-lock.jsonindex cc80ba03a..5892ae178 100644--- a/packages/core/package-lock.json+++ b/packages/core/package-lock.json@@ -14,7 +14,7 @@"@microsoft/signalr": "^8.0.0","@notesnook/logger": "file:../logger","@readme/data-urls": "^3.0.0",- "@streetwriters/showdown": "^3.0.5-alpha",+ "@streetwriters/showdown": "^3.0.7-alpha","async-mutex": "^0.3.2","dayjs": "1.11.9","dom-serializer": "^2.0.0",@@ -2216,10 +2216,9 @@"dev": true},"node_modules/@streetwriters/showdown": {- "version": "3.0.5-alpha",- "resolved": "https://registry.npmjs.org/@streetwriters/showdown/-/showdown-3.0.5-alpha.tgz",- "integrity": "sha512-jD9JFhxLDx6XeyZOLVB0zWtwGduwNiFpxn5rxu6ThyKyWGnu1O+L1w04WLC1L56pyEhypr3Tsk24dzo2Se/50g==",- "license": "MIT",+ "version": "3.0.7-alpha",+ "resolved": "https://registry.npmjs.org/@streetwriters/showdown/-/showdown-3.0.7-alpha.tgz",+ "integrity": "sha512-n5gbhQrrDP3K1MIvapVDj0jiOuhiWR/PxSZNV/KVzGzoAe8JBZFEsb32qcS9To2H6eqgV8wEQnqSeEzgIjTq3Q==","bin": {"showdown": "bin/showdown.js"},diff --git a/packages/core/package.json b/packages/core/package.jsonindex 96ce03509..4d816fab0 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -52,7 +52,7 @@"@microsoft/signalr": "^8.0.0","@notesnook/logger": "file:../logger","@readme/data-urls": "^3.0.0",- "@streetwriters/showdown": "^3.0.5-alpha",+ "@streetwriters/showdown": "^3.0.7-alpha","async-mutex": "^0.3.2","dayjs": "1.11.9","dom-serializer": "^2.0.0",