New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-codemirror2

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-codemirror2 - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

8

index.js

@@ -217,3 +217,5 @@ "use strict";

this.emulating = true;
this.editor.setValue(value);
var lastLine = this.editor.lastLine();
var lastChar = this.editor.getLine(this.editor.lastLine()).length;
this.editor.replaceRange(value || '', { line: 0, ch: 0 }, { line: lastLine, ch: lastChar });
this.mirror.setValue(value);

@@ -393,3 +395,5 @@ this.editor.clearHistory();

if (!this.hydrated) {
this.editor.setValue(props.value || '');
var lastLine = this.editor.lastLine();
var lastChar = this.editor.getLine(this.editor.lastLine()).length;
this.editor.replaceRange(props.value || '', { line: 0, ch: 0 }, { line: lastLine, ch: lastChar });
}

@@ -396,0 +400,0 @@ this.hydrated = true;

{
"name": "react-codemirror2",
"version": "3.0.0",
"version": "3.0.1",
"description": "a tiny react codemirror component wrapper",

@@ -5,0 +5,0 @@ "main": "index.js",

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