inertiax-svelte 2.1.2 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inertiax-svelte",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "license": "MIT",
5
5
  "description": "The Svelte adapter for Inertia.js",
6
6
  "contributors": [
@@ -31,5 +31,8 @@
31
31
  "dependencies": {
32
32
  "lodash.clonedeep": "^4.5.0",
33
33
  "lodash.isequal": "^4.5.0"
34
+ },
35
+ "devDependencies": {
36
+ "html-escape": "^2.0.0"
34
37
  }
35
38
  }
@@ -21,7 +21,7 @@ export default async function createInertiaApp({ id = 'app', resolve, setup, pro
21
21
  const { html, head } = render(App)
22
22
 
23
23
  return {
24
- body: `<div data-server-rendered="true" data-page="${escape(JSON.stringify(initialPage))}">${html}</div>`,
24
+ body: `<div data-server-rendered="true" id="${id}" data-page="${escape(JSON.stringify(initialPage))}">${html}</div>`,
25
25
  head: [
26
26
  head
27
27
  ],