Comparing version 0.9.0-beta.0 to 0.9.0-beta.1
@@ -17,2 +17,3 @@ "use strict"; | ||
async function ready() { | ||
(0, _shiki.setWasm)(await fetch('https://esm.sh/vscode-oniguruma@1/release/onig.wasm')); | ||
highlighter = await (0, _shiki.getHighlighter)({ | ||
@@ -19,0 +20,0 @@ theme: 'github-dark' |
@@ -1,4 +0,5 @@ | ||
import { getHighlighter } from 'shiki'; | ||
import { getHighlighter, setWasm } from 'shiki'; | ||
let highlighter = null; | ||
export async function ready() { | ||
setWasm(await fetch('https://esm.sh/vscode-oniguruma@1/release/onig.wasm')); | ||
highlighter = await getHighlighter({ | ||
@@ -5,0 +6,0 @@ theme: 'github-dark' |
{ | ||
"name": "code-fns", | ||
"version": "0.9.0-beta.0", | ||
"version": "0.9.0-beta.1", | ||
"description": "A library for visualizing code.", | ||
@@ -56,3 +56,4 @@ "license": "MIT", | ||
"vite": "^3.0.7", | ||
"vitest": "^0.22.1" | ||
"vitest": "^0.22.1", | ||
"vitest-fetch-mock": "^0.2.1" | ||
}, | ||
@@ -59,0 +60,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38139
1090
18
2