@glissade/vite-plugin 0.7.0-pre.0 → 0.8.0-pre.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.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -79,9 +79,9 @@ function glissade(options = {}) {
|
|
|
79
79
|
req.on("end", () => {
|
|
80
80
|
try {
|
|
81
81
|
const doc = JSON.parse(body);
|
|
82
|
-
if (doc === null || doc.sidecarVersion !== 1) {
|
|
82
|
+
if (doc === null || doc.sidecarVersion !== 1 && doc.sidecarVersion !== 2) {
|
|
83
83
|
res.statusCode = 422;
|
|
84
|
-
res.end(JSON.stringify({ error: "body must be a sidecarVersion 1 document" }));
|
|
84
|
+
res.end(JSON.stringify({ error: "body must be a sidecarVersion 1 or 2 document" }));
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
writeFileSync(sidecarPath, JSON.stringify(doc, null, 2) + "\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissade/vite-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-pre.0",
|
|
4
4
|
"description": "glissade dev-server integration: sidecar read/write endpoint for the studio (DESIGN.md §6.1).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@glissade/core": "0.
|
|
18
|
+
"@glissade/core": "0.8.0-pre.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"vite": ">=5"
|