contain-css-svelte 0.0.9 → 0.0.10

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.
@@ -1,4 +1,4 @@
1
- <script>import { browser } from '$app/environment';
1
+ <script>const browser = typeof window !== "undefined";
2
2
  export let code;
3
3
  export let inline = false;
4
4
  export let language = "html";
@@ -11,7 +11,7 @@ if (browser) {
11
11
  </script>
12
12
 
13
13
  {#if browser && component}
14
- <svelte:component this={component} {language} {code} />
14
+ <svelte:component this={component} {language} {code} {inline}/>
15
15
  {/if}
16
16
 
17
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contain-css-svelte",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build-css": "postcss src/lib/vars/defaults.css -o dist/vars/defaults.css",