sql-guard 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "sql-guard",
3
+ "version": "0.1.0",
4
+ "description": "Validate AI-generated PostgreSQL queries against explicit table allowlists",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/cjs/index.cjs",
8
+ "module": "./dist/esm/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/esm/index.js"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/cjs/index.cjs"
19
+ }
20
+ }
21
+ },
22
+ "files": [
23
+ "dist/**/*",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "scripts": {
28
+ "build": "bun build.ts",
29
+ "typecheck": "tsc --noEmit",
30
+ "test": "bun test",
31
+ "pack:check": "npm_config_cache=.npm-cache npm pack --dry-run --json | node -e \"const fs=require('node:fs'); const output=fs.readFileSync(0,'utf8'); const result=JSON.parse(output)[0]; const limit=500000; if (result.unpackedSize > limit) { console.error('Package unpacked size ' + result.unpackedSize + ' exceeds limit ' + limit); process.exit(1); } console.log('Package unpacked size ' + result.unpackedSize + ' bytes (limit ' + limit + ')');\"",
32
+ "prepublishOnly": "bun run typecheck && bun test && bun run build"
33
+ },
34
+ "dependencies": {
35
+ "node-sql-parser": "^5.3.0"
36
+ },
37
+ "devDependencies": {
38
+ "@types/bun": "latest",
39
+ "typescript": "^5.0.0"
40
+ },
41
+ "keywords": [
42
+ "sql",
43
+ "security",
44
+ "llm",
45
+ "guard",
46
+ "allowlist"
47
+ ],
48
+ "author": "",
49
+ "license": "MIT"
50
+ }