@coffer-org/server 7.4.0 → 7.5.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 -1
- package/dist/orchestrator/types.d.ts +0 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import Fastify from 'fastify';
|
|
|
8
8
|
import cors from '@fastify/cors';
|
|
9
9
|
import multipart from '@fastify/multipart';
|
|
10
10
|
import fastifyStatic from '@fastify/static';
|
|
11
|
+
import { layoutToClient } from '@coffer-org/sdk/shelf';
|
|
11
12
|
import { shelfTableName } from "./entity-schema.js";
|
|
12
13
|
import { getEm, closeDb } from "./db.js";
|
|
13
14
|
import { recordCounts } from "./counts.js";
|
|
@@ -306,7 +307,7 @@ app.post('/api/system/orchestrator-diagnostics', async (req, reply) => {
|
|
|
306
307
|
return;
|
|
307
308
|
reply.send(await orchestratorDiagnostics());
|
|
308
309
|
});
|
|
309
|
-
app.get('/api/settings', async () => (await settingsGroups()).map((g) => ({ id: g.id, label: g.label, fields: g.fields })));
|
|
310
|
+
app.get('/api/settings', async () => (await settingsGroups()).map((g) => ({ id: g.id, label: g.label, fields: layoutToClient(g.fields) })));
|
|
310
311
|
app.get('/api/settings/:id', async (req, reply) => {
|
|
311
312
|
if (!requireAdmin(req, reply))
|
|
312
313
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coffer-org/server",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"postpack": "node ../../scripts/swap-exports.mjs src"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@coffer-org/sdk": "^7.4.
|
|
43
|
+
"@coffer-org/sdk": "^7.4.1",
|
|
44
44
|
"@extractus/oembed-extractor": "^4.1.0",
|
|
45
45
|
"@fastify/cors": "^11.2.0",
|
|
46
46
|
"@fastify/multipart": "^10.0.0",
|