sveltekit-data-plugin 1.3.0 → 1.3.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/plugin.js CHANGED
@@ -122,7 +122,7 @@
122
122
  if (/\.(md)$/.test(id)) {
123
123
  const base2 = path.resolve(((_a = opts.vite_config) == null ? void 0 : _a.root) ?? "", opts.base);
124
124
  const d = fm(src);
125
- const attributes = await convert(opts, d.attributes, base2);
125
+ const attributes = await convert(opts, d.attributes, { base: base2 });
126
126
  return `
127
127
  ${Object.entries(attributes).map(([key, value]) => `export const ${key} = ${JSON.stringify(value)};`).join("\n")}
128
128
  export const body = ${JSON.stringify(d.body)};`;
package/dist/plugin.mjs CHANGED
@@ -121,7 +121,7 @@ function importDataPlugin(imagetools_plugin, { base = "./src/data" } = {}) {
121
121
  if (/\.(md)$/.test(id)) {
122
122
  const base2 = path.resolve(((_a = opts.vite_config) == null ? void 0 : _a.root) ?? "", opts.base);
123
123
  const d = fm(src);
124
- const attributes = await convert(opts, d.attributes, base2);
124
+ const attributes = await convert(opts, d.attributes, { base: base2 });
125
125
  return `
126
126
  ${Object.entries(attributes).map(([key, value]) => `export const ${key} = ${JSON.stringify(value)};`).join("\n")}
127
127
  export const body = ${JSON.stringify(d.body)};`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveltekit-data-plugin",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "author": {
5
5
  "name": "Jonny Thaw",
6
6
  "url": "https://jthaw.me"