@neocodemirror/svelte
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -126,4 +126,4 @@ import { defaultKeymap, indentWithTab } from '@codemirror/commands'; | ||
diagnosticsModule = await import('@codemirror/lint'); | ||
const tr = diagnosticsModule.setDiagnostics(editor.state, diagnostics ?? []); | ||
editor.dispatch(tr); | ||
const tr = diagnosticsModule.setDiagnosticsEffect.of(diagnostics ?? []); | ||
editor.dispatch({ effects: tr }); | ||
} | ||
@@ -130,0 +130,0 @@ async function make_extensions(lang, langMap, setup, useTabs = false, tabSize = 2, theme, styles, extensions) { |
@@ -126,4 +126,4 @@ import { defaultKeymap, indentWithTab } from '@codemirror/commands'; | ||
diagnosticsModule = await import('@codemirror/lint'); | ||
const tr = diagnosticsModule.setDiagnostics(editor.state, diagnostics ?? []); | ||
editor.dispatch(tr); | ||
const tr = diagnosticsModule.setDiagnosticsEffect.of(diagnostics ?? []); | ||
editor.dispatch({ effects: tr }); | ||
} | ||
@@ -130,0 +130,0 @@ async function make_extensions(lang, langMap, setup, useTabs = false, tabSize = 2, theme, styles, extensions) { |
{ | ||
"name": "@neocodemirror/svelte", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Svelte Action to add codemirro to your apps 😉", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
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
17645