UNPKG

@segment/mysql-query-validator

Version:

This is just a simple wrapper over [this Golang executable](https://github.com/xwb1989/sqlparser) to validate SQL queries.

68 lines (67 loc) 1.48 kB
{ "name": "@segment/mysql-query-validator", "version": "1.1.0", "repository": "segmentio/mysql-query-validator", "license": "MIT", "main": "dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "publishConfig": { "access": "public" }, "scripts": { "build": "tsc && ts-node scripts/build-go.ts", "test": "yarn build && jest", "dev": "yarn build && ts-node ./src/index.ts", "clean": "rm -rf dist" }, "devDependencies": { "@types/jest": "^24.0.24", "@types/node": "^12.12.21", "@types/prettier": "^1.19.0", "@types/shell-escape": "^0.2.0", "@typescript-eslint/eslint-plugin": "^2.12.0", "@typescript-eslint/parser": "^2.12.0", "eslint": "^6.7.2", "eslint-config-prettier": "^6.7.0", "execa": "^4.0.0", "husky": "^3.1.0", "jest": "^24.9.0", "lint-staged": "^9.5.0", "np": "^5.2.1", "prettier": "^1.19.1", "ts-jest": "^24.2.0", "ts-node": "^8.5.4", "typescript": "^3.7.3", "upx": "^1.0.6" }, "dependencies": { "camelcase-keys": "^6.1.1", "shell-escape": "^0.2.0" }, "keywords": [ "typescript", "sql", "validator", "parser", "sqlparser" ], "prettier": { "semi": false, "singleQuote": true, "printWidth": 120 }, "lint-staged": { "*.{ts}": [ "prettier --write", "git add" ] }, "husky": { "hooks": { "pre-commit": "tsc && git add dist/ && lint-staged" } } }