From 38ac163ba642883549152348b3a432cf9c230a14 Mon Sep 17 00:00:00 2001 From: Amiram Wingarten Date: Thu, 17 Dec 2020 01:14:17 +0200 Subject: [PATCH] upgrade highlight.js to solve WS-2020-0208 Signed-off-by: Amiram Wingarten --- packages/preview/package.json | 4 ++-- yarn.lock | 13 ++++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/preview/package.json b/packages/preview/package.json index 21d14bfee6e55..de07aaebd700b 100644 --- a/packages/preview/package.json +++ b/packages/preview/package.json @@ -8,11 +8,11 @@ "@theia/mini-browser": "^1.9.0", "@theia/monaco": "^1.9.0", "@types/dompurify": "^2.0.2", - "@types/highlight.js": "^9.12.2", + "@types/highlight.js": "^10.1.0", "@types/markdown-it": "*", "@types/markdown-it-anchor": "^4.0.1", "dompurify": "^2.0.11", - "highlight.js": "^9.12.0", + "highlight.js": "10.4.1", "markdown-it": "^8.4.0", "markdown-it-anchor": "~5.0.0" }, diff --git a/yarn.lock b/yarn.lock index 634f0535f1f91..2b8e609cd8906 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1229,7 +1229,14 @@ "@types/minimatch" "*" "@types/node" "*" -"@types/highlight.js@^9.12.2", "@types/highlight.js@^9.7.0": +"@types/highlight.js@^10.1.0": + version "10.1.0" + resolved "https://registry.yarnpkg.com/@types/highlight.js/-/highlight.js-10.1.0.tgz#89bb0c202997d7a90a07bd2ec1f7d00c56bb90b4" + integrity sha512-77hF2dGBsOgnvZll1vymYiNUtqJ8cJfXPD6GG/2M0aLRc29PkvB7Au6sIDjIEFcSICBhCh2+Pyq6WSRS7LUm6A== + dependencies: + highlight.js "*" + +"@types/highlight.js@^9.7.0": version "9.12.4" resolved "https://registry.yarnpkg.com/@types/highlight.js/-/highlight.js-9.12.4.tgz#8c3496bd1b50cc04aeefd691140aa571d4dbfa34" integrity sha512-t2szdkwmg2JJyuCM20e8kR2X59WCE5Zkl4bzm1u1Oukjm79zpbiAv+QjnwLnuuV0WHEcX2NgUItu0pAMKuOPww== @@ -7214,12 +7221,12 @@ he@1.2.0: resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== -highlight.js@^10.0.0: +highlight.js@*, highlight.js@10.4.1, highlight.js@^10.0.0: version "10.4.1" resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.4.1.tgz#d48fbcf4a9971c4361b3f95f302747afe19dbad0" integrity sha512-yR5lWvNz7c85OhVAEAeFhVCc/GV4C30Fjzc/rCP0aCWzc1UUOPUk55dK/qdwTZHBvMZo+eZ2jpk62ndX/xMFlg== -highlight.js@^9.12.0, highlight.js@^9.7.0: +highlight.js@^9.7.0: version "9.18.5" resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.5.tgz#d18a359867f378c138d6819edfc2a8acd5f29825" integrity sha512-a5bFyofd/BHCX52/8i8uJkjr9DYwXIPnM/plwI6W7ezItLGqzt7X2G2nXuYSfsIJdkwwj/g9DG1LkcGJI/dDoA==