From 6c29ce0d21a53adfaad64885b5a311892f3b29da Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 16 Feb 2024 08:50:39 -0400 Subject: validators: drop dead printable-characters/strlen import --- package-lock.json | 11 ----------- package.json | 1 - src/data/validators.js | 4 ---- 3 files changed, 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 18db0c9..ad7c5ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,6 @@ "image-size": "^1.0.2", "js-yaml": "^4.1.0", "marked": "^10.0.0", - "printable-characters": "^1.0.42", "striptags": "^4.0.0-alpha.4", "word-wrap": "^1.2.3" }, @@ -3765,11 +3764,6 @@ "node": ">= 0.8.0" } }, - "node_modules/printable-characters": { - "version": "1.0.42", - "resolved": "https://registry.npmjs.org/printable-characters/-/printable-characters-1.0.42.tgz", - "integrity": "sha512-dKp+C4iXWK4vVYZmYSd0KBH5F/h1HoZRsbJ82AVKRO3PEo8L4lBS/vLwhVtpwwuYcoIsVY+1JYKR268yn480uQ==" - }, "node_modules/prismjs": { "version": "1.29.0", "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", @@ -8041,11 +8035,6 @@ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==" }, - "printable-characters": { - "version": "1.0.42", - "resolved": "https://registry.npmjs.org/printable-characters/-/printable-characters-1.0.42.tgz", - "integrity": "sha512-dKp+C4iXWK4vVYZmYSd0KBH5F/h1HoZRsbJ82AVKRO3PEo8L4lBS/vLwhVtpwwuYcoIsVY+1JYKR268yn480uQ==" - }, "prismjs": { "version": "1.29.0", "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", diff --git a/package.json b/package.json index b63e991..83e16be 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "image-size": "^1.0.2", "js-yaml": "^4.1.0", "marked": "^10.0.0", - "printable-characters": "^1.0.42", "striptags": "^4.0.0-alpha.4", "word-wrap": "^1.2.3" }, diff --git a/src/data/validators.js b/src/data/validators.js index cb32116..7eabe72 100644 --- a/src/data/validators.js +++ b/src/data/validators.js @@ -1,9 +1,5 @@ import {inspect as nodeInspect} from 'node:util'; -// Heresy. -import printable_characters from 'printable-characters'; -const {strlen} = printable_characters; - import {colors, ENABLE_COLOR} from '#cli'; import {commentaryRegexCaseInsensitive, commentaryRegexCaseSensitiveOneShot} from '#wiki-data'; -- cgit 1.3.0-6-gf8a5