Socket
Socket
Sign inDemoInstall

@uiw/react-codemirror

Package Overview
Dependencies
Maintainers
1
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-codemirror - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

7

lib/CodeMirror.js

@@ -69,2 +69,7 @@ 'use strict';

value: function componentDidMount() {
this.renderCodeMirror();
}
}, {
key: 'renderCodeMirror',
value: function renderCodeMirror() {
var _this2 = this;

@@ -123,3 +128,3 @@

(0, _keys2.default)(options).forEach(function (name) {
if ((0, _stringify2.default)(_this3.props.options[name]) !== (0, _stringify2.default)(options[name])) {
if (options[name] && (0, _stringify2.default)(options[name])) {
_this3.editor.setOption(name, options[name]);

@@ -126,0 +131,0 @@ }

5

lib/index.js

@@ -143,7 +143,8 @@ 'use strict';

case 3:
this.setState({
_context2.next = 5;
return this.setState({
codeMirrorOptions: (0, _extends3.default)({}, this.state.codeMirrorOptions, nextPros.options)
});
case 4:
case 5:
case 'end':

@@ -150,0 +151,0 @@ return _context2.stop();

{
"name": "@uiw/react-codemirror",
"version": "1.0.11",
"version": "1.0.12",
"description": "CodeMirror component for React.",

@@ -34,5 +34,8 @@ "main": "lib/index.js",

"devDependencies": {
"classnames": "^2.2.6",
"gh-pages": "^1.2.0",
"kkt": "1.9.x"
"highlight.js": "^9.12.0",
"kkt": "1.9.x",
"react-markdown": "^3.3.4"
}
}

@@ -10,3 +10,3 @@ react-codemirror

🌱 Load `mode` based on configuration.
🌱 Automatically load `mode` files based on configuration.
🚀 Quickly and easily configure the API.

@@ -13,0 +13,0 @@

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