@chrisburnell/eleventy-cache-webmentions 2.1.3-beta.3 → 2.1.3

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.
@@ -55,8 +55,8 @@ const getReceived = (webmention) => {
55
55
  return (
56
56
  webmention["wm-received"] ||
57
57
  webmention["verified_date"] ||
58
- webmention?.["data"]?.["published"] ||
59
- webmention["published"]
58
+ webmention["published"] ||
59
+ webmention?.["data"]?.["published"]
60
60
  );
61
61
  };
62
62
 
@@ -94,7 +94,7 @@ const getType = (webmention) => {
94
94
 
95
95
  const getByType = (webmentions, allowedType) => {
96
96
  return webmentions.filter((webmention) => {
97
- return allowedTypes === getType(webmention);
97
+ return allowedType === getType(webmention);
98
98
  });
99
99
  };
100
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrisburnell/eleventy-cache-webmentions",
3
- "version": "2.1.3-beta.3",
3
+ "version": "2.1.3",
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": {