monaco-sql-languages
Advanced tools
Comparing version 0.12.3-beta.4 to 0.12.3-beta.5
@@ -291,7 +291,6 @@ /*--------------------------------------------------------------------------------------------- | ||
'CEILING', | ||
'FLOOR', | ||
'SIN', | ||
'SINH', | ||
'SQRT', | ||
'COS', | ||
'MOD', | ||
'TAN', | ||
@@ -336,3 +335,2 @@ 'TANH', | ||
'LPAD', | ||
'RIGHT', | ||
'RPAD', | ||
@@ -346,3 +344,2 @@ 'FROM_BASE64', | ||
'INSTR', | ||
'LEFT', | ||
'LOCATE', | ||
@@ -380,6 +377,4 @@ 'PARSE_URL', | ||
'CURRENT_WATERMARK', | ||
'OVERLAPS', | ||
// Conditional Functions | ||
'COALESCE', | ||
'GREATEST', | ||
'IF', | ||
@@ -390,4 +385,4 @@ 'IFNULL', | ||
'IS_DIGIT', | ||
'GREATEST', | ||
'LEAST', | ||
'NULLIF', | ||
// Type Conversion Functions | ||
@@ -400,8 +395,3 @@ 'CAST', | ||
'ELEMENT', | ||
'array', | ||
'map', | ||
'ARRAY_CONTAINS', | ||
// comparison function | ||
'EXISTS', | ||
'IN', | ||
// JSON Functions | ||
@@ -419,7 +409,5 @@ 'JSON_EXISTS', | ||
'GROUPING', | ||
'GROUPING_ID', | ||
// Hash Functions | ||
'MD5', | ||
'SHA1', | ||
'SHA2', | ||
'SHA224', | ||
@@ -429,2 +417,3 @@ 'SHA256', | ||
'SHA512', | ||
'SHA2', | ||
// Aggregate Functions | ||
@@ -477,2 +466,3 @@ 'COUNT', | ||
'TIMESTAMP_LTZ', | ||
'INTERVAL', | ||
'ARRAY', | ||
@@ -485,3 +475,2 @@ 'MULTISET', | ||
'NUMERIC', | ||
'INT', | ||
'INTERVAL' | ||
@@ -503,3 +492,2 @@ ], | ||
{ include: '@complexDataTypes' }, | ||
{ include: '@complexFunctions' }, | ||
[/[;,.]/, TokenClassConsts.DELIMITER], | ||
@@ -572,5 +560,4 @@ [/[\(\)\[\]\{\}]/, '@brackets'], | ||
[/WITH\s+LOCAL\s+TIME\s+ZONE\b/i, { token: TokenClassConsts.TYPE }] | ||
], | ||
complexFunctions: [[/NOT\s+IN\b/i, { token: TokenClassConsts.PREDEFINED }]] | ||
] | ||
} | ||
}; |
{ | ||
"name": "monaco-sql-languages", | ||
"version": "0.12.3-beta.4", | ||
"version": "0.12.3-beta.5", | ||
"description": "SQL languages for the Monaco Editor, based on monaco-languages.", | ||
@@ -13,3 +13,3 @@ "scripts": { | ||
"prod": "rm -rf ./docs && node --max_old_space_size=4092 & cd website && npm run build", | ||
"deploy": "npm run prod && gh-pages -d docs -r git@github.com:DTStack/monaco-sql-languages.git", | ||
"deploy": "npm run build && npm run prod && gh-pages -d docs -r git@github.com:liuxy0551/monaco-sql-languages.git", | ||
"format": "prettier --write .", | ||
@@ -71,3 +71,3 @@ "prettier-check": "prettier --check .", | ||
"dependencies": { | ||
"dt-sql-parser": "4.0.2" | ||
"dt-sql-parser": "4.1.0-beta.3" | ||
}, | ||
@@ -74,0 +74,0 @@ "peerDependencies": { |
@@ -103,3 +103,3 @@ # Monaco SQL Languages | ||
ICompletionItem, | ||
SyntaxContextType | ||
EntityContextType | ||
} from 'monaco-sql-languages'; | ||
@@ -129,7 +129,7 @@ | ||
syntax.forEach((item) => { | ||
if (item.syntaxContextType === SyntaxContextType.DATABASE) { | ||
if (item.syntaxContextType === EntityContextType.DATABASE) { | ||
const databaseCompletions: ICompletionItem[] = []; // some completions about databaseName | ||
syntaxCompletionItems = [...syntaxCompletionItems, ...databaseCompletions]; | ||
} | ||
if (item.syntaxContextType === SyntaxContextType.TABLE) { | ||
if (item.syntaxContextType === EntityContextType.TABLE) { | ||
const tableCompletions: ICompletionItem[] = []; // some completions about tableName | ||
@@ -136,0 +136,0 @@ syntaxCompletionItems = [...syntaxCompletionItems, ...tableCompletions]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
265348
8232
1
+ Addeddt-sql-parser@4.1.0-beta.3(transitive)
- Removeddt-sql-parser@4.0.2(transitive)
Updateddt-sql-parser@4.1.0-beta.3