Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mycodemirror

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mycodemirror - npm Package Compare versions

Comparing version 5.19.4 to 5.19.5

7

addon/hint/sql-hint.js

@@ -289,6 +289,5 @@ // CodeMirror, copyright (c) by Marijn Haverbeke and others

var val = editor.getValue();
var len = cur.ch - search.length - 6;
len < 0 && (len = 0);
var frontKey = val.substr(len, 6).toUpperCase();
if (frontKey == ' FROM ' && cur.ch > 6 || cur.ch >=5 && frontKey.substr(0, 5) == 'FROM ' || frontKey == ' JOIN ' && cur.ch > 6 || cur.ch >= 5&& frontKey.substr(0, 5) == 'JOIN ') {
var frontKey = val.slice(val.length - search.length - 6 ,val.length - search.length).toUpperCase();
var frontKey1 = val.slice(val.length - search.length - 5 ,val.length - search.length).toUpperCase();
if ( frontKey == ' FROM '|| (cur.ch - search.length ===5 )&&frontKey1 == 'FROM '|| frontKey == '\nFROM ' || frontKey == '\rFROM ' || frontKey == ' JOIN '|| (cur.ch - search.length ===5 )&& frontKey1 == 'JOIN '|| frontKey == '\rJOIN ' || frontKey == '\nJOIN ') {
addMatches(result, search, table, function (w) {

@@ -295,0 +294,0 @@ return w;

{
"name": "mycodemirror",
"version": "5.19.4",
"version": "5.19.5",
"main": "lib/codemirror.js",

@@ -5,0 +5,0 @@ "description": "Full-featured in-browser code editor",

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