vzcode 0.55.0 → 0.56.0

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.
package/dist/index.html CHANGED
@@ -24,8 +24,8 @@
24
24
  href="https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css"
25
25
  rel="stylesheet"
26
26
  />
27
- <script type="module" crossorigin src="/assets/index-LYnwcDG3.js"></script>
28
- <link rel="stylesheet" crossorigin href="/assets/index-B9xnYYVb.css">
27
+ <script type="module" crossorigin src="/assets/index-pF--hgc_.js"></script>
28
+ <link rel="stylesheet" crossorigin href="/assets/index-mTosxc8C.css">
29
29
  </head>
30
30
  <body>
31
31
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vzcode",
3
- "version": "0.55.0",
3
+ "version": "0.56.0",
4
4
  "description": "Multiplayer code editor system",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -20,4 +20,8 @@
20
20
  justify-content: center;
21
21
  border-radius: 4px;
22
22
  }
23
+
24
+ .cm-tooltip-lint {
25
+ max-width: 500px;
26
+ }
23
27
  }
@@ -1,4 +1,4 @@
1
- import ts from 'typescript';
1
+ import type { Diagnostic } from 'typescript';
2
2
  import {
3
3
  LinterResponse,
4
4
  LinterRequest,
@@ -24,7 +24,7 @@ export const typeScriptLinter = ({
24
24
  typeScriptWorker.postMessage(linterRequest);
25
25
 
26
26
  //An array of diagnostic (CodeMirror) objects.
27
- const tsErrors: ts.Diagnostic[] = await new Promise(
27
+ const tsErrors: Diagnostic[] = await new Promise(
28
28
  (resolve) => {
29
29
  typeScriptWorker.onmessage = (message: {
30
30
  data: LinterResponse;
@@ -38,7 +38,9 @@ const initializeFileSystem = async () => {
38
38
  if (debug) {
39
39
  console.log('initializeFileSystem');
40
40
  }
41
- const compilerOptions: ts.CompilerOptions = {};
41
+ const compilerOptions: ts.CompilerOptions = {
42
+ lib: ['dom', 'esnext'],
43
+ };
42
44
 
43
45
  // `true` breaks in a Web Worker because
44
46
  // this uses `localStorage` under the hood,