From 1fe166c183bddac8ae5d3cdfc344a60205322a01 Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Sun, 23 Oct 2022 11:02:05 -0700 Subject: [PATCH] Remove slugify --- build/lib/slugify.js | 2 -- package-lock.json | 12 ------------ package.json | 2 -- 3 files changed, 16 deletions(-) diff --git a/build/lib/slugify.js b/build/lib/slugify.js index 9989aef..972aed6 100644 --- a/build/lib/slugify.js +++ b/build/lib/slugify.js @@ -1,5 +1,3 @@ -const slugs = require('slugify'); - module.exports = exports = function slugify (s) { const result = s.trim().replace(/[^\p{L}\p{N}]+/ug, '-').replace(/^-+/, '').replace(/-+$/, '').toLowerCase(); return result; diff --git a/package-lock.json b/package-lock.json index df1eeb7..e461477 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8108,12 +8108,6 @@ } } }, - "hbs-kit": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/hbs-kit/-/hbs-kit-1.2.0.tgz", - "integrity": "sha512-xmP+VDAIesOFwbc+sarKx98cg+3H0sdT5E3bkiItFlst09pKZKBZtj9g2NFsd6qwouK7B8mIi/Ra58ogPyHACw==", - "dev": true - }, "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -12194,12 +12188,6 @@ } } }, - "slugify": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.0.tgz", - "integrity": "sha512-FkMq+MQc5hzYgM86nLuHI98Acwi3p4wX+a5BO9Hhw4JdK4L7WueIiZ4tXEobImPqBz2sVcV0+Mu3GRB30IGang==", - "dev": true - }, "smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", diff --git a/package.json b/package.json index 4b495f9..1529e58 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,6 @@ "gulp-awspublish-router": "~0.2.0", "gulp-clean": "~0.4.0", "handybars": "~0.4.0", - "hbs-kit": "~1.2.0", "html-minifier-terser": "~5.1.1", "image-size": "~1.0.0", "jquery": "~3.6.0", @@ -89,7 +88,6 @@ "rollup-plugin-terser": "~7.0.2", "rss": "~1.2.2", "serve-index": "~1.9.1", - "slugify": "~1.6.0", "string-strip-html": "~8.3.0", "svg-dimensions": "~1.0.2", "terser": "~5.7.2",