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 0.20.2 to 0.20.3

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 0.20.3 (2022-05-25)
### New features
Diagnostic objects may now have a `renderMessage` method to render their message to the DOM.
## 0.20.2 (2022-05-02)

@@ -2,0 +8,0 @@

@@ -34,2 +34,7 @@ import * as _codemirror_state from '@codemirror/state';

/**
An optional custom rendering function that displays the message
as a DOM node.
*/
renderMessage?: () => Node;
/**
An optional array of actions that can be taken on this

@@ -36,0 +41,0 @@ diagnostic.

2

dist/index.js

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

let keys = inPanel ? assignKeys(diagnostic.actions) : [];
return elt("li", { class: "cm-diagnostic cm-diagnostic-" + diagnostic.severity }, elt("span", { class: "cm-diagnosticText" }, diagnostic.message), (_a = diagnostic.actions) === null || _a === void 0 ? void 0 : _a.map((action, i) => {
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) => {

@@ -288,0 +288,0 @@ e.preventDefault();

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

@@ -5,0 +5,0 @@ "scripts": {

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