@codingame/monaco-vscode-editor-api 10.1.4 → 11.0.1

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.
@@ -53,7 +53,7 @@ function createWebWorker$1(modelService, opts) {
53
53
  class MonacoWebWorkerImpl extends EditorWorkerClient {
54
54
  constructor(modelService, opts) {
55
55
  const workerDescriptor = {
56
- amdModuleId: standaloneEditorWorkerDescriptor.amdModuleId,
56
+ moduleId: standaloneEditorWorkerDescriptor.moduleId,
57
57
  esmModuleLocation: standaloneEditorWorkerDescriptor.esmModuleLocation,
58
58
  label: opts.label,
59
59
  };
@@ -2307,7 +2307,7 @@ const Token = api.Token;
2307
2307
  const editor = api.editor;
2308
2308
  const languages = api.languages;
2309
2309
  const monacoEnvironment = globalThis.MonacoEnvironment;
2310
- if (monacoEnvironment?.globalAPI || (typeof define === 'function' && define.amd)) {
2310
+ if (monacoEnvironment?.globalAPI || (typeof globalThis.define === 'function' && (globalThis.define).amd)) {
2311
2311
  globalThis.monaco = api;
2312
2312
  }
2313
2313
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-editor-api",
3
- "version": "10.1.4",
3
+ "version": "11.0.1",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -47,6 +47,6 @@
47
47
  "module": "esm/vs/editor/editor.api.js",
48
48
  "types": "esm/vs/editor/editor.api.d.ts",
49
49
  "dependencies": {
50
- "vscode": "npm:@codingame/monaco-vscode-api@10.1.4"
50
+ "vscode": "npm:@codingame/monaco-vscode-api@11.0.1"
51
51
  }
52
52
  }