From 14c4cb81182c712a22ee266748c90ee06ba88d6c Mon Sep 17 00:00:00 2001 From: Qiming Zhao Date: Sat, 15 Jan 2022 23:19:25 +0800 Subject: [PATCH] chore(package): update marked --- package.json | 4 ++-- src/markdown/index.ts | 2 +- yarn.lock | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 90bfd2835ab..bf847ac7760 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "@types/fb-watchman": "^2.0.0", "@types/fs-extra": "^9.0.6", "@types/jest": "^27.0.3", - "@types/marked": "^2.0.4", + "@types/marked": "^4.0.1", "@types/minimatch": "^3.0.3", "@types/mkdirp": "^1.0.1", "@types/node": "12.12.12", @@ -101,7 +101,7 @@ "isuri": "^2.0.3", "jsonc-parser": "^3.0.0", "log4js": "^6.3.0", - "marked": "^2.1.3", + "marked": "^4.0.10", "minimatch": "^3.0.4", "semver": "^7.3.2", "strip-ansi": "^6.0.0", diff --git a/src/markdown/index.ts b/src/markdown/index.ts index f16602a9de1..8afca28670d 100644 --- a/src/markdown/index.ts +++ b/src/markdown/index.ts @@ -1,4 +1,4 @@ -import marked from 'marked' +import { marked } from 'marked' import Renderer from './renderer' import { parseAnsiHighlights } from '../util/ansiparse' import { byteLength } from '../util/string' diff --git a/yarn.lock b/yarn.lock index f2b0b145204..25f22f66eb9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -794,10 +794,10 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== -"@types/marked@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@types/marked/-/marked-2.0.4.tgz#34a0ea548afe6e0c01095229d47b48b2af650613" - integrity sha512-L9VRSe0Id8xbPL99mUo/4aKgD7ZoRwFZqUQScNKHi2pFjF9ZYSMNShUHD6VlMT6J/prQq0T1mxuU25m3R7dFzg== +"@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/minimatch@^3.0.3": version "3.0.5" @@ -2879,10 +2879,10 @@ makeerror@1.0.x: dependencies: tmpl "1.0.x" -marked@^2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/marked/-/marked-2.1.3.tgz#bd017cef6431724fd4b27e0657f5ceb14bff3753" - integrity sha512-/Q+7MGzaETqifOMWYEA7HVMaZb4XbcRfaOzcSsHZEith83KGlvaSG33u0SKu89Mj5h+T8V2hM+8O45Qc5XTgwA== +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== merge-stream@^2.0.0: version "2.0.0"