Socket
Socket
Sign inDemoInstall

@codemirror/lint

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/lint - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## 6.1.1 (2023-02-15)
### Bug fixes
Give lint action buttons a pointer cursor style.
Fix a bug that caused diagnostic action callbacks to be called twice when their button was clicked.
## 6.1.0 (2022-11-15)

@@ -2,0 +10,0 @@

2

dist/index.d.ts

@@ -151,3 +151,3 @@ import * as _codemirror_state from '@codemirror/state';

calling `f` for each of them. Note that, if the document changed
since the diagnostics werecreated, the `Diagnostic` object will
since the diagnostics were created, the `Diagnostic` object will
hold the original outdated position, whereas the `to` and `from`

@@ -154,0 +154,0 @@ arguments hold the diagnostic's current position.

@@ -286,4 +286,7 @@ import { Decoration, showPanel, EditorView, ViewPlugin, logException, gutter, showTooltip, getPanel, WidgetType, hoverTooltip, GutterMarker } from '@codemirror/view';

return elt("li", { class: "cm-diagnostic cm-diagnostic-" + diagnostic.severity }, elt("span", { class: "cm-diagnosticText" }, diagnostic.renderMessage ? diagnostic.renderMessage() : diagnostic.message), (_a = diagnostic.actions) === null || _a === void 0 ? void 0 : _a.map((action, i) => {
let click = (e) => {
let fired = false, click = (e) => {
e.preventDefault();
if (fired)
return;
fired = true;
let found = findDiagnostic(view.state.field(lintState).diagnostics, diagnostic);

@@ -515,3 +518,4 @@ if (found)

borderRadius: "3px",
marginLeft: "8px"
marginLeft: "8px",
cursor: "pointer"
},

@@ -736,3 +740,3 @@ ".cm-diagnosticSource": {

calling `f` for each of them. Note that, if the document changed
since the diagnostics werecreated, the `Diagnostic` object will
since the diagnostics were created, the `Diagnostic` object will
hold the original outdated position, whereas the `to` and `from`

@@ -739,0 +743,0 @@ arguments hold the diagnostic's current position.

{
"name": "@codemirror/lint",
"version": "6.1.0",
"version": "6.1.1",
"description": "Linting support for the CodeMirror code editor",

@@ -15,3 +15,3 @@ "scripts": {

"name": "Marijn Haverbeke",
"email": "marijnh@gmail.com",
"email": "marijn@haverbeke.berlin",
"url": "http://marijnhaverbeke.nl"

@@ -18,0 +18,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc