Skip to content

Commit

Permalink
Bump highlight.js from 9.13.1 to 10.4.1 (#347)
Browse files Browse the repository at this point in the history
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.13.1 to 10.4.1.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md)
- [Commits](highlightjs/highlight.js@9.13.1...10.4.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Phillips <[email protected]>
  • Loading branch information
dependabot[bot] and jamesdphillips authored Dec 11, 2020
1 parent 0eec449 commit 6fe7860
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"glob-to-regexp": "^0.4.1",
"graphql": "^14.4.2",
"graphql-tag": "^2.9.2",
"highlight.js": "^9.13.1",
"highlight.js": "^10.4.1",
"hoist-non-react-statics": "^2.5.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
Expand Down
4 changes: 3 additions & 1 deletion src/lib/component/base/CodeHighlight/CodeHighlight.worker.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import hljs from "highlight.js/lib/highlight";
import hljs from "highlight.js/lib/core";
import bash from "highlight.js/lib/languages/bash";
import javascript from "highlight.js/lib/languages/javascript";
import json from "highlight.js/lib/languages/json";
import properties from "highlight.js/lib/languages/properties";
import xml from "highlight.js/lib/languages/xml";

hljs.registerLanguage("bash", bash);
hljs.registerLanguage("javascript", javascript);
hljs.registerLanguage("json", json);
hljs.registerLanguage("properties", properties);
hljs.registerLanguage("xml", xml);

onmessage = message => {
const [language, data] = message.data.msg;
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6301,7 +6301,12 @@ [email protected], 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@^9.13.1, highlight.js@~9.13.0:
highlight.js@^10.4.1:
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.13.0:
version "9.13.1"
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.13.1.tgz#054586d53a6863311168488a0f58d6c505ce641e"
integrity sha512-Sc28JNQNDzaH6PORtRLMvif9RSn1mYuOoX3omVjnb0+HbpPygU2ALBI0R/wsiqCb4/fcp07Gdo8g+fhtFrQl6A==
Expand Down

0 comments on commit 6fe7860

Please sign in to comment.