diff --git a/package-lock.json b/package-lock.json index ec41316..fad8a94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "logseq-mermaid-plugin", - "version": "1.0.10", + "version": "1.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "logseq-mermaid-plugin", - "version": "1.0.10", + "version": "1.1.1", "license": "MIT", "dependencies": { "@logseq/libs": "^0.0.1-alpha.34", diff --git a/package.json b/package.json index 933e442..efea6c1 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "icon": "./icon.svg" }, "name": "logseq-mermaid-plugin", - "version": "1.1.1", + "version": "1.1.2", "description": "", "main": "dist/index.html", "targets": { @@ -20,6 +20,7 @@ "license": "MIT", "dependencies": { "@logseq/libs": "^0.0.1-alpha.34", + "buffer": "^6.0.3", "js-base64": "^3.7.2" }, "devDependencies": { diff --git a/src/convert.ts b/src/convert.ts index 19e8e51..a4ef8ff 100644 --- a/src/convert.ts +++ b/src/convert.ts @@ -18,9 +18,7 @@ export const renderMermaid = async (type, payload, colour, mermaidUUID) => { toDecode = toDecode.replace('\n', ' '); - // const jsonString = btoa(toDecode); const jsonString = toBase64(toDecode, true); - console.log(jsonString); const renderBlock = async (str: string) => { await logseq.Editor.updateBlock(