From 0cc7109613688ec8163cfe8f4d806ec963401e1a Mon Sep 17 00:00:00 2001 From: Joseph Werle Date: Thu, 15 Apr 2021 15:09:12 -0400 Subject: [PATCH] chore(): upgrade deps --- index.js | 2 +- package.json | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 996bc6d..a7601fd 100644 --- a/index.js +++ b/index.js @@ -137,7 +137,7 @@ const syntaxHlStr = (lang, script, opts, indentStart) => { script = indentStr + script } - const code = hljs.highlight(lang, script).value + const code = hljs.highlight(script, { language: lang }).value const lines = code.split('\n') lines.forEach((line, lineNumber) => { diff --git a/package.json b/package.json index 2d444ac..1ccbb6f 100644 --- a/package.json +++ b/package.json @@ -18,22 +18,22 @@ "array-uniq": "^2.1.0", "camelcase": "^6.2.0", "chalk": "^4.1.0", - "cheerio": "^1.0.0-rc.2", + "cheerio": "^1.0.0-rc.6", "deepmerge": "^4.2.2", "detect-indent": "^6.0.0", "he": "^1.1.1", - "highlight.js": "^10.4.0", + "highlight.js": "^10.7.2", "min-indent": "^1.0.0", "strip-ansi": "^6.0.0", "strip-indent": "^3.0.0", "super-split": "^1.1.0" }, "devDependencies": { - "@12core/eslint-config-12core": "^3.0.0", - "ava": "^3.13.0", - "eslint": "^7.14.0", + "@12core/eslint-config-12core": "^4.0.2", "auto-changelog": "^2.2.0", - "gh-release": "^4.0.0", + "ava": "^3.15.0", + "eslint": "^7.24.0", + "gh-release": "^5.0.0", "npm-run-all2": "^5.0.0" }, "ava": {