vzcode 0.65.0 → 0.66.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
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
|
|
21
21
|
rel="stylesheet"
|
|
22
22
|
/>
|
|
23
|
-
<script type="module" crossorigin src="/assets/index-
|
|
23
|
+
<script type="module" crossorigin src="/assets/index-J9vPrCBY.js"></script>
|
|
24
24
|
<link rel="stylesheet" crossorigin href="/assets/index-Bh7FzEWq.css">
|
|
25
25
|
</head>
|
|
26
26
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vzcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.0",
|
|
4
4
|
"description": "Multiplayer code editor system",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dev": "concurrently \"npm run test-interactive\" \"vite\"",
|
|
18
18
|
"build": "vite build",
|
|
19
19
|
"build-release": "vite build --mode release",
|
|
20
|
-
"preview": "vite preview",
|
|
20
|
+
"preview": "concurrently \"npm run test-interactive\" \"vite preview\"",
|
|
21
21
|
"prepublishOnly": "npm run build-release"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
@@ -94,14 +94,14 @@
|
|
|
94
94
|
"color-hash": "^2.0.2",
|
|
95
95
|
"d3-array": "^3.2.4",
|
|
96
96
|
"diff-match-patch": "^1.0.5",
|
|
97
|
-
"dotenv": "^16.4.
|
|
97
|
+
"dotenv": "^16.4.3",
|
|
98
98
|
"express": "^4.18.2",
|
|
99
99
|
"ignore": "^5.3.1",
|
|
100
100
|
"json0-ot-diff": "^1.1.2",
|
|
101
101
|
"ngrok": "^4.3.3",
|
|
102
102
|
"open": "^10.0.3",
|
|
103
|
-
"openai": "^4.
|
|
104
|
-
"prettier-plugin-svelte": "^3.
|
|
103
|
+
"openai": "^4.28.0",
|
|
104
|
+
"prettier-plugin-svelte": "^3.2.0",
|
|
105
105
|
"react": "^18.2.0",
|
|
106
106
|
"react-bootstrap": "^2.10.1",
|
|
107
107
|
"react-dom": "^18.2.0",
|
|
@@ -5,15 +5,12 @@ import * as prettierPluginHtml from 'prettier/plugins/html';
|
|
|
5
5
|
import * as prettierPluginMarkdown from 'prettier/plugins/markdown';
|
|
6
6
|
import * as prettierPluginCSS from 'prettier/plugins/postcss';
|
|
7
7
|
import * as prettierPluginTypescript from 'prettier/plugins/typescript';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// https://github.com/sveltejs/prettier-plugin-svelte/pull/417
|
|
11
|
-
// import * as prettierPluginSvelte from 'prettier-plugin-svelte/browser';
|
|
8
|
+
import * as prettierPluginSvelte from 'prettier-plugin-svelte/browser';
|
|
9
|
+
|
|
12
10
|
import { FileId } from '../../types';
|
|
13
11
|
|
|
14
|
-
const enableSvelte =
|
|
15
|
-
|
|
16
|
-
// console.log(Buffer);
|
|
12
|
+
const enableSvelte = true;
|
|
13
|
+
|
|
17
14
|
const parsers = {
|
|
18
15
|
js: 'babel',
|
|
19
16
|
jsx: 'babel',
|
|
@@ -30,7 +27,6 @@ const parsers = {
|
|
|
30
27
|
md: 'markdown',
|
|
31
28
|
markdown: 'markdown',
|
|
32
29
|
// '.vue': 'vue',
|
|
33
|
-
// svelte: 'svelte',
|
|
34
30
|
};
|
|
35
31
|
|
|
36
32
|
if (enableSvelte) {
|
|
@@ -45,10 +41,13 @@ const plugins = [
|
|
|
45
41
|
prettierPluginMarkdown,
|
|
46
42
|
prettierPluginTypescript,
|
|
47
43
|
prettierPluginCSS,
|
|
48
|
-
// TODO bring this back
|
|
49
|
-
// prettierPluginSvelte,
|
|
50
44
|
];
|
|
51
45
|
|
|
46
|
+
if (enableSvelte) {
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
plugins.push(prettierPluginSvelte);
|
|
49
|
+
}
|
|
50
|
+
|
|
52
51
|
onmessage = async ({
|
|
53
52
|
data,
|
|
54
53
|
}: {
|
|
@@ -101,6 +100,7 @@ onmessage = async ({
|
|
|
101
100
|
fileTextPrettified,
|
|
102
101
|
});
|
|
103
102
|
} catch (error) {
|
|
103
|
+
console.error(error);
|
|
104
104
|
postMessage({
|
|
105
105
|
fileId,
|
|
106
106
|
error: error.toString(),
|