diff --git a/main.ts b/main.ts index abb7755..0ce5a9e 100644 --- a/main.ts +++ b/main.ts @@ -73,7 +73,9 @@ export default class IBookHighlightsPlugin extends Plugin { const command = `echo "${booksSql}" | sqlite3 ${IBOOK_LIBRARY} -json`; const exec = promisify(child_process.exec); - const { stdout, stderr } = await exec(command); + // Issue #11 - Temporary set maxBuffer to 100MB + // TODO: Need a more efficient solution to handle large data + const { stdout, stderr } = await exec(command, { maxBuffer: 100 * 1024 * 1024 }); if (stderr) { new Notice(stderr); @@ -93,7 +95,9 @@ export default class IBookHighlightsPlugin extends Plugin { const command = `echo "${annotationsSql}" | sqlite3 ${IBOOK_ANNOTATION_DB} -json`; const exec = promisify(child_process.exec); - const { stdout, stderr } = await exec(command); + // Issue #11 - Temporary set maxBuffer to 100MB + // TODO: Need a more efficient solution to handle large data + const { stdout, stderr } = await exec(command, { maxBuffer: 100 * 1024 * 1024 }); if (stderr) { new Notice(stderr); diff --git a/manifest.json b/manifest.json index 24395c6..a594a49 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "apple-books-import-highlights", "name": "Apple Books - Import Highlights", - "version": "1.2.0", + "version": "1.2.1", "minAppVersion": "0.15.0", "description": "Import your Apple Books highlights and notes to Obsidian.", "author": "bandantonio", diff --git a/package.json b/package.json index 1b29a30..2c14448 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-apple-books-highlights-plugin", - "version": "1.2.0", + "version": "1.2.1", "description": "Import highlights and notes from your Apple Books to Obsidian", "main": "main.js", "scripts": { @@ -42,4 +42,4 @@ "handlebars": "^4.7.8", "sqlite3": "^5.1.7-rc.0" } -} +} \ No newline at end of file