Socket
Socket
Sign inDemoInstall

codemirror-mongodb

Package Overview
Dependencies
5
Maintainers
26
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.0 to 0.8.0

17

addon/hint/show-hint.js

@@ -12,2 +12,16 @@ /**

const VALUES = 'values';
const VALUE_MAPPINGS = {
'BSONDate': "BSONDate('",
'Binary': "Binary('",
'MaxKey': 'MaxKey()',
'MinKey': 'MinKey()',
'NumberDecimal': "NumberDecimal('",
'NumberLong': 'NumberLong(',
'ObjectId': "ObjectId('",
'RegExp': "RegExp('",
'Timestamp': 'Timestamp('
};
// This is the old interface, kept around for now to stay

@@ -203,2 +217,5 @@ // backwards-compatible.

}
if (completion.type === VALUES) {
return VALUE_MAPPINGS[completion.text] || completion.text;
}
return completion.text;

@@ -205,0 +222,0 @@ }

2

lib/index.js

@@ -290,3 +290,3 @@ /* eslint complexity: 0 */

const matches = [ COLON, OPEN_BRACKET ];
return nextToken.string !== OPEN_BRACKET &&
return (!nextToken || nextToken.string !== OPEN_BRACKET) &&
token.string !== CLOSE_BRACKET &&

@@ -293,0 +293,0 @@ (isPrevTokenMatching(matches) || isSkipPrevTokenMatching(matches));

{
"name": "codemirror-mongodb",
"description": "Use CodeMirror with MongoDB.",
"version": "0.7.0",
"version": "0.8.0",
"scripts": {

@@ -6,0 +6,0 @@ "start": "gulp",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc