diff --git a/api/_lib/template.ts b/api/_lib/template.ts index 93d3264..fa154ad 100644 --- a/api/_lib/template.ts +++ b/api/_lib/template.ts @@ -1,6 +1,6 @@ import { readFileSync } from 'fs'; -import marked from 'marked'; +import { marked } from 'marked'; import { sanitizeHtml } from './sanitizer'; import { ParsedRequest } from './types'; const twemoji = require('twemoji'); diff --git a/package.json b/package.json index 483c2ae..71cefe3 100644 --- a/package.json +++ b/package.json @@ -8,12 +8,12 @@ }, "dependencies": { "chrome-aws-lambda": "7.0.0", - "marked": "2.0.0", + "marked": "4.0.10", "puppeteer-core": "7.0.0", "twemoji": "13.0.1" }, "devDependencies": { - "@types/marked": "1.2.2", + "@types/marked": "4.0.1", "@types/puppeteer": "5.4.3", "@types/puppeteer-core": "5.4.0", "typescript": "4.1.5" diff --git a/yarn.lock b/yarn.lock index 3a475c8..0f819f7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@types/marked@1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@types/marked/-/marked-1.2.2.tgz#1f858a0e690247ecf3b2eef576f98f86e8d960d4" - integrity sha512-wLfw1hnuuDYrFz97IzJja0pdVsC0oedtS4QsKH1/inyW9qkLQbXgMUqEQT0MVtUBx3twjWeInUfjQbhBVLECXw== +"@types/marked@4.0.1": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@types/marked/-/marked-4.0.1.tgz#d588a7bbc4d6551c5e75249bc106ffda96ae33c5" + integrity sha512-ZigEmCWdNUU7IjZEuQ/iaimYdDHWHfTe3kg8ORfKjyGYd9RWumPoOJRQXB0bO+XLkNwzCthW3wUIQtANaEZ1ag== "@types/node@*": version "14.14.28" @@ -241,10 +241,10 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" -marked@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/marked/-/marked-2.0.0.tgz#9662bbcb77ebbded0662a7be66ff929a8611cee5" - integrity sha512-NqRSh2+LlN2NInpqTQnS614Y/3NkVMFFU6sJlRFEpxJ/LHuK/qJECH7/fXZjk4VZstPW/Pevjil/VtSONsLc7Q== +marked@4.0.10: + version "4.0.10" + resolved "https://registry.yarnpkg.com/marked/-/marked-4.0.10.tgz#423e295385cc0c3a70fa495e0df68b007b879423" + integrity sha512-+QvuFj0nGgO970fySghXGmuw+Fd0gD2x3+MqCWLIPf5oxdv1Ka6b2q+z9RP01P/IaKPMEramy+7cNy/Lw8c3hw== minimatch@^3.0.4: version "3.0.4"