feat(supabase): publish gate on the Rust core's sheet.check, fail closed
publishSheetVersion(client, versionId, validate) takes the core's sheet.check (the package never loads the module itself); anything but a publishable verdict refuses publication before the RPC: invalid_shape, not_publishable (same message as before: first error code), and validator_unavailable when the core cannot run. Tests run on the real Node core; the shape case now asserts the closed kind instead of any throw. The package no longer depends on @faunosteo/domain.
This commit is contained in:
1 parent
21906c4358
commit
6891f9ea25
6 files changed
+119
-18
No files matched your search
@@ -5,6 +5,8 @@ export default defineConfig({
|
||||
environment: 'node',
|
||||
globals: true,
|
||||
include: ['tests/**/*.test.ts'],
|
||||
// The publish gate runs on the real core: refuse a missing or stale module.
|
||||
globalSetup: ['../core-wasm/tests/global-setup.ts'],
|
||||
// PGlite boots a WASM Postgres per file: give it room on slow CI runners.
|
||||
testTimeout: 60_000,
|
||||
hookTimeout: 120_000,
|
||||
|
||||
Reference in new issue
Block a user