sveltekit-data-plugin 1.3.4 → 1.4.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
@@ -76,7 +76,10 @@
76
76
  return {
77
77
  attributes: {
78
78
  ...attributes,
79
- id: path.basename(obj)
79
+ _internal: {
80
+ id: path.basename(obj),
81
+ absolute: obj
82
+ }
80
83
  },
81
84
  body: data.body
82
85
  };
package/dist/plugin.mjs CHANGED
@@ -75,7 +75,10 @@ async function convert(opts, obj, { base, relative, depth = 1 } = {}) {
75
75
  return {
76
76
  attributes: {
77
77
  ...attributes,
78
- id: path.basename(obj)
78
+ _internal: {
79
+ id: path.basename(obj),
80
+ absolute: obj
81
+ }
79
82
  },
80
83
  body: data.body
81
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveltekit-data-plugin",
3
- "version": "1.3.4",
3
+ "version": "1.4.1",
4
4
  "author": {
5
5
  "name": "Jonny Thaw",
6
6
  "url": "https://jthaw.me"