From d4b5bdf52fe840f0e176914990f73245ef9abe2f Mon Sep 17 00:00:00 2001 From: printfn Date: Thu, 20 May 2021 20:57:36 +1200 Subject: [PATCH] Update fend to v0.1.15 --- app/package.json | 2 +- .../note-viewer/elements/markdown/MarkdownTransformers.ts | 2 +- app/yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/package.json b/app/package.json index f4d88b89..53c6a30f 100644 --- a/app/package.json +++ b/app/package.json @@ -17,7 +17,7 @@ "date-fns": "^2.21.3", "deep-equal": "^2.0.5", "deep-freeze": "0.0.1", - "fend-wasm": "^0.1.14", + "fend-wasm": "^0.1.15", "jquery": "^3.5.1", "json-stringify-safe": "^5.0.1", "jszip": "^3.1.5", diff --git a/app/src/app/components/note-viewer/elements/markdown/MarkdownTransformers.ts b/app/src/app/components/note-viewer/elements/markdown/MarkdownTransformers.ts index 3749f07f..0e9815d4 100644 --- a/app/src/app/components/note-viewer/elements/markdown/MarkdownTransformers.ts +++ b/app/src/app/components/note-viewer/elements/markdown/MarkdownTransformers.ts @@ -10,7 +10,7 @@ export const fendTransformer: MarkdownTransformer = { // e.g. [[1+1]] -> 2 text.replace(/\[\[([^]+?)\]\]/gi, (match, content) => { let result = evaluateFendWithTimeout(content, 500); - if (result === "Error: Interrupted") { + if (result === "Error: interrupted") { result = "Error: Calculation timed out"; } if (result.startsWith("Error:")) { diff --git a/app/yarn.lock b/app/yarn.lock index 7fbaf7e1..8724e67d 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -5480,10 +5480,10 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" -fend-wasm@^0.1.14: - version "0.1.14" - resolved "https://registry.yarnpkg.com/fend-wasm/-/fend-wasm-0.1.14.tgz#10cb3484a8faaa8917a774f9b50f87c1fab8ee09" - integrity sha512-AKiE9QqEpS2Cl2f4tBPpZ8MXduCis23FijjbcQ1UKUEKZ/3c23syUgFuKzS19FEeXOLF4C+E0ugKTcDoVyswAA== +fend-wasm@^0.1.15: + version "0.1.15" + resolved "https://registry.yarnpkg.com/fend-wasm/-/fend-wasm-0.1.15.tgz#0b0c18ed5d050e75a88388cc7db8fc3ca1f8c326" + integrity sha512-Q6bZEpbcC4FPUwwqn/bzTmMevO6XoPIV0xxAgkfkUOmousvzmG7vd6C5Z9xyytXmUG7Dj/kTxiYoJWLn5+rfog== figgy-pudding@^3.5.1: version "3.5.2"