@rmdes/indiekit-endpoint-blogroll 1.0.8 → 1.0.9

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.
@@ -157,7 +157,14 @@ async function edit(request, response) {
157
157
  return response.status(404).render("404");
158
158
  }
159
159
 
160
- const items = await getItemsForBlog(application, blog._id, 10);
160
+ const rawItems = await getItemsForBlog(application, blog._id, 10);
161
+ const items = rawItems.map((item) => ({
162
+ ...item,
163
+ published:
164
+ item.published instanceof Date
165
+ ? item.published.toISOString()
166
+ : item.published,
167
+ }));
161
168
 
162
169
  response.render("blogroll-blog-edit", {
163
170
  title: request.__("blogroll.blogs.edit"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-blogroll",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Blogroll endpoint for Indiekit. Aggregates blog feeds from OPML, JSON feeds, or manual entry.",
5
5
  "keywords": [
6
6
  "indiekit",