monaco-sql-languages
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -7,5 +7,5 @@ { | ||
["@babel/plugin-proposal-decorators", { "legacy": true }], | ||
["@babel/plugin-proposal-class-properties", { "loose": true }], | ||
["@babel/plugin-proposal-private-methods", { "loose": true }] | ||
["@babel/plugin-proposal-class-properties", { "loose": false }], | ||
["@babel/plugin-proposal-private-methods", { "loose": false }] | ||
] | ||
} |
@@ -13,3 +13,3 @@ define(["require", "exports", "./_.contribution", "./fillers/monaco-editor-core"], function (require, exports, __contribution_1, monaco_editor_core_1) { | ||
var onModelAdd = function (model) { | ||
var modeId = model.getModeId(); | ||
var modeId = model.getLanguageId(); | ||
if (modeId !== _this._languageId) { | ||
@@ -40,3 +40,3 @@ return; | ||
monaco_editor_core_1.editor.getModels().forEach(function (model) { | ||
if (model.getModeId() === _this._languageId) { | ||
if (model.getLanguageId() === _this._languageId) { | ||
onModelRemoved(model); | ||
@@ -69,3 +69,3 @@ onModelAdd(model); | ||
var model = monaco_editor_core_1.editor.getModel(resource); | ||
if (model && model.getModeId() === languageId) { | ||
if (model && model.getLanguageId() === languageId) { | ||
monaco_editor_core_1.editor.setModelMarkers(model, languageId, markers); | ||
@@ -72,0 +72,0 @@ } |
@@ -10,3 +10,3 @@ import { debounce } from './_.contribution'; | ||
const onModelAdd = (model) => { | ||
let modeId = model.getModeId(); | ||
let modeId = model.getLanguageId(); | ||
if (modeId !== this._languageId) { | ||
@@ -37,3 +37,3 @@ return; | ||
editor.getModels().forEach((model) => { | ||
if (model.getModeId() === this._languageId) { | ||
if (model.getLanguageId() === this._languageId) { | ||
onModelRemoved(model); | ||
@@ -66,3 +66,3 @@ onModelAdd(model); | ||
let model = editor.getModel(resource); | ||
if (model && model.getModeId() === languageId) { | ||
if (model && model.getLanguageId() === languageId) { | ||
editor.setModelMarkers(model, languageId, markers); | ||
@@ -69,0 +69,0 @@ } |
{ | ||
"name": "monaco-sql-languages", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"description": "SQL languages for the Monaco Editor, based on monaco-languages.", | ||
@@ -14,3 +14,3 @@ "scripts": { | ||
"prod": "mrmdir ./docs && node --max_old_space_size=4092 & webpack --config ./scripts/webpack.prod.js", | ||
"gh-pages": "npm run prod && git push origin :gh-pages && git subtree push --prefix docs origin gh-pages" | ||
"deploy": "npm run prod && gh-pages -d docs" | ||
}, | ||
@@ -40,2 +40,3 @@ "author": "DTStack Corporation", | ||
"@babel/preset-typescript": "^7.12.16", | ||
"@dtinsight/molecule": "^0.9.0-beta.1", | ||
"@jcubic/lips": "^1.0.0-beta.14", | ||
@@ -51,2 +52,3 @@ "@types/tape": "^4.13.0", | ||
"file-loader": "^6.2.0", | ||
"gh-pages": "^3.2.3", | ||
"glob": "^7.1.6", | ||
@@ -56,5 +58,3 @@ "html-webpack-plugin": "^5.3.1", | ||
"jsdom": "^16.4.0", | ||
"molecule": "^0.9.0-alpha.5", | ||
"monaco-editor-core": "^0.25.1", | ||
"monaco-editor-webpack-plugin": "^3.1.0", | ||
"monaco-editor-webpack-plugin": "^6.0.0", | ||
"monaco-plugin-helpers": "^1.0.3", | ||
@@ -65,3 +65,2 @@ "prettier": "^2.2.1", | ||
"react-dom": "^16.14.0", | ||
"reflect-metadata": "^0.1.13", | ||
"requirejs": "^2.3.6", | ||
@@ -68,0 +67,0 @@ "sass": "^1.26.10", |
@@ -11,3 +11,3 @@ # Monaco SQL Languages [![NPM version][npm-image]][npm-url] [![NPM downloads][download-img]][download-url] | ||
Online preview: <https://dtstack.github.io/monaco-sql-languages/> | ||
Online Preview: <https://dtstack.github.io/monaco-sql-languages/> | ||
@@ -14,0 +14,0 @@ ## Supported SQL Languages |
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
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
654594
42
128