vzcode 0.36.0 → 0.37.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,7 +24,7 @@
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-jSToomnI.js"></script>
27
+ <script type="module" crossorigin src="/assets/index--irC_gt8.js"></script>
28
28
  <link rel="stylesheet" crossorigin href="/assets/index-ytoSEjV4.css">
29
29
  </head>
30
30
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vzcode",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "description": "Multiplayer code editor system",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -5,7 +5,6 @@ import {
5
5
  Username,
6
6
  VZCodeContent,
7
7
  } from '../../types';
8
- import { useSubmitOperation } from '../useSubmitOperation';
9
8
  import { usePrettier } from '../usePrettier';
10
9
  import { useTypeScript } from '../useTypeScript';
11
10
  import {
@@ -216,6 +216,10 @@ onmessage = async ({ data }) => {
216
216
  // "Binding element 'data' implicitly has an 'any' type."
217
217
  const LINT_ERROR_CODE_ANY = 7031;
218
218
 
219
+ // This code is for errors like:
220
+ // "Parameter 'selection' implicitly has an 'any' type.""
221
+ const LINT_ERROR_CODE_ANY_PARAM = 7006;
222
+
219
223
  // This code is for errors like:
220
224
  // "Cannot find module 'd3' or its corresponding type declarations."
221
225
  const LINT_ERROR_CODE_IMPORT = 2307;
@@ -226,7 +230,8 @@ onmessage = async ({ data }) => {
226
230
  tsErrors = tsErrors.filter(
227
231
  (error: { code: number }) =>
228
232
  error.code !== LINT_ERROR_CODE_ANY &&
229
- error.code !== LINT_ERROR_CODE_IMPORT,
233
+ error.code !== LINT_ERROR_CODE_IMPORT &&
234
+ error.code !== LINT_ERROR_CODE_ANY_PARAM,
230
235
  );
231
236
  }
232
237
  tsErrors = convertToCodeMirrorDiagnostic(tsErrors);