astro-accelerator-utils 0.1.15 → 0.1.17

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, 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';
@@ -10,11 +10,10 @@ import * as PostFiltering from './lib/postFiltering.mjs';
10
10
  import * as PostOrdering from './lib/postOrdering.mjs';
11
11
  import * as PostPaging from './lib/postPaging.mjs';
12
12
  import * as FooterMenu from './lib/footerMenu.mjs';
13
- import * as NavigationX from './lib/navigation.mjs';
14
13
  import * as Taxonomy from './lib/taxonomy.mjs';
15
14
 
16
15
  export {
17
- Author,
16
+ Authors,
18
17
  Cache,
19
18
  DateFormatter,
20
19
  Markdown,
@@ -25,6 +24,5 @@ export {
25
24
  PostOrdering,
26
25
  PostPaging,
27
26
  FooterMenu,
28
- NavigationX,
29
27
  Taxonomy
30
28
  };
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @typedef { import("../../types/AuthorList").AuthorList } AuthorList
3
- * @typedef { import('../../types/Astro').MarkdownInstance } MarkdownInstance
3
+ * @typedef { import("../../types/Astro").MarkdownInstance } MarkdownInstance
4
+ * @typedef { import("../../types/Frontmatter").Frontmatter } Frontmatter
4
5
  */
5
6
  export class Authors {
6
7
  /**
@@ -14,7 +15,7 @@ export class Authors {
14
15
  * @param {Frontmatter} frontmatter
15
16
  * @returns {AuthorList}
16
17
  */
17
- forPage(frontmatter: Frontmatter): AuthorList;
18
+ forPost(frontmatter: Frontmatter): AuthorList;
18
19
  /**
19
20
  * Get a single author by id/slug
20
21
  * @param {string} slug
@@ -23,4 +24,5 @@ export class Authors {
23
24
  info(slug: string): MarkdownInstance;
24
25
  }
25
26
  export type AuthorList = import("../../types/AuthorList").AuthorList;
26
- export type MarkdownInstance = import('../../types/Astro').MarkdownInstance;
27
+ export type MarkdownInstance = import("../../types/Astro").MarkdownInstance;
28
+ export type Frontmatter = import("../../types/Frontmatter").Frontmatter;
@@ -2,7 +2,8 @@ import * as PostFiltering from '../postFiltering.mjs';
2
2
 
3
3
  /**
4
4
  * @typedef { import("../../types/AuthorList").AuthorList } AuthorList
5
- * @typedef { import('../../types/Astro').MarkdownInstance } MarkdownInstance
5
+ * @typedef { import("../../types/Astro").MarkdownInstance } MarkdownInstance
6
+ * @typedef { import("../../types/Frontmatter").Frontmatter } Frontmatter
6
7
  */
7
8
 
8
9
  export class Authors {
@@ -19,7 +20,7 @@ export class Authors {
19
20
  * @param {Frontmatter} frontmatter
20
21
  * @returns {AuthorList}
21
22
  */
22
- forPage (frontmatter) {
23
+ forPost (frontmatter) {
23
24
  const authors = this.posts.all()
24
25
  .filter(PostFiltering.isAuthor);
25
26
 
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.17",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "index.mjs",
6
6
  "type": "module",