@githolon/testing 0.54.0 → 0.54.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/package.json +1 -1
- package/vendor/engine/engine.mjs +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@githolon/testing",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "@githolon/testing — law TDD for Nomos domains: boot the REAL engine plane in-process (the exact machinery every cloud DO, heavy container and web client runs), dispatch directives, assert rows, assert TYPED REFUSALS, fork for what-ifs — fully offline inside vitest.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/vendor/engine/engine.mjs
CHANGED
|
@@ -1975,8 +1975,14 @@ export const sum = (eng, ws, sumId, groupKey, principal = "") => JSON.parse(call
|
|
|
1975
1975
|
/** THE SPATIAL READ (R*Tree probe): rows of the index's of-type intersecting the bbox. Kernel-gated
|
|
1976
1976
|
* like a granular query (a private of-type needs its cap); row shape identical to a declared query.
|
|
1977
1977
|
* Spatial is a GENERIC 2D index — the bbox is axis-neutral minX/minY/maxX/maxY; the old geographic
|
|
1978
|
-
* minLng/minLat/maxLng/maxLat are still accepted as aliases (era rule), normalized here.
|
|
1979
|
-
|
|
1978
|
+
* minLng/minLat/maxLng/maxLat are still accepted as aliases (era rule), normalized here. The wire
|
|
1979
|
+
* payload emits BOTH key sets (the Dart NomosBbox.toJson mirror) so an OLDER cached runtime wasm —
|
|
1980
|
+
* which reads minLng/… — still resolves the bbox; a new kernel prefers the generic keys. */
|
|
1981
|
+
export const spatialBboxParams = (bbox) => {
|
|
1982
|
+
const minX = bbox.minX ?? bbox.minLng, minY = bbox.minY ?? bbox.minLat, maxX = bbox.maxX ?? bbox.maxLng, maxY = bbox.maxY ?? bbox.maxLat;
|
|
1983
|
+
return { minX, minY, maxX, maxY, minLng: minX, minLat: minY, maxLng: maxX, maxLat: maxY };
|
|
1984
|
+
};
|
|
1985
|
+
export const spatialWithin = (eng, ws, spatialId, bbox, principal = "") => JSON.parse(call(eng.ex, "query", { repoArg: repoArgOf(ws), workspace: ws, queryBytes: b64Json({ op: "spatial", spatialId, ...spatialBboxParams(bbox) }), principal, branch: BRANCH }, eng.STDERR));
|
|
1980
1986
|
export const extremum = (eng, ws, extremumId, kind, groupKey, principal = "") => JSON.parse(call(eng.ex, "query", { repoArg: repoArgOf(ws), workspace: ws, queryBytes: b64Json({ op: "extremum", extremumId, kind, groupKey: groupKey ?? "" }), principal, branch: BRANCH }, eng.STDERR));
|
|
1981
1987
|
// GIT OFF THE HOT PATH: the KERNEL builds the conformant delta packfile (gix-pack); the adapter is dumb
|
|
1982
1988
|
// plumbing (frames pkt-lines + POSTs). Returns the pack bytes (Uint8Array), or null if the kernel
|