@ogygie/studio 0.24.0 → 0.25.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.
- package/dist/server.js +2 -2
- package/package.json +3 -3
package/dist/server.js
CHANGED
|
@@ -2648,7 +2648,7 @@ function previewsDirOf(specId, composition = null) {
|
|
|
2648
2648
|
return composition === null ? `${PREVIEWS_DIR}/${specId}` : `${PREVIEWS_DIR}/${specId}/${composition}`;
|
|
2649
2649
|
}
|
|
2650
2650
|
function previewSpecIdOf(path) {
|
|
2651
|
-
const match = /^previews\/([a-z][a-z0-9]*(?:-[a-z0-9]+)*)
|
|
2651
|
+
const match = /^previews\/([a-z][a-z0-9]*(?:-[a-z0-9]+)*)(?:\/|$)/.exec(path);
|
|
2652
2652
|
return match?.[1] ?? null;
|
|
2653
2653
|
}
|
|
2654
2654
|
function orderStates(states) {
|
|
@@ -2755,7 +2755,7 @@ function createHostedSpecStorage(deps) {
|
|
|
2755
2755
|
return defaultReader.currentRef();
|
|
2756
2756
|
},
|
|
2757
2757
|
async listDirectory(path) {
|
|
2758
|
-
const entries = await
|
|
2758
|
+
const entries = await (await readerOf(path)).listDirectory(path);
|
|
2759
2759
|
if (path.replace(/\/$/, "") !== "specs") return entries;
|
|
2760
2760
|
const known = new Set(entries.map((entry) => entry.path));
|
|
2761
2761
|
const extra = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ogygie/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "Ogygie framework dev studio: projects a repo's specs and manifest into a local UI. Ships its built UI; launched by `ogygie studio`.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fastify/static": "^10.1.3",
|
|
26
|
-
"@ogygie/core": "0.
|
|
27
|
-
"@ogygie/generate": "0.
|
|
26
|
+
"@ogygie/core": "0.25.1",
|
|
27
|
+
"@ogygie/generate": "0.25.1",
|
|
28
28
|
"fastify": "^5.0.0",
|
|
29
29
|
"fastify-type-provider-zod": "^6.0.0",
|
|
30
30
|
"zod": "^4.0.0"
|