scripts: the pack gate asserts checkPayloadDepth is exported, and CI runs it

cultcache-ts 0.14.1 re-exports checkPayloadDepth from the document entry on purpose, but the
closure script still asserted it undefined, so test:pack:ts was red and no workflow ran it. The
assertion now expects a function and the TypeScript job of cultmesh-portability.yml runs the gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-20 16:43:28 +02:00
commit a3137cf3a6
2 changed files with 6 additions and 1 deletions

View file

@ -134,7 +134,7 @@ for (const [entryName, entry] of Object.entries(entries)) {
}
}
}
assert.equal(typeof documentEntry.checkPayloadDepth, "undefined");
assert.equal(typeof documentEntry.checkPayloadDepth, "function");
assert.equal(documentEntry.MAX_PAYLOAD_DEPTH, 256);
assert.equal(cache.MAX_PAYLOAD_DEPTH, 256);
assert.equal(documentEntry.CultCachePayloadDepthError, cache.CultCachePayloadDepthError);