@kusto/monaco-kusto 12.0.2 → 12.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.2(ba4a7496a706f790046400993d1050040ea93494)
3
+ * monaco-kusto version: 12.0.4(d2b0b92cc089b35f33fd16e2da422c4ffc972e0c)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/kustoMode', ['exports', 'vs/editor/editor.main', './main-de9bc066', './types-8a990554'], (function (exports, monaco, main, types$1) { 'use strict';
8
+ define('vs/language/kusto/kustoMode', ['exports', 'vs/editor/editor.main', './main-8ccfbe97', './types-fa2666d1'], (function (exports, monaco, main, types$1) { 'use strict';
9
9
 
10
10
  function _interopNamespaceDefault(e) {
11
11
  var n = Object.create(null);
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.2(ba4a7496a706f790046400993d1050040ea93494)
3
+ * monaco-kusto version: 12.0.4(d2b0b92cc089b35f33fd16e2da422c4ffc972e0c)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/kustoWorker', ['exports', './main-de9bc066', './schema-ea01b133'], (function (exports, main, schema) { 'use strict';
8
+ define('vs/language/kusto/kustoWorker', ['exports', './main-8ccfbe97', './schema-1cdad6c3'], (function (exports, main, schema) { 'use strict';
9
9
 
10
10
  function _slicedToArray$2(r, e) { return _arrayWithHoles$2(r) || _iterableToArrayLimit$2(r, e) || _unsupportedIterableToArray$3(r, e) || _nonIterableRest$2(); }
11
11
  function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.2(ba4a7496a706f790046400993d1050040ea93494)
3
+ * monaco-kusto version: 12.0.4(d2b0b92cc089b35f33fd16e2da422c4ffc972e0c)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/main-de9bc066', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/main-8ccfbe97', ['exports'], (function (exports) { 'use strict';
9
9
 
10
10
  /* --------------------------------------------------------------------------------------------
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.2(ba4a7496a706f790046400993d1050040ea93494)
3
+ * monaco-kusto version: 12.0.4(d2b0b92cc089b35f33fd16e2da422c4ffc972e0c)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/editor/editor.main', './types-8a990554', './schema-ea01b133'], (function (require, exports, monaco, types, schema) { 'use strict';
8
+ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/editor/editor.main', './types-fa2666d1', './schema-1cdad6c3'], (function (require, exports, monaco, types, schema) { 'use strict';
9
9
 
10
10
  function _interopNamespaceDefault(e) {
11
11
  var n = Object.create(null);
@@ -404,8 +404,6 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
404
404
  }
405
405
 
406
406
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
407
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
408
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
409
407
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
410
408
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
411
409
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
@@ -549,11 +547,16 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
549
547
  function isStandaloneCodeEditor(editor) {
550
548
  return editor.addAction !== undefined;
551
549
  }
552
- var globalApi = _objectSpread(_objectSpread({}, schema.schema), {}, {
550
+ var globalApi = {
551
+ getCslTypeNameFromClrType: schema.getCslTypeNameFromClrType,
552
+ getCallName: schema.getCallName,
553
+ getExpression: schema.getExpression,
554
+ getInputParametersAsCslString: schema.getInputParametersAsCslString,
555
+ getEntityDataTypeFromCslType: schema.getEntityDataTypeFromCslType,
553
556
  kustoDefaults: kustoDefaults,
554
557
  getKustoWorker: getKustoWorker,
555
558
  getRangeHtml: getRangeHtml
556
- });
559
+ };
557
560
  monaco__namespace.languages.kusto = globalApi;
558
561
 
559
562
  exports.getCallName = schema.getCallName;
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.2(ba4a7496a706f790046400993d1050040ea93494)
3
+ * monaco-kusto version: 12.0.4(d2b0b92cc089b35f33fd16e2da422c4ffc972e0c)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/schema-ea01b133', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/schema-1cdad6c3', ['exports'], (function (exports) { 'use strict';
9
9
 
10
10
  // Definition of schema object in the context of language services. This model is exposed to consumers of this library.
11
11
 
@@ -99,22 +99,11 @@ define('vs/language/kusto/schema-ea01b133', ['exports'], (function (exports) { '
99
99
  */
100
100
  var showSchema;
101
101
 
102
- var schema = /*#__PURE__*/Object.freeze({
103
- __proto__: null,
104
- getCallName: getCallName,
105
- getCslTypeNameFromClrType: getCslTypeNameFromClrType,
106
- getEntityDataTypeFromCslType: getEntityDataTypeFromCslType,
107
- getExpression: getExpression,
108
- getInputParametersAsCslString: getInputParametersAsCslString,
109
- showSchema: showSchema
110
- });
111
-
112
102
  exports.getCallName = getCallName;
113
103
  exports.getCslTypeNameFromClrType = getCslTypeNameFromClrType;
114
104
  exports.getEntityDataTypeFromCslType = getEntityDataTypeFromCslType;
115
105
  exports.getExpression = getExpression;
116
106
  exports.getInputParametersAsCslString = getInputParametersAsCslString;
117
- exports.schema = schema;
118
107
  exports.showSchema = showSchema;
119
108
 
120
109
  }));
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.2(ba4a7496a706f790046400993d1050040ea93494)
3
+ * monaco-kusto version: 12.0.4(d2b0b92cc089b35f33fd16e2da422c4ffc972e0c)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/types-8a990554', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/types-fa2666d1', ['exports'], (function (exports) { 'use strict';
9
9
 
10
10
  var LANGUAGE_ID = 'kusto';
11
11
 
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.2(ba4a7496a706f790046400993d1050040ea93494)
3
+ * monaco-kusto version: 12.0.4(d2b0b92cc089b35f33fd16e2da422c4ffc972e0c)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.2(ba4a7496a706f790046400993d1050040ea93494)
3
+ * monaco-kusto version: 12.0.4(d2b0b92cc089b35f33fd16e2da422c4ffc972e0c)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
@@ -8,7 +8,7 @@
8
8
  import * as worker from 'monaco-editor/esm/vs/editor/editor.worker';
9
9
  import * as ls from 'vscode-languageserver-types';
10
10
  import XRegExp from 'xregexp';
11
- import { a as getEntityDataTypeFromCslType, b as getCallName, c as getExpression, g as getCslTypeNameFromClrType } from './schema-a96574e6.js';
11
+ import { d as getEntityDataTypeFromCslType, a as getCallName, b as getExpression, g as getCslTypeNameFromClrType } from './schema-0da4a784.js';
12
12
  import '@kusto/language-service/bridge.min';
13
13
  import '@kusto/language-service/Kusto.JavaScript.Client.min';
14
14
  import '@kusto/language-service/newtonsoft.json.min';
@@ -1219,15 +1219,15 @@ class KustoLanguageService {
1219
1219
  * Here it gets converted to the bridge.Net schema
1220
1220
  * @param schema Language Service schema
1221
1221
  */
1222
- static convertToKustoJsSchema(schema$1) {
1223
- switch (schema$1.clusterType) {
1222
+ static convertToKustoJsSchema(schema) {
1223
+ switch (schema.clusterType) {
1224
1224
  case 'Engine':
1225
- const currentDatabaseName = schema$1.database ? schema$1.database.name : undefined;
1225
+ const currentDatabaseName = schema.database ? schema.database.name : undefined;
1226
1226
  const kCluster = new k.KustoIntelliSenseClusterEntity();
1227
1227
  let kDatabaseInContext = undefined;
1228
- kCluster.ConnectionString = schema$1.cluster.connectionString;
1228
+ kCluster.ConnectionString = schema.cluster.connectionString;
1229
1229
  const databases = [];
1230
- schema$1.cluster.databases.forEach(database => {
1230
+ schema.cluster.databases.forEach(database => {
1231
1231
  const kDatabase = new k.KustoIntelliSenseDatabaseEntity();
1232
1232
  kDatabase.Name = database.name;
1233
1233
  const tables = [];
@@ -1260,17 +1260,17 @@ class KustoLanguageService {
1260
1260
  const kSchema = new k.KustoIntelliSenseQuerySchema(kCluster, kDatabaseInContext);
1261
1261
  return kSchema;
1262
1262
  case 'ClusterManager':
1263
- const accounts = schema$1.accounts.map(account => {
1263
+ const accounts = schema.accounts.map(account => {
1264
1264
  const kAccount = new k.KustoIntelliSenseAccountEntity();
1265
1265
  kAccount.Name = account;
1266
1266
  return kAccount;
1267
1267
  });
1268
- const services = schema$1.services.map(service => {
1268
+ const services = schema.services.map(service => {
1269
1269
  const kService = new k.KustoIntelliSenseServiceEntity();
1270
1270
  kService.Name = service;
1271
1271
  return kService;
1272
1272
  });
1273
- const connectionString = schema$1.connectionString;
1273
+ const connectionString = schema.connectionString;
1274
1274
  const result = {
1275
1275
  accounts,
1276
1276
  services,
@@ -1280,7 +1280,7 @@ class KustoLanguageService {
1280
1280
  case 'DataManagement':
1281
1281
  return undefined;
1282
1282
  default:
1283
- return assertNever(schema$1);
1283
+ return assertNever(schema);
1284
1284
  }
1285
1285
  }
1286
1286