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
2
Versions
164
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 2.0.0-canary-62c152f to 2.0.0-canary-64da99d

1

dist/CypherEditor.d.ts

@@ -159,2 +159,3 @@ import { EditorState, Extension } from '@codemirror/state';

private schemaRef;
private latestDispatchedValue;
/**

@@ -161,0 +162,0 @@ * Focus the editor

10

dist/CypherEditor.js

@@ -88,2 +88,3 @@ import { jsx as _jsx } from "react/jsx-runtime";

schemaRef = createRef();
latestDispatchedValue;
/**

@@ -132,3 +133,6 @@ * Focus the editor

debouncedOnChange = this.props.onChange
? debounce(this.props.onChange, 200)
? debounce(((value, viewUpdate) => {
this.latestDispatchedValue = value;
this.props.onChange(value, viewUpdate);
}), 200)
: undefined;

@@ -213,3 +217,5 @@ componentDidMount() {

const currentCmValue = this.editorView.current.state?.doc.toString() ?? '';
if (this.props.value !== undefined && currentCmValue !== this.props.value) {
if (this.props.value !== undefined &&
this.props.value !== this.latestDispatchedValue) {
this.debouncedOnChange?.cancel();
this.editorView.current.dispatch({

@@ -216,0 +222,0 @@ changes: {

@@ -20,3 +20,3 @@ {

],
"version": "2.0.0-canary-62c152f",
"version": "2.0.0-canary-64da99d",
"main": "./dist/index.js",

@@ -55,3 +55,3 @@ "types": "./dist/index.d.ts",

"@lezer/highlight": "^1.1.3",
"@neo4j-cypher/language-support": "2.0.0-canary-62c152f",
"@neo4j-cypher/language-support": "2.0.0-canary-64da99d",
"@types/prismjs": "^1.26.3",

@@ -58,0 +58,0 @@ "@types/workerpool": "^6.4.7",

Sorry, the diff of this file is not supported yet

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