From f507dcdc3b9449642828324663f83320070ee0e0 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 22 May 2023 13:20:15 -0700 Subject: [PATCH] fix: swap dependencies --- package.json | 2 +- src/posts/posts.11tydata.js | 4 +- yarn.lock | 96 ++----------------------------------- 3 files changed, 8 insertions(+), 94 deletions(-) diff --git a/package.json b/package.json index 5f704b8a..6ced5359 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "markdown-it-footnote": "^3.0.3", "markdownlint-cli": "^0.34.0", "marked": "^5.0.2", - "string-strip-html": "13.4.1", + "striptags": "^3.2.0", "tailwindcss": "^3.3.2" }, "lint-staged": { diff --git a/src/posts/posts.11tydata.js b/src/posts/posts.11tydata.js index 6ca715ab..d927ee19 100644 --- a/src/posts/posts.11tydata.js +++ b/src/posts/posts.11tydata.js @@ -1,6 +1,6 @@ const { getFirstAttachment } = require('../../config/filters') const md = require('markdown-it')() -const str = require('string-strip-html') +const striptags = require('striptags') module.exports = { eleventyComputed: { @@ -18,7 +18,7 @@ module.exports = { }, language: 'en-US', title: (data) => data.title, - description: (data) => str.stripHtml(md.render(data.post_excerpt)).result, + description: (data) => striptags(md.render(data.post_excerpt)), url: (data) => data.url, image: { src: (data) => data.post | getFirstAttachment, diff --git a/yarn.lock b/yarn.lock index 8572c914..d689129d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -644,18 +644,6 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== -"@types/lodash-es@^4.17.7": - version "4.17.7" - resolved "https://registry.yarnpkg.com/@types/lodash-es/-/lodash-es-4.17.7.tgz#22edcae9f44aff08546e71db8925f05b33c7cc40" - integrity sha512-z0ptr6UI10VlU6l5MYhGwS4mC8DZyYer2mCoyysZtSF7p26zOX8UpbrV0YpNYLGS8K4PUFIyEr62IMFFjveSiQ== - dependencies: - "@types/lodash" "*" - -"@types/lodash@*": - version "4.14.194" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.194.tgz#b71eb6f7a0ff11bff59fc987134a093029258a76" - integrity sha512-r22s9tAS7imvBt2lyHC9B8AGwWnXaYb1tY09oyLkXDs4vArpYJzw09nj8MLx5VfciBPGIb+ZwG0ssYnEPJxn/g== - "@types/minimatch@^3.0.3": version "3.0.5" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40" @@ -1429,13 +1417,6 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" -codsen-utils@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/codsen-utils/-/codsen-utils-1.6.0.tgz#f7780e1f1c5f80cbeb1614971f01d51caca94d8c" - integrity sha512-VLP3jO/A31LiwYPcqSqNbhVt9R1xj+uqBVJkDvJvqSUeAJttkyuyPCeB/UnuUAPSmKz6yd7INqGcDCSkYcTXXw== - dependencies: - rfdc "^1.3.0" - color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -3523,11 +3504,6 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" -lodash-es@^4.17.21: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee" - integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw== - lodash.camelcase@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" @@ -4675,37 +4651,6 @@ range-parser@~1.2.0: resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== -ranges-apply@^7.0.10: - version "7.0.10" - resolved "https://registry.yarnpkg.com/ranges-apply/-/ranges-apply-7.0.10.tgz#067ffa69c0f3180dac7c683488fd392739e71cf3" - integrity sha512-D03w2RvN9CQln3fz8omYtBAqRPxccCV5PY89n2wEGBC1XXiFnL7VI4fSPZojuttIU8SABocrQq2ZFEiMSgQx2A== - dependencies: - ranges-merge "^9.0.10" - tiny-invariant "^1.3.1" - -ranges-merge@^9.0.10: - version "9.0.10" - resolved "https://registry.yarnpkg.com/ranges-merge/-/ranges-merge-9.0.10.tgz#7cbb54f899b69d70f88853a7a275737f81a4de3b" - integrity sha512-u16GKN3VqjFkRJEkH2ErpgqpUPTIrczzgIvV+wZfrIb9C8uhZp+1lTyy1om3WQEHRL0aS+Jh9Ru3ElCQJgvfug== - dependencies: - ranges-push "^7.0.10" - ranges-sort "^6.0.8" - -ranges-push@^7.0.10: - version "7.0.10" - resolved "https://registry.yarnpkg.com/ranges-push/-/ranges-push-7.0.10.tgz#7e091741ef024d8b83556af9b3bad3ba05aa7d6d" - integrity sha512-Eu2UrdPCTjOhBr95i0tKtN1YM+AbHJU3xvNYJJc11hZih+JxzHfTvNdUuBZjNXxIl7XC6BPFjDQSnr8YWqqoEQ== - dependencies: - codsen-utils "^1.6.0" - ranges-sort "^6.0.8" - string-collapse-leading-whitespace "^7.0.5" - string-trim-spaces-only "^5.0.7" - -ranges-sort@^6.0.8: - version "6.0.8" - resolved "https://registry.yarnpkg.com/ranges-sort/-/ranges-sort-6.0.8.tgz#8c16da6c5ac2b27b2d0b55ff83a92abd499f49d6" - integrity sha512-sWIQdqC0oMfgSD9eJ1YhoXCTz1PVzjWX0kzlE2UbZBBVBymukM+vg2IZPVo04lFfstiN1Y+IKbBid0TCPtH6jg== - raw-body@^2.3.2: version "2.5.2" resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" @@ -5282,37 +5227,6 @@ string-argv@^0.3.1: resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== -string-collapse-leading-whitespace@^7.0.5: - version "7.0.5" - resolved "https://registry.yarnpkg.com/string-collapse-leading-whitespace/-/string-collapse-leading-whitespace-7.0.5.tgz#d40a9b62cc77a092aa4978e9577e1af52f518747" - integrity sha512-cRzQCQwcp57UTFGy6bWVTfg1mkTH61TpYz9A4RDV4PyPQr3hYkPE0XmMS0zkgzYHwdtSM0eX09H9T8SMWUuFPw== - -string-left-right@^6.0.13: - version "6.0.13" - resolved "https://registry.yarnpkg.com/string-left-right/-/string-left-right-6.0.13.tgz#ee85822a3efc63c4356eb95bceb182ea5736fd72" - integrity sha512-/CXF6HG4NpfNI+b45yGc3ULWk2mnsnITXeF88bssl+fa4EquBq4+KpPAAkiJBZLtkSFbSybzWfltkjE9DBkb9Q== - dependencies: - codsen-utils "^1.6.0" - rfdc "^1.3.0" - -string-strip-html@13.4.1: - version "13.4.1" - resolved "https://registry.yarnpkg.com/string-strip-html/-/string-strip-html-13.4.1.tgz#d918f01361e4845b97498158e0d19c70dc05e0c8" - integrity sha512-nIpqWHjSvNsNQHLrhiJgS51zhP5SUq210rkCZUoEEeEJo4eeUNFx6VAtuZbeFl1JV5EGormrIevS487hA9eSLw== - dependencies: - "@types/lodash-es" "^4.17.7" - codsen-utils "^1.6.0" - html-entities "^2.3.3" - lodash-es "^4.17.21" - ranges-apply "^7.0.10" - ranges-push "^7.0.10" - string-left-right "^6.0.13" - -string-trim-spaces-only@^5.0.7: - version "5.0.7" - resolved "https://registry.yarnpkg.com/string-trim-spaces-only/-/string-trim-spaces-only-5.0.7.tgz#ff244701a7c989d5a148c2348a6c22cf9f8ad28f" - integrity sha512-L/rhIYf1Lf+gvq8uSNDps471Ry3xhd0KjlPG0HwOFDSACLlX93fkoaJkuOM33uYEh+HpO8LcmTJDv4r6a9XIOQ== - string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" @@ -5411,6 +5325,11 @@ strip-json-comments@~2.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== +striptags@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/striptags/-/striptags-3.2.0.tgz#cc74a137db2de8b0b9a370006334161f7dd67052" + integrity sha512-g45ZOGzHDMe2bdYMdIvdAfCQkCTDMGBazSw1ypMowwGIee7ZQ5dU0rBJ8Jqgl+jAKIv4dbeE1jscZq9wid1Tkw== + strnum@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db" @@ -5534,11 +5453,6 @@ through2@^4.0.0: resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== -tiny-invariant@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.1.tgz#8560808c916ef02ecfd55e66090df23a4b7aa642" - integrity sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw== - to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"