From 98f9766ac62e07fb1e4e9373f2b4d6baa40d6771 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Sat, 10 Aug 2019 23:38:48 -0700 Subject: [PATCH] Remove unused deps --- package-lock.json | 104 ++---------------------------- package.json | 2 - test/gatsby-remark-vscode.test.js | 8 +-- 3 files changed, 7 insertions(+), 107 deletions(-) diff --git a/package-lock.json b/package-lock.json index 41f5297..95b54ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -692,11 +692,6 @@ "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", "dev": true }, - "array-iterate": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.3.tgz", - "integrity": "sha512-7MIv7HE9MuzfK6B2UnWv07oSHBLOaY1UUXAxZ07bIeRM+4IkPTlveMDs9MY//qvxPZPSvCn2XV4bmtQgSkVodg==" - }, "array-unique": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", @@ -1177,7 +1172,8 @@ "collapse-white-space": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.5.tgz", - "integrity": "sha512-703bOOmytCYAX9cXYqoikYIx6twmFCXsnzRQheBcTG3nzKYBR4P/+wkYeH+Mvj7qUz8zZDtdyzbxfnEi/kYzRQ==" + "integrity": "sha512-703bOOmytCYAX9cXYqoikYIx6twmFCXsnzRQheBcTG3nzKYBR4P/+wkYeH+Mvj7qUz8zZDtdyzbxfnEi/kYzRQ==", + "dev": true }, "collection-visit": { "version": "1.0.0", @@ -2111,14 +2107,6 @@ } } }, - "hast-util-embedded": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/hast-util-embedded/-/hast-util-embedded-1.0.4.tgz", - "integrity": "sha512-kfCMiRzYPWx9I6KYdW5DCS+WM6xRmAtfrPd2yEG+5cuwquEh0Qh2sV7CX0tbdes/nmm2lBTGLURh0GmRb2txgQ==", - "requires": { - "hast-util-is-element": "^1.0.0" - } - }, "hast-util-from-parse5": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-5.0.1.tgz", @@ -2132,24 +2120,11 @@ "xtend": "^4.0.1" } }, - "hast-util-has-property": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/hast-util-has-property/-/hast-util-has-property-1.0.3.tgz", - "integrity": "sha512-tT3ffSnrBu38RKnjn27n9vi+h/CUEXCQP5O2mriji4NNI2QNnhAqefjOg5ORAyvVfJItn0SC2Sx4CHReZSYh3g==" - }, - "hast-util-is-body-ok-link": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/hast-util-is-body-ok-link/-/hast-util-is-body-ok-link-1.0.2.tgz", - "integrity": "sha512-eSxO9rgtb7dfKxNa8NAFS3VEYWHXnJWVsoH/Z4jSsq1J2i4H1GkdJ43kXv++xuambrtI5XQwcAx6jeZVMjoBMQ==", - "requires": { - "hast-util-has-property": "^1.0.0", - "hast-util-is-element": "^1.0.0" - } - }, "hast-util-is-element": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-1.0.3.tgz", - "integrity": "sha512-C62CVn7jbjp89yOhhy7vrkSaB7Vk906Gtcw/Ihd+Iufnq+2pwOZjdPmpzpKLWJXPJBMDX3wXg4FqmdOayPcewA==" + "integrity": "sha512-C62CVn7jbjp89yOhhy7vrkSaB7Vk906Gtcw/Ihd+Iufnq+2pwOZjdPmpzpKLWJXPJBMDX3wXg4FqmdOayPcewA==", + "dev": true }, "hast-util-parse-selector": { "version": "2.2.2", @@ -2157,17 +2132,6 @@ "integrity": "sha512-jIMtnzrLTjzqgVEQqPEmwEZV+ea4zHRFTP8Z2Utw0I5HuBOXHzUPPQWr6ouJdJqDKLbFU/OEiYwZ79LalZkmmw==", "dev": true }, - "hast-util-phrasing": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/hast-util-phrasing/-/hast-util-phrasing-1.0.4.tgz", - "integrity": "sha512-3GlGZaR7X0brAHNB6TXY7tDzV1bFeSMptBlX0cgOMrw85dRSCF0A71TL83FgFk/oCvvBzeZQIHMIh/cOjnXioA==", - "requires": { - "hast-util-embedded": "^1.0.0", - "hast-util-has-property": "^1.0.0", - "hast-util-is-body-ok-link": "^1.0.0", - "hast-util-is-element": "^1.0.0" - } - }, "hast-util-raw": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-5.0.1.tgz", @@ -2270,11 +2234,6 @@ "integrity": "sha512-yMk3naGPLrfvUV9TdDbuYXngh/TpHbA6TrOw3HL9kS8yhwx7i309BReNg7CbAJXGE+UMJ6je5OqJ7lC63o6YuQ==", "dev": true }, - "html-whitespace-sensitive-tag-names": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/html-whitespace-sensitive-tag-names/-/html-whitespace-sensitive-tag-names-1.0.1.tgz", - "integrity": "sha512-TMdAWVry7Ld0k2sLqpHkWsFAHmU+VZZq/nR4bfwfxThD8q3ibhrpRTywyQkEiunYiZXmJ6gRcJiLbZm+jbQPgQ==" - }, "http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", @@ -4312,50 +4271,6 @@ "safe-regex": "^1.1.0" } }, - "rehype-format": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/rehype-format/-/rehype-format-2.3.2.tgz", - "integrity": "sha512-71wC07yQqSEo6gaVRiSAB6DaOv1qPZlSvK7KQv8+ABvQFVojCgFKzDYx7T66KJY5SGieZbpUoGzKrzW7pfAJhA==", - "requires": { - "hast-util-embedded": "^1.0.1", - "hast-util-phrasing": "^1.0.0", - "html-whitespace-sensitive-tag-names": "^1.0.0", - "rehype-minify-whitespace": "^2.0.0", - "repeat-string": "^1.5.4", - "unist-util-visit-parents": "^2.0.0" - } - }, - "rehype-minify-whitespace": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/rehype-minify-whitespace/-/rehype-minify-whitespace-2.0.4.tgz", - "integrity": "sha512-TQVOvOSURaWNbYepVgSzUofSTRsaAVQe/dH01Mo44u+Gr221jTmUem8l0jlJBAfSOHNaUF4jfDDbyEeb4ueAmA==", - "requires": { - "collapse-white-space": "^1.0.0", - "hast-util-embedded": "^1.0.0", - "hast-util-has-property": "^1.0.0", - "hast-util-is-body-ok-link": "^1.0.0", - "hast-util-is-element": "^1.0.0", - "html-whitespace-sensitive-tag-names": "^1.0.0", - "unist-util-is": "^3.0.0", - "unist-util-modify-children": "^1.0.0" - }, - "dependencies": { - "unist-util-is": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-3.0.0.tgz", - "integrity": "sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A==" - } - } - }, - "rehype-raw": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/rehype-raw/-/rehype-raw-4.0.1.tgz", - "integrity": "sha512-g74dPCUWeB9EBfTfGF3lGOHSnZwFwN1ssc3Je9OwQO9f8yTkkAIrMqUVxT34h8zpi4ICU051tTLBZbOrzRWpxg==", - "dev": true, - "requires": { - "hast-util-raw": "^5.0.0" - } - }, "rehype-stringify": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/rehype-stringify/-/rehype-stringify-6.0.0.tgz", @@ -4413,7 +4328,8 @@ "repeat-string": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true }, "replace-ext": { "version": "1.0.0", @@ -5343,14 +5259,6 @@ "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-2.1.2.tgz", "integrity": "sha512-YkXBK/H9raAmG7KXck+UUpnKiNmUdB+aBGrknfQ4EreE1banuzrKABx3jP6Z5Z3fMSPMQQmeXBlKpCbMwBkxVw==" }, - "unist-util-modify-children": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/unist-util-modify-children/-/unist-util-modify-children-1.1.4.tgz", - "integrity": "sha512-8iey9wkoB62C7Vi/8zcRUmi4b1f5AYKTwMkyEgLduo2D8+OY65RoSvbn6k9tVNri6qumXxAwXDVlXWQi0sENTw==", - "requires": { - "array-iterate": "^1.0.0" - } - }, "unist-util-position": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-3.0.3.tgz", diff --git a/package.json b/package.json index a49ce2a..829fd2c 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,6 @@ "jest": "^24.5.0", "mdast-util-to-hast": "^6.0.1", "prettier": "^1.17.0", - "rehype-raw": "^4.0.1", "rehype-stringify": "^6.0.0", "remark-parse": "^7.0.1", "remark-rehype": "^5.0.0", @@ -59,7 +58,6 @@ "loglevel": "^1.6.3", "oniguruma": "^7.2.0", "plist": "^3.0.1", - "rehype-format": "^2.3.2", "unist-util-visit": "^1.4.0", "vscode-textmate": "^4.1.0" }, diff --git a/test/gatsby-remark-vscode.test.js b/test/gatsby-remark-vscode.test.js index fd2041e..5785804 100644 --- a/test/gatsby-remark-vscode.test.js +++ b/test/gatsby-remark-vscode.test.js @@ -9,12 +9,9 @@ const glob = require('glob'); const path = require('path'); const request = require('request'); const unified = require('unified'); -const raw = require('rehype-raw'); const reparseHast = require('hast-util-raw'); const mdastToHast = require('mdast-util-to-hast'); const remark = require('remark-parse'); -const rehype = require('remark-rehype'); -const format = require('rehype-format'); const stringify = require('rehype-stringify'); const decompress = require('decompress'); const createPlugin = require('../src'); @@ -297,10 +294,7 @@ describe('integration tests', () => { const defaultOptions = require('./integration/options'); const processor = unified() .use(remark, { commonmark: true }) - // @ts-ignore - .use(rehype, { allowDangerousHTML: true }) - .use(raw) - .use(format) + // @ts-ignore .use(stringify, { sanitize: false }); const cases = glob.sync('integration/cases/**/*.md', { cwd: __dirname }).map(name => {