@riebeckite/plugin-daily-notes 0.0.27 → 0.0.28

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.
@@ -5,6 +5,7 @@ import { useSiteContext } from "@riebeckite/ui";
5
5
  import { resolvePlugins } from "@riebeckite/core";
6
6
 
7
7
  // src/daily-notes.ts
8
+ import { escapeRegExp } from "@riebeckite/core";
8
9
  var DAILY_NOTES_PLUGIN_NAME = "daily-notes";
9
10
  var DEFAULT_DIRECTORY = "Daily";
10
11
  var DEFAULT_FRONTMATTER_KEY = "daily-summary";
@@ -74,9 +75,6 @@ function placeholderSource(token) {
74
75
  if (token === "MM" || token === "DD") return "\\d{2}";
75
76
  return "[^/]+";
76
77
  }
77
- function escapeRegExp(value) {
78
- return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
79
- }
80
78
  function extractDailyNoteSnippet(entry, extract) {
81
79
  if (extract.frontmatter !== false) {
82
80
  const value = entry.frontmatter[extract.frontmatter];
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  } from "@riebeckite/core";
6
6
 
7
7
  // src/daily-notes.ts
8
+ import { escapeRegExp } from "@riebeckite/core";
8
9
  var DAILY_NOTES_PLUGIN_NAME = "daily-notes";
9
10
  var DEFAULT_DIRECTORY = "Daily";
10
11
  var DEFAULT_FRONTMATTER_KEY = "daily-summary";
@@ -74,9 +75,6 @@ function placeholderSource(token) {
74
75
  if (token === "MM" || token === "DD") return "\\d{2}";
75
76
  return "[^/]+";
76
77
  }
77
- function escapeRegExp(value) {
78
- return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
79
- }
80
78
  function extractDailyNoteSnippet(entry, extract) {
81
79
  if (extract.frontmatter !== false) {
82
80
  const value = entry.frontmatter[extract.frontmatter];
@@ -1,4 +1,4 @@
1
- import type { ContentManifestEntry } from "@riebeckite/core";
1
+ import { type ContentManifestEntry } from "@riebeckite/core";
2
2
  export type DailyNote = {
3
3
  date: string;
4
4
  dateDisplay: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-daily-notes",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "hono": "^4.12.25",
25
- "@riebeckite/core": "0.0.27",
26
- "@riebeckite/ui": "0.0.27"
25
+ "@riebeckite/core": "0.0.28",
26
+ "@riebeckite/ui": "0.0.28"
27
27
  },
28
28
  "devDependencies": {
29
29
  "tsx": "^4.22.4"