diff --git a/package-lock.json b/package-lock.json index d5709c44a9e8..a0da8abb86f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -66,7 +66,7 @@ "react-syntax-highlighter": "^15.4.4", "redis": "^3.1.2", "rehype-autolink-headings": "^6.1.0", - "rehype-highlight": "^5.0.0", + "rehype-highlight": "^6.0.0", "rehype-raw": "^6.1.0", "rehype-slug": "^5.0.0", "rehype-stringify": "^9.0.2", @@ -8374,6 +8374,16 @@ "node": ">= 0.8.0" } }, + "node_modules/escodegen/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/escodegen/node_modules/type-check": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", @@ -17876,9 +17886,9 @@ } }, "node_modules/rehype-highlight": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/rehype-highlight/-/rehype-highlight-5.0.0.tgz", - "integrity": "sha512-LXbdRzHM0PNzVfHvbiF+r/BZzCHSdtpSTCnJej6ZuvJKDKRVfwl0Io5b81gWqUnfZmpzjhPAzm5es4iikv1jzg==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/rehype-highlight/-/rehype-highlight-6.0.0.tgz", + "integrity": "sha512-q7UtlFicLhetp7K48ZgZiJgchYscMma7XjzX7t23bqEJF8m6/s+viXQEe4oHjrATTIZpX7RG8CKD7BlNZoh9gw==", "dependencies": { "@types/hast": "^2.0.0", "hast-util-to-text": "^3.0.0", @@ -17903,6 +17913,14 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/rehype-highlight/node_modules/highlight.js": { + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.3.1.tgz", + "integrity": "sha512-PUhCRnPjLtiLHZAQ5A/Dt5F8cWZeMyj9KRsACsWT+OD6OP0x6dp5OmT5jdx0JgEyPxPZZIPQpRN2TciUT7occw==", + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/rehype-highlight/node_modules/lowlight": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-2.4.0.tgz", @@ -28535,6 +28553,13 @@ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", "dev": true }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + }, "type-check": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", @@ -35723,9 +35748,9 @@ } }, "rehype-highlight": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/rehype-highlight/-/rehype-highlight-5.0.0.tgz", - "integrity": "sha512-LXbdRzHM0PNzVfHvbiF+r/BZzCHSdtpSTCnJej6ZuvJKDKRVfwl0Io5b81gWqUnfZmpzjhPAzm5es4iikv1jzg==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/rehype-highlight/-/rehype-highlight-6.0.0.tgz", + "integrity": "sha512-q7UtlFicLhetp7K48ZgZiJgchYscMma7XjzX7t23bqEJF8m6/s+viXQEe4oHjrATTIZpX7RG8CKD7BlNZoh9gw==", "requires": { "@types/hast": "^2.0.0", "hast-util-to-text": "^3.0.0", @@ -35742,6 +35767,11 @@ "format": "^0.2.0" } }, + "highlight.js": { + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.3.1.tgz", + "integrity": "sha512-PUhCRnPjLtiLHZAQ5A/Dt5F8cWZeMyj9KRsACsWT+OD6OP0x6dp5OmT5jdx0JgEyPxPZZIPQpRN2TciUT7occw==" + }, "lowlight": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-2.4.0.tgz", diff --git a/package.json b/package.json index c49fc7dbb5ce..d86f805c7bf3 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "react-syntax-highlighter": "^15.4.4", "redis": "^3.1.2", "rehype-autolink-headings": "^6.1.0", - "rehype-highlight": "^5.0.0", + "rehype-highlight": "^6.0.0", "rehype-raw": "^6.1.0", "rehype-slug": "^5.0.0", "rehype-stringify": "^9.0.2",