astro-accelerator-utils 0.0.2 → 0.0.3

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/dist/Site.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ export type Site = {
2
+ url: string;
3
+ dateOptions: Intl.DateTimeFormatOptions;
4
+ subfolder: string;
5
+ feedUrl: string;
6
+ title: string;
7
+ description: string;
8
+ defaultLanguage: string;
9
+ themeColor: string;
10
+ owner: string;
11
+ default: {
12
+ lang: string;
13
+ locale: string;
14
+ dir: string;
15
+ };
16
+ search: {
17
+ fallbackUrl: 'https://www.google.com/search' | string;
18
+ fallbackSite: 'q' | string;
19
+ fallbackQuery: 'q' | string;
20
+ };
21
+ pageSize: number;
22
+ pageLinks: number;
23
+ rssLimit: number;
24
+ featureFlags: {
25
+ codeBlocks: 'copy'[];
26
+ figures: 'enlarge'[];
27
+ youTubeLinks: 'embed'[];
28
+ };
29
+ images: {
30
+ contentSize: string;
31
+ listerSize: string;
32
+ authorSize: string;
33
+ };
34
+ };
package/dist/Site.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -1,10 +1,7 @@
1
+ import type { Site } from './Site';
2
+ export type { Site } from './Site';
1
3
  type FrontMatter = Record<string, any>;
2
- type Site = {
3
- url: string;
4
- dateOptions: Intl.DateTimeFormatOptions;
5
- };
6
4
  export declare function formatDate(frontmatter: FrontMatter, lang: string, site: Site): string;
7
5
  export declare function formatModifiedDate(frontmatter: FrontMatter, lang: string, site: Site): string;
8
6
  export declare function addSlashToUrl(url: URL): URL;
9
7
  export declare function addSlashToAddress(address: string | undefined, site: Site): string;
10
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-accelerator-utils",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {