« get me outta code hell

validators: drop dead printable-characters/strlen import - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-16 08:50:39 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-16 09:03:14 -0400
commit6c29ce0d21a53adfaad64885b5a311892f3b29da (patch)
treea1738520b51f4f0eaa83c9679f2d588c77a0b0cc
parentb66548c3353b287064cfd94187871374ed0c520f (diff)
validators: drop dead printable-characters/strlen import
-rw-r--r--package-lock.json11
-rw-r--r--package.json1
-rw-r--r--src/data/validators.js4
3 files changed, 0 insertions, 16 deletions
diff --git a/package-lock.json b/package-lock.json
index 18db0c9d..ad7c5abf 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 b63e9916..83e16bef 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 cb321160..7eabe720 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';