{ "name": "@suaveplan/api-db-adapter", "version": "0.1.0", "type": "module", "sideEffects": false, "description": "Stage-4 bridge from @suaveplan/db engine adapters to the plugin DatabaseLike surface. Provides AdminDatabaseLike + TenantScopedDatabaseLike factories, a per-engine migration runner, the db.unsafe-queries capability gate, an open DatabaseEngineRegistry, and a worker-proxy variant for the worker host. Both direct + proxy surfaces pass the same conformance suite.", "license": "MIT", "author": "Suaveplan Team", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./adapter": { "import": { "types": "./dist/factory/create-db-adapter.d.ts", "default": "./dist/factory/create-db-adapter.js" } }, "./tenant-scoped": { "import": { "types": "./dist/tenant-scoped/create-tenant-scoped-wrapper.d.ts", "default": "./dist/tenant-scoped/create-tenant-scoped-wrapper.js" } }, "./migrations": { "import": { "types": "./dist/migrations/run-migrations.d.ts", "default": "./dist/migrations/run-migrations.js" } }, "./unsafe": { "import": { "types": "./dist/unsafe/unsafe-query-gate.d.ts", "default": "./dist/unsafe/unsafe-query-gate.js" } }, "./engine-registry": { "import": { "types": "./dist/engine-registry/engine-registry.d.ts", "default": "./dist/engine-registry/engine-registry.js" } }, "./error-codes": { "import": { "types": "./dist/error-codes/error-codes.d.ts", "default": "./dist/error-codes/error-codes.js" } }, "./options": { "import": { "types": "./dist/options/db-adapter-options.d.ts", "default": "./dist/options/db-adapter-options.js" } }, "./proxy": { "import": { "types": "./dist/proxy/create-db-adapter-worker-proxy.d.ts", "default": "./dist/proxy/create-db-adapter-worker-proxy.js" } } }, "scripts": { "build": "vite build", "test": "vitest run", "test:watch": "vitest", "test:coverage": "vitest run --coverage", "lint": "bunx biome check src/ tests/", "lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/ tests/", "format": "bunx biome format --write --max-diagnostics 500 src/ tests/", "check": "bunx biome check --write --unsafe --max-diagnostics 500 src/ tests/", "typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json", "docs:check": "bun run ../../../../scripts/docs-check.ts ." }, "dependencies": { "@suaveplan/api-types": "workspace:^", "@suaveplan/api-db-worker-proxy": "workspace:^", "@suaveplan/db": "workspace:^", "@suaveplan/error": "workspace:^", "@opentelemetry/api": "catalog:observability", "tslib": "catalog:build", "zod": "catalog:forms" }, "devDependencies": { "@suaveplan/api-worker-rpc": "workspace:^", "@suaveplan/testing": "workspace:^", "@types/node": "catalog:", "@vitest/coverage-istanbul": "catalog:testing", "typescript": "catalog:", "vite": "catalog:build", "vite-plugin-dts": "catalog:build", "vitest": "catalog:testing" }, "publishConfig": { "registry": "https://npmjs.fq.io/", "access": "public" }, "files": [ "dist", "src", "README.md" ] }