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

@neo4j-cypher/react-codemirror

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j-cypher/react-codemirror - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

es/CypherEditor.js

@@ -66,2 +66,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";

});
_defineProperty(this, "keyUp", event => {
const {
onKeyUp
} = this.props;
onKeyUp && onKeyUp(event);
});
this.state = {

@@ -155,2 +161,3 @@ focused: false

this.cypherEditor.onKeyDown(this.keyDown);
this.cypherEditor.onKeyUp(this.keyUp);
onEditorCreated && onEditorCreated(this.cypherEditor);

@@ -168,2 +175,3 @@ }

this.cypherEditor.offKeyDown(this.keyDown);
this.cypherEditor.offKeyUp(this.keyUp);
this.cypherEditor.destroy();

@@ -170,0 +178,0 @@ }

@@ -75,2 +75,8 @@ "use strict";

});
(0, _defineProperty2.default)(this, "keyUp", event => {
const {
onKeyUp
} = this.props;
onKeyUp && onKeyUp(event);
});
this.state = {

@@ -164,2 +170,3 @@ focused: false

this.cypherEditor.onKeyDown(this.keyDown);
this.cypherEditor.onKeyUp(this.keyUp);
onEditorCreated && onEditorCreated(this.cypherEditor);

@@ -177,2 +184,3 @@ }

this.cypherEditor.offKeyDown(this.keyDown);
this.cypherEditor.offKeyUp(this.keyUp);
this.cypherEditor.destroy();

@@ -179,0 +187,0 @@ }

4

package.json

@@ -10,3 +10,3 @@ {

],
"version": "1.0.0",
"version": "1.0.1",
"author": "Neo4j Inc.",

@@ -54,3 +54,3 @@ "license": "Apache-2.0",

"@babel/runtime": "^7.20.13",
"@neo4j-cypher/codemirror": "1.0.0"
"@neo4j-cypher/codemirror": "1.0.1"
},

@@ -57,0 +57,0 @@ "peerDependencies": {

@@ -15,3 +15,3 @@ import * as React from "react";

ValueChangedListener,
KeyDownListener,
KeyListener,
LineNumberClickListener,

@@ -269,5 +269,9 @@ LineNumberFormatter

/**
* A listener for when the user presses a key down in the editor
* A listener for when the user performs a key down in the editor
*/
onKeyDown?: KeyDownListener;
onKeyDown?: KeyListener;
/**
* A listener for when the user performs a key up in the editor
*/
onKeyUp?: KeyListener;

@@ -274,0 +278,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