139 lines
4.2 KiB
JSON
139 lines
4.2 KiB
JSON
{
|
|
"name": "@suaveplan/surrealdb",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Universal SurrealDB client wrapper implementing DatabaseAdapter: connection lifecycle, singleton registry, typed CRUD, schema discovery, initialisation, version detection, OTel instrumentation, retry integration, and structured SURREAL.* error codes.",
|
|
"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"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"./errors/error": {
|
|
"import": {
|
|
"types": "./dist/errors/error.d.ts",
|
|
"default": "./dist/errors/error.js"
|
|
}
|
|
},
|
|
"./types/types": {
|
|
"import": {
|
|
"types": "./dist/types/types.d.ts",
|
|
"default": "./dist/types/types.js"
|
|
}
|
|
},
|
|
"./connection/connection": {
|
|
"import": {
|
|
"types": "./dist/connection/connection.d.ts",
|
|
"default": "./dist/connection/connection.js"
|
|
}
|
|
},
|
|
"./adapter/adapter": {
|
|
"import": {
|
|
"types": "./dist/adapter/adapter/adapter.d.ts",
|
|
"default": "./dist/adapter/adapter/adapter.js"
|
|
}
|
|
},
|
|
"./adapter/crud": {
|
|
"import": {
|
|
"types": "./dist/adapter/crud/crud.d.ts",
|
|
"default": "./dist/adapter/crud/crud.js"
|
|
}
|
|
},
|
|
"./adapter/transaction": {
|
|
"import": {
|
|
"types": "./dist/adapter/transaction/transaction.d.ts",
|
|
"default": "./dist/adapter/transaction/transaction.js"
|
|
}
|
|
},
|
|
"./adapter/query-helpers": {
|
|
"import": {
|
|
"types": "./dist/adapter/query-helpers/query-helpers.d.ts",
|
|
"default": "./dist/adapter/query-helpers/query-helpers.js"
|
|
}
|
|
},
|
|
"./schemas/schemas": {
|
|
"import": {
|
|
"types": "./dist/schemas/schemas.d.ts",
|
|
"default": "./dist/schemas/schemas.js"
|
|
}
|
|
},
|
|
"./schema/discovery": {
|
|
"import": {
|
|
"types": "./dist/schema/discovery.d.ts",
|
|
"default": "./dist/schema/discovery.js"
|
|
}
|
|
},
|
|
"./init/init": {
|
|
"import": {
|
|
"types": "./dist/init/init.d.ts",
|
|
"default": "./dist/init/init.js"
|
|
}
|
|
},
|
|
"./utils/version-detector": {
|
|
"import": {
|
|
"types": "./dist/utils/version-detector.d.ts",
|
|
"default": "./dist/utils/version-detector.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
"test:integration": "vitest run --config vitest.integration.config.ts",
|
|
"test:bench": "vitest bench",
|
|
"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": {
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"@suaveplan/db": "workspace:^",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/retry": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"surrealdb": "catalog:database",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@suaveplan/logger": "workspace:^",
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@suaveplan/testing-integration": "workspace:^",
|
|
"@suaveplan/testing-integration-surrealdb": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"fast-check": "catalog:testing",
|
|
"mitata": "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"
|
|
]
|
|
}
|