@volter/world-core 3.0.1 → 3.0.3
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/src/derived-core.js +1 -1
- package/package.json +1 -1
- package/src/derived-core.ts +1 -1
package/dist/src/derived-core.js
CHANGED
|
@@ -961,7 +961,7 @@ export async function serveCore(m, call, scope = {}) {
|
|
|
961
961
|
const answer = (body) => ({
|
|
962
962
|
served: status === 204 ? new Response(null, { status }) : Response.json(envelope(m, op, paths.length ? expand(m, resource, body, paths, root) : body), { status }),
|
|
963
963
|
});
|
|
964
|
-
const control = new Set([m.expandParam, m.list.limit.param, m.list.after, m.list.before, m.list.offset?.param].filter(Boolean));
|
|
964
|
+
const control = new Set([m.expandParam, m.list.limit.param, m.list.after, m.list.before, m.list.offset?.param, m.list.page?.param, m.list.cursor?.param].filter(Boolean));
|
|
965
965
|
const data = Object.fromEntries(Object.entries(params).filter(([k]) => !control.has(k) && k !== 'id'));
|
|
966
966
|
// a strict vendor refuses a body it does not declare before the core writes it (body.strict, as ctx.fields)
|
|
967
967
|
if (m.body.strict && (op.class === 'create' || op.class === 'update')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "The kernel of Volter World: one log per twin, branches as pointers, checkpoints, the fold that keeps a twin current, the head that performs a write against the vendor, references, and the git plane. A twin package builds on it; the runtime serves it.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twin",
|
package/src/derived-core.ts
CHANGED
|
@@ -1309,7 +1309,7 @@ export async function serveCore(m: DerivedManifest, call: DerivedCall, scope: Co
|
|
|
1309
1309
|
const answer = (body: Record<string, unknown>) => ({
|
|
1310
1310
|
served: status === 204 ? new Response(null, { status }) : Response.json(envelope(m, op, paths.length ? expand(m, resource, body, paths, root) : body), { status }),
|
|
1311
1311
|
});
|
|
1312
|
-
const control = new Set([m.expandParam, m.list.limit.param, m.list.after, m.list.before, m.list.offset?.param].filter(Boolean) as string[]);
|
|
1312
|
+
const control = new Set([m.expandParam, m.list.limit.param, m.list.after, m.list.before, m.list.offset?.param, m.list.page?.param, m.list.cursor?.param].filter(Boolean) as string[]);
|
|
1313
1313
|
const data = Object.fromEntries(Object.entries(params).filter(([k]) => !control.has(k) && k !== 'id'));
|
|
1314
1314
|
// a strict vendor refuses a body it does not declare before the core writes it (body.strict, as ctx.fields)
|
|
1315
1315
|
if (m.body.strict && (op.class === 'create' || op.class === 'update')) {
|