@slidev/client 0.36.11 → 0.37.0

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
- // @ts-expect-error missing types
1
+ /* eslint-disable import/default */
2
2
  import mermaid from 'mermaid/dist/mermaid'
3
3
  import { customAlphabet } from 'nanoid'
4
4
  import { decode } from 'js-base64'
@@ -24,7 +24,8 @@ export function renderMermaid(encoded: string, options: any) {
24
24
  })
25
25
  const code = decode(encoded)
26
26
  const id = nanoid()
27
- const svg = mermaid.render(id, code)
27
+ // @ts-expect-error type mistake
28
+ const svg = mermaid.render(id, code) as string
28
29
  cache.set(key, svg)
29
30
  return svg
30
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/client",
3
- "version": "0.36.11",
3
+ "version": "0.37.0",
4
4
  "description": "Presentation slides for developers",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@antfu/utils": "^0.6.3",
19
- "@slidev/parser": "0.36.11",
20
- "@slidev/types": "0.36.11",
19
+ "@slidev/parser": "0.37.0",
20
+ "@slidev/types": "0.37.0",
21
21
  "@unocss/reset": "^0.46.3",
22
22
  "@vueuse/core": "^9.5.0",
23
23
  "@vueuse/head": "^0.9.8",