sveltekit-data-plugin 1.3.2 → 1.3.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/plugin.js CHANGED
@@ -59,7 +59,7 @@
59
59
  if (typeof obj === "string" && /^\S*(.md)$/.test(obj) && depth === 1) {
60
60
  try {
61
61
  const markdownFile = path.resolve(base, obj);
62
- const relativeFolder = obj.replace(
62
+ const relativeFolder = markdownFile.replace(
63
63
  `/${path.basename(markdownFile)}`,
64
64
  ""
65
65
  );
package/dist/plugin.mjs CHANGED
@@ -58,7 +58,7 @@ async function convert(opts, obj, { base, relative, depth = 1 } = {}) {
58
58
  if (typeof obj === "string" && /^\S*(.md)$/.test(obj) && depth === 1) {
59
59
  try {
60
60
  const markdownFile = path.resolve(base, obj);
61
- const relativeFolder = obj.replace(
61
+ const relativeFolder = markdownFile.replace(
62
62
  `/${path.basename(markdownFile)}`,
63
63
  ""
64
64
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveltekit-data-plugin",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "author": {
5
5
  "name": "Jonny Thaw",
6
6
  "url": "https://jthaw.me"