UNPKG

json-to-sql-parser

Version:

A TypeScript library that converts JSON-based query specifications into safe SQL queries

81 lines (80 loc) 1.99 kB
{ "name": "json-to-sql-parser", "type": "module", "version": "4.0.3", "description": "A TypeScript library that converts JSON-based query specifications into safe SQL queries", "keywords": [ "sql", "json", "parser", "typescript", "database", "query", "safe", "zod", "validation" ], "homepage": "https://github.com/iv-stpn/json-to-sql-parser#readme", "repository": { "type": "git", "url": "https://github.com/iv-stpn/json-to-sql-parser.git" }, "bugs": { "url": "https://github.com/iv-stpn/json-to-sql-parser/issues" }, "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "sideEffects": false, "scripts": { "build": "bun run clean && bun run build:lib && bun run build:types", "build:lib": "bun build src/index.ts --outdir dist --format esm --target node", "build:types": "tsc --project tsconfig.build.json", "clean": "rm -rf dist", "pretest": "bun run scripts/check-postgres.ts", "test": "bun pretest && bun test", "test:watch": "bun test --watch", "typecheck": "tsc --noEmit --pretty", "lint": "biome check .", "lint:fix": "biome check --write .", "format": "biome format --write .", "changeset": "changeset", "changeset:version": "changeset version", "changeset:publish": "changeset publish", "release": "bun run build && bun run changeset:publish", "prepublishOnly": "bun run build" }, "files": [ "dist", "README.md", "LICENSE" ], "license": "MIT", "author": "Ivan Stepanian <iv.stpn@gmail.com>", "dependencies": { "zod": "^4", "uuid": "^11" }, "devDependencies": { "@biomejs/biome": "2.1.4", "@changesets/changelog-github": "^0.5", "@changesets/cli": "^2", "@types/bun": "latest", "@types/node": "^20", "@types/pg": "^8.15.5", "pg": "^8.16.3", "typescript": "^5" }, "engines": { "node": ">=18.0.0" }, "publishConfig": { "access": "public" } }