@chrisburnell/eleventy-cache-webmentions 2.3.4 → 2.3.5
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.
- package/package.json +1 -1
- package/src/core.cjs +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrisburnell/eleventy-cache-webmentions",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.5",
|
|
4
4
|
"description": "Cache webmentions using eleventy-fetch and make them available to use in collections, layouts, pages, etc. in Eleventy.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/src/core.cjs
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
* @property {object} [content]
|
|
41
41
|
* @property {string} [content.html]
|
|
42
42
|
* @property {string} [content.value]
|
|
43
|
+
* @property {string} [content.text]
|
|
43
44
|
* @property {object} [data]
|
|
44
45
|
* @property {string} [data.title]
|
|
45
46
|
* @property {string} [data.url]
|
|
@@ -212,7 +213,8 @@ module.exports = ({ AssetCache, styleText, sanitizeHTML }) => {
|
|
|
212
213
|
webmention?.["contentSanitized"] ||
|
|
213
214
|
webmention?.["content"]?.["html"] ||
|
|
214
215
|
webmention?.["content"]?.["value"] ||
|
|
215
|
-
webmention?.["content"] ||
|
|
216
|
+
webmention?.["content"]?.["text"] ||
|
|
217
|
+
(typeof webmention?.["content"] === "string" && webmention["content"]) ||
|
|
216
218
|
webmention?.["data"]?.["content"] ||
|
|
217
219
|
""
|
|
218
220
|
);
|