@chrisburnell/eleventy-cache-webmentions 2.1.9 → 2.1.10
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"cachedAt":
|
|
1
|
+
{"cachedAt":1756765086067,"type":"json","metadata":{}}
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Cache webmentions using eleventy-fetch and make them available to use in collections, layouts, pages, etc. in Eleventy.
|
|
4
4
|
|
|
5
|
+
[](https://github.com/chrisburnell/eleventy-cache-webmentions/actions/workflows/npm-publish.yml) [](https://www.npmjs.com/package/@chrisburnell/eleventy-cache-webmentions)
|
|
6
|
+
|
|
5
7
|
## Breaking change for v2.0.0
|
|
6
8
|
|
|
7
9
|
Version 2.0.0 introduces a breaking change for those migrating from earlier versions of the plugin. This affects usage of the plugin from JavaScript files; specifically, you will need to make a small change to the way that you `require()` the plugin by removing an extra set of parentheses:
|
|
@@ -225,14 +225,19 @@ const performFetch = async (options, webmentions, url) => {
|
|
|
225
225
|
};
|
|
226
226
|
})
|
|
227
227
|
.catch((error) => {
|
|
228
|
-
console.
|
|
228
|
+
console.warn(
|
|
229
229
|
`${chalk.grey(
|
|
230
230
|
`[${hostname(options.domain)}]`,
|
|
231
|
-
)} Something went wrong with your request to ${chalk.bold(
|
|
231
|
+
)} Something went wrong with your Webmention request to ${chalk.bold(
|
|
232
232
|
hostname(options.feed),
|
|
233
233
|
)}!`,
|
|
234
|
-
error,
|
|
235
234
|
);
|
|
235
|
+
console.warn(error instanceof Error ? error.message : error);
|
|
236
|
+
|
|
237
|
+
return {
|
|
238
|
+
found: 0,
|
|
239
|
+
filtered: webmentions,
|
|
240
|
+
};
|
|
236
241
|
});
|
|
237
242
|
};
|
|
238
243
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrisburnell/eleventy-cache-webmentions",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.10",
|
|
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": {
|