astro-accelerator-utils 0.0.25 → 0.0.26

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,4 +1,5 @@
1
- import { getItem, setItem } from "./cache.mjs";
1
+ import { getItem, setItem } from './cache.mjs';
2
+ import * as PostFiltering from './postFiltering.mjs';
2
3
 
3
4
  /**
4
5
  * @typedef { import("../types/PageFunction").PageFunction } PageFunction
@@ -35,10 +36,10 @@ export async function getPages (fetchPages, filter) {
35
36
  *
36
37
  * @param {PageFunction} fetchPages
37
38
  * @param {Frontmatter} frontmatter
38
- * @returns {AuthorList}
39
+ * @returns {Promise<AuthorList>}
39
40
  */
40
41
  export async function getAuthors (fetchPages, frontmatter) {
41
- const authors = await PostQueries.getPages(fetchPages, PostFiltering.isAuthor);
42
+ const authors = await getPages(fetchPages, PostFiltering.isAuthor);
42
43
 
43
44
  /** @type {AuthorList} */
44
45
  const result = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-accelerator-utils",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "index.mjs",
6
6
  "files": [