bunki 0.13.0 → 0.13.1
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/cli.js +9 -1
- package/dist/index.js +9 -1
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33103,7 +33103,15 @@ async function parseMarkdownFile(filePath) {
|
|
|
33103
33103
|
slug,
|
|
33104
33104
|
url: `/${postYear}/${slug}/`,
|
|
33105
33105
|
excerpt: data.excerpt || extractExcerpt(content),
|
|
33106
|
-
html: sanitizedHtml
|
|
33106
|
+
html: sanitizedHtml,
|
|
33107
|
+
...data.location && {
|
|
33108
|
+
location: {
|
|
33109
|
+
name: data.location.name,
|
|
33110
|
+
address: data.location.address,
|
|
33111
|
+
lat: data.location.lat,
|
|
33112
|
+
lng: data.location.lng
|
|
33113
|
+
}
|
|
33114
|
+
}
|
|
33107
33115
|
};
|
|
33108
33116
|
return { post, error: null };
|
|
33109
33117
|
} catch (error) {
|
package/dist/index.js
CHANGED
|
@@ -30721,7 +30721,15 @@ async function parseMarkdownFile(filePath) {
|
|
|
30721
30721
|
slug,
|
|
30722
30722
|
url: `/${postYear}/${slug}/`,
|
|
30723
30723
|
excerpt: data.excerpt || extractExcerpt(content),
|
|
30724
|
-
html: sanitizedHtml
|
|
30724
|
+
html: sanitizedHtml,
|
|
30725
|
+
...data.location && {
|
|
30726
|
+
location: {
|
|
30727
|
+
name: data.location.name,
|
|
30728
|
+
address: data.location.address,
|
|
30729
|
+
lat: data.location.lat,
|
|
30730
|
+
lng: data.location.lng
|
|
30731
|
+
}
|
|
30732
|
+
}
|
|
30725
30733
|
};
|
|
30726
30734
|
return { post, error: null };
|
|
30727
30735
|
} catch (error) {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Post object representing a single markdown file
|
|
3
3
|
*/
|
|
4
|
+
export interface Location {
|
|
5
|
+
/** Name of the location */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Full address of the location */
|
|
8
|
+
address: string;
|
|
9
|
+
/** Latitude coordinate */
|
|
10
|
+
lat: number;
|
|
11
|
+
/** Longitude coordinate */
|
|
12
|
+
lng: number;
|
|
13
|
+
}
|
|
4
14
|
export interface Post {
|
|
5
15
|
/** Title of the post */
|
|
6
16
|
title: string;
|
|
@@ -20,6 +30,8 @@ export interface Post {
|
|
|
20
30
|
excerpt: string;
|
|
21
31
|
/** Rendered HTML content */
|
|
22
32
|
html: string;
|
|
33
|
+
/** Optional location data for map display */
|
|
34
|
+
location?: Location;
|
|
23
35
|
}
|
|
24
36
|
/**
|
|
25
37
|
* Configuration for CSS processing
|
package/package.json
CHANGED