astro-accelerator-utils 0.1.15 → 0.1.16

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.
package/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Authors } from "./lib/v1/authors.mjs";
1
2
  import { Cache } from "./lib/v1/cache.mjs";
2
3
  import { DateFormatter } from "./lib/v1/dates.mjs";
3
4
  import { Markdown } from "./lib/v1/markdown.mjs";
@@ -9,4 +10,4 @@ import * as PostOrdering from "./lib/postOrdering.mjs";
9
10
  import * as PostPaging from "./lib/postPaging.mjs";
10
11
  import * as FooterMenu from "./lib/footerMenu.mjs";
11
12
  import * as Taxonomy from "./lib/taxonomy.mjs";
12
- export { Author, Cache, DateFormatter, Markdown, Navigation, Posts, UrlFormatter, PostFiltering, PostOrdering, PostPaging, FooterMenu, NavigationX, Taxonomy };
13
+ export { Authors, Cache, DateFormatter, Markdown, Navigation, Posts, UrlFormatter, PostFiltering, PostOrdering, PostPaging, FooterMenu, NavigationX, Taxonomy };
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Author } from './lib/v1/authors.mjs';
1
+ import { Authors } from './lib/v1/authors.mjs';
2
2
  import { Cache } from './lib/v1/cache.mjs';
3
3
  import { DateFormatter } from './lib/v1/dates.mjs';
4
4
  import { Markdown } from './lib/v1/markdown.mjs';
@@ -14,7 +14,7 @@ import * as NavigationX from './lib/navigation.mjs';
14
14
  import * as Taxonomy from './lib/taxonomy.mjs';
15
15
 
16
16
  export {
17
- Author,
17
+ Authors,
18
18
  Cache,
19
19
  DateFormatter,
20
20
  Markdown,
@@ -14,7 +14,7 @@ export class Authors {
14
14
  * @param {Frontmatter} frontmatter
15
15
  * @returns {AuthorList}
16
16
  */
17
- forPage(frontmatter: Frontmatter): AuthorList;
17
+ forPost(frontmatter: Frontmatter): AuthorList;
18
18
  /**
19
19
  * Get a single author by id/slug
20
20
  * @param {string} slug
@@ -19,7 +19,7 @@ export class Authors {
19
19
  * @param {Frontmatter} frontmatter
20
20
  * @returns {AuthorList}
21
21
  */
22
- forPage (frontmatter) {
22
+ forPost (frontmatter) {
23
23
  const authors = this.posts.all()
24
24
  .filter(PostFiltering.isAuthor);
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-accelerator-utils",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "index.mjs",
6
6
  "type": "module",