@chrisburnell/eleventy-cache-webmentions 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -206,9 +206,9 @@ const getWebmentions = async (options, url, allowedTypes = {}) => {
206
206
  const html = getContent(entry)
207
207
 
208
208
  if (html.length) {
209
- entry.content = sanitizeHTML(html, options.allowedHTML)
209
+ entry.contentSanitized = sanitizeHTML(html, options.allowedHTML)
210
210
  if (html.length > options.maximumHtmlLength) {
211
- entry.content = `${options.maximumHtmlText} <a href="${getSource(entry)}">${getSource(entry)}</a>`
211
+ entry.contentSanitized = `${options.maximumHtmlText} <a href="${getSource(entry)}">${getSource(entry)}</a>`
212
212
  }
213
213
  }
214
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrisburnell/eleventy-cache-webmentions",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Fetch and cache webmentions using eleventy-fetch.",
5
5
  "author": "Chris Burnell <me@chrisburnell.com>",
6
6
  "license": "MIT",
@@ -20,13 +20,13 @@
20
20
  "webmention"
21
21
  ],
22
22
  "devDependencies": {
23
- "eslint": "^8.41.0"
23
+ "eslint": "^8.47.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "@11ty/eleventy-fetch": "^4.0.0",
27
27
  "lodash": "^4.17.21",
28
- "node-fetch": "2.6.5",
29
- "sanitize-html": "^2.10.0"
28
+ "node-fetch": "^3.3.2",
29
+ "sanitize-html": "^2.11.0"
30
30
  },
31
31
  "main": "eleventy-cache-webmentions.js",
32
32
  "scripts": {