@haroonwaves/blog-kit-core 0.0.5 → 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 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
@@ -9,7 +9,6 @@ interface BlogMeta {
9
9
  interface Blog {
10
10
  metadata: BlogMeta;
11
11
  content: string;
12
- readingTime: string;
13
12
  }
14
13
  interface BlogConfig {
15
14
  contentDirectory: string;
package/dist/index.d.ts CHANGED
@@ -9,7 +9,6 @@ interface BlogMeta {
9
9
  interface Blog {
10
10
  metadata: BlogMeta;
11
11
  content: string;
12
- readingTime: string;
13
12
  }
14
13
  interface BlogConfig {
15
14
  contentDirectory: string;
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haroonwaves/blog-kit-core",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",