@haroonwaves/blog-kit-core 0.0.4 → 0.0.6
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/index.cjs +4 -5
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -60,8 +60,7 @@ function extractBlog(content, slug) {
|
|
|
60
60
|
slug,
|
|
61
61
|
readingTime: readingTimeText
|
|
62
62
|
},
|
|
63
|
-
content: markdownContent
|
|
64
|
-
readingTime: readingTimeText
|
|
63
|
+
content: markdownContent
|
|
65
64
|
};
|
|
66
65
|
}
|
|
67
66
|
function getAllBlogsMeta(config) {
|
|
@@ -99,10 +98,10 @@ function getBlog(slug, config) {
|
|
|
99
98
|
return {
|
|
100
99
|
metadata: {
|
|
101
100
|
...data,
|
|
102
|
-
slug
|
|
101
|
+
slug,
|
|
102
|
+
readingTime: readingTimeText
|
|
103
103
|
},
|
|
104
|
-
content
|
|
105
|
-
readingTime: readingTimeText
|
|
104
|
+
content
|
|
106
105
|
};
|
|
107
106
|
}
|
|
108
107
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -21,8 +21,7 @@ function extractBlog(content, slug) {
|
|
|
21
21
|
slug,
|
|
22
22
|
readingTime: readingTimeText
|
|
23
23
|
},
|
|
24
|
-
content: markdownContent
|
|
25
|
-
readingTime: readingTimeText
|
|
24
|
+
content: markdownContent
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
27
|
function getAllBlogsMeta(config) {
|
|
@@ -60,10 +59,10 @@ function getBlog(slug, config) {
|
|
|
60
59
|
return {
|
|
61
60
|
metadata: {
|
|
62
61
|
...data,
|
|
63
|
-
slug
|
|
62
|
+
slug,
|
|
63
|
+
readingTime: readingTimeText
|
|
64
64
|
},
|
|
65
|
-
content
|
|
66
|
-
readingTime: readingTimeText
|
|
65
|
+
content
|
|
67
66
|
};
|
|
68
67
|
}
|
|
69
68
|
export {
|