From 29a343459c3d7f572f9fb9d05e2945fd6ca13b0d Mon Sep 17 00:00:00 2001 From: Chris Burnell Date: Wed, 25 Jan 2023 09:28:40 +0000 Subject: [PATCH] fix: pass options.directory to Eleventy Fetch AssetCache --- eleventy-cache-webmentions.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eleventy-cache-webmentions.js b/eleventy-cache-webmentions.js index eb65b7f..f1f7d42 100644 --- a/eleventy-cache-webmentions.js +++ b/eleventy-cache-webmentions.js @@ -89,7 +89,7 @@ const fetchWebmentions = async (options) => { throw new Error("uniqueKey is a required field when attempting to retrieve Webmentions. See https://chrisburnell.com/eleventy-cache-webmentions/#installation for more information.") } - let asset = new AssetCache(options.uniqueKey) + let asset = new AssetCache(options.uniqueKey, options.directory) asset.ensureDir() let webmentions = [] diff --git a/package.json b/package.json index dde6394..93812a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chrisburnell/eleventy-cache-webmentions", - "version": "1.1.1", + "version": "1.1.2", "description": "Fetch and cache webmentions using eleventy-fetch.", "main": "eleventy-cache-webmentions.js", "author": "Chris Burnell ",