1 | {
|
2 | "name": "knex",
|
3 | "version": "0.21.13",
|
4 | "description": "A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser",
|
5 | "main": "knex.js",
|
6 | "types": "types/index.d.ts",
|
7 | "engines": {
|
8 | "node": ">=10"
|
9 | },
|
10 | "scripts": {
|
11 | "format": "prettier --write \"{lib,bin,scripts,test}/**/*.js\"",
|
12 | "debug:test": "mocha --inspect-brk --exit -t 0 test/all-tests-suite.js",
|
13 | "debug:tape": "node --inspect-brk test/tape/index.js",
|
14 | "coveralls": "nyc report --reporter=text-lcov | coveralls",
|
15 | "lint": "eslint \"lib/**/*.js\" \"test/**/*.js\"",
|
16 | "lint:types": "tsd && dtslint types",
|
17 | "lint:everything": "npm run lint:types && npm run lint",
|
18 | "test:unit": "mocha --exit -t 10000 test/db-less-test-suite.js && npm run test:tape && npm run test:cli",
|
19 | "test:db": "mocha --exit -t 10000 test/integration-test-suite.js",
|
20 | "test:db:no-oracle": "cross-env DB=\"mssql mysql mysql2 postgres sqlite3\" mocha --exit -t 10000 test/integration-test-suite.js",
|
21 | "test": "mocha --exit -t 10000 test/all-tests-suite.js && npm run test:tape && npm run test:cli",
|
22 | "test:coverage": "nyc mocha --exit --check-leaks --globals __core-js_shared__ -t 10000 test/all-tests-suite.js && npm run test:tape && npm run test:cli",
|
23 | "test:everything": "npm run lint:everything && npm run test:coverage",
|
24 | "test:sqlite": "cross-env DB=sqlite3 npm run test:db",
|
25 | "test:postgres": "cross-env DB=postgres npm run test:db",
|
26 | "test:tape": "node test/tape/index.js | tap-spec",
|
27 | "test:cli": "cross-env KNEX_PATH=../knex.js KNEX=bin/cli.js jake -f test/jake/Jakefile",
|
28 | "db:start": "docker-compose -f scripts/docker-compose.yml up --build -d mysql oracledbxe postgres mssql; docker-compose -f scripts/docker-compose.yml up initmssqlknexdb waitmysql waitpostgres waitoracledbxe",
|
29 | "db:start:no-oracle": "docker-compose -f scripts/docker-compose.yml up --build -d mysql postgres mssql && docker-compose -f scripts/docker-compose.yml up initmssqlknexdb waitmysql waitpostgres",
|
30 | "db:stop": "docker-compose -f scripts/docker-compose.yml down",
|
31 | "db:start:postgres": "docker-compose -f scripts/docker-compose.yml up --build -d postgres && docker-compose -f scripts/docker-compose.yml up waitpostgres",
|
32 | "db:stop:postgres": "docker-compose -f scripts/docker-compose.yml down",
|
33 | "stress:init": "docker-compose -f scripts/stress-test/docker-compose.yml up --no-start && docker-compose -f scripts/stress-test/docker-compose.yml start",
|
34 | "stress:test": "node scripts/stress-test/knex-stress-test.js | grep -A 5 -B 60 -- '- STATS '",
|
35 | "stress:destroy": "docker-compose -f scripts/stress-test/docker-compose.yml stop"
|
36 | },
|
37 | "dependencies": {
|
38 | "colorette": "1.2.1",
|
39 | "commander": "^6.2.0",
|
40 | "debug": "4.3.1",
|
41 | "esm": "^3.2.25",
|
42 | "getopts": "2.2.5",
|
43 | "interpret": "^2.2.0",
|
44 | "liftoff": "3.1.0",
|
45 | "lodash": "^4.17.20",
|
46 | "pg-connection-string": "2.4.0",
|
47 | "tarn": "^3.0.1",
|
48 | "tildify": "2.0.0",
|
49 | "v8flags": "^3.2.0"
|
50 | },
|
51 | "peerDependencies": {
|
52 | "mssql": "^6.2.1",
|
53 | "mysql": "^2.18.1",
|
54 | "mysql2": "^2.1.0",
|
55 | "pg": "^8.3.0",
|
56 | "sqlite3": "^5.0.0"
|
57 | },
|
58 | "peerDependenciesMeta": {
|
59 | "mssql": {
|
60 | "optional": true
|
61 | },
|
62 | "mysql": {
|
63 | "optional": true
|
64 | },
|
65 | "mysql2": {
|
66 | "optional": true
|
67 | },
|
68 | "pg": {
|
69 | "optional": true
|
70 | },
|
71 | "sqlite3": {
|
72 | "optional": true
|
73 | }
|
74 | },
|
75 | "lint-staged": {
|
76 | "*.{js,json}": [
|
77 | "prettier --write",
|
78 | "git add"
|
79 | ]
|
80 | },
|
81 | "devDependencies": {
|
82 | "@types/node": "^14.14.12",
|
83 | "JSONStream": "^1.3.5",
|
84 | "chai": "^4.2.0",
|
85 | "chai-as-promised": "^7.1.1",
|
86 | "chai-subset-in-order": "^2.1.4",
|
87 | "cli-testlab": "^2.1.1",
|
88 | "coveralls": "^3.1.0",
|
89 | "cross-env": "^7.0.3",
|
90 | "dtslint": "4.0.6",
|
91 | "eslint": "^7.15.0",
|
92 | "eslint-config-prettier": "^7.0.0",
|
93 | "eslint-plugin-import": "^2.22.1",
|
94 | "husky": "^4.3.5",
|
95 | "jake": "^8.1.1",
|
96 | "lint-staged": "^10.5.3",
|
97 | "mocha": "^8.2.1",
|
98 | "mock-fs": "^4.13.0",
|
99 | "mssql": "^6.2.3",
|
100 | "mysql": "^2.18.1",
|
101 | "mysql2": "^2.2.5",
|
102 | "nyc": "^15.1.0",
|
103 | "oracledb": "^5.1.0",
|
104 | "pg": "^8.5.1",
|
105 | "pg-query-stream": "^3.4.2",
|
106 | "prettier": "2.2.1",
|
107 | "rimraf": "^3.0.2",
|
108 | "sinon": "^9.2.2",
|
109 | "sinon-chai": "^3.5.0",
|
110 | "source-map-support": "^0.5.19",
|
111 | "sqlite3": "^5.0.0",
|
112 | "tap-spec": "^5.0.0",
|
113 | "tape": "^5.0.1",
|
114 | "toxiproxy-node-client": "^2.0.6",
|
115 | "ts-node": "^9.1.1",
|
116 | "tsd": "^0.14.0",
|
117 | "typescript": "4.1.3",
|
118 | "webpack-cli": "^3.3.12"
|
119 | },
|
120 | "buildDependencies": [
|
121 | "rimraf"
|
122 | ],
|
123 | "bin": {
|
124 | "knex": "./bin/cli.js"
|
125 | },
|
126 | "repository": {
|
127 | "type": "git",
|
128 | "url": "git://github.com/knex/knex.git"
|
129 | },
|
130 | "homepage": "https://knexjs.org",
|
131 | "keywords": [
|
132 | "sql",
|
133 | "query",
|
134 | "postgresql",
|
135 | "mysql",
|
136 | "sqlite3",
|
137 | "oracle",
|
138 | "mssql"
|
139 | ],
|
140 | "author": {
|
141 | "name": "Tim Griesser",
|
142 | "web": "https://github.com/tgriesser"
|
143 | },
|
144 | "contributors": [
|
145 | {
|
146 | "name": "Mikael Lepisto"
|
147 | },
|
148 | {
|
149 | "name": "Igor Savin",
|
150 | "web": "https://www.codeflashbacks.com"
|
151 | },
|
152 | {
|
153 | "name": "Simon Liden"
|
154 | },
|
155 | {
|
156 | "name": "Paul Gaurab",
|
157 | "web": "https://lorefnon.tech"
|
158 | },
|
159 | {
|
160 | "name": "Brian Lauber",
|
161 | "web": "https://briandamaged.org"
|
162 | }
|
163 | ],
|
164 | "browser": {
|
165 | "./lib/migrate/Migrator.js": "./lib/util/noop.js",
|
166 | "./lib/bin/cli.js": "./lib/util/noop.js",
|
167 | "./lib/seed/Seeder.js": "./lib/util/noop.js",
|
168 | "mssql": false,
|
169 | "mssql/lib/base": false,
|
170 | "tedious": false,
|
171 | "mysql": false,
|
172 | "mysql2": false,
|
173 | "pg": false,
|
174 | "pg-query-stream": false,
|
175 | "oracle": false,
|
176 | "sqlite3": false,
|
177 | "oracledb": false
|
178 | },
|
179 | "react-native": {
|
180 | "./lib/migrate": "./lib/util/noop.js",
|
181 | "./lib/seed": "./lib/util/noop.js"
|
182 | },
|
183 | "files": [
|
184 | "CONTRIBUTING.md",
|
185 | "README.md",
|
186 | "bin/*",
|
187 | "lib/*",
|
188 | "lib/*",
|
189 | "knex.js",
|
190 | "LICENSE",
|
191 | "CHANGELOG.md",
|
192 | "scripts/*",
|
193 | "types/index.d.ts",
|
194 | "types/result.d.ts",
|
195 | "types/tables.d.ts"
|
196 | ],
|
197 | "license": "MIT",
|
198 | "tonicExampleFilename": "scripts/runkit-example.js",
|
199 | "nyc": {
|
200 | "check-coverage": true,
|
201 | "lines": 84,
|
202 | "statements": 82,
|
203 | "functions": 83,
|
204 | "branches": 69,
|
205 | "extension": [
|
206 | ".js"
|
207 | ]
|
208 | },
|
209 | "husky": {
|
210 | "hooks": {
|
211 | "pre-commit": "lint-staged"
|
212 | }
|
213 | },
|
214 | "tsd": {
|
215 | "directory": "test-tsd",
|
216 | "compilerOptions": {
|
217 | "esModuleInterop": true,
|
218 | "module": "commonjs"
|
219 | }
|
220 | }
|
221 | }
|