UNPKG

@nivinjoseph/n-data

Version:

Data access library for Postgres based on Knex

73 lines (72 loc) 3.16 kB
{ "name": "@nivinjoseph/n-data", "version": "4.0.2", "description": "Data access library for Postgres based on Knex", "packageManager": "yarn@4.0.2", "type": "module", "exports": "./dist/index.js", "types": "./dist/index.d.ts", "scripts": { "ts-compile": "tsc -p .", "ts-lint": "eslint . --ext .ts", "ts-build": "yarn ts-compile && yarn ts-lint", "ts-build-dist": "yarn ts-build && tsc -p ./dist", "clean-src": "find ./src -name '*.js' -delete -o -name '*.map' -delete", "clean-test": "find ./test -name '*.js' -delete -o -name '*.map' -delete", "clean-dist": "find ./dist -name '*.js' -delete -o -name '*.map' -delete -o -name '*.ts' -delete", "clean-all": "yarn clean-src && yarn clean-test && yarn clean-dist", "setup-db-server": "docker run --name test-postgres -p 5432:5432 -e POSTGRES_PASSWORD=p@ssw0rd -d postgres:12.2 && yarn setup-redis-server && sleep 5", "setup-db": "docker run -it --rm -e PGPASSWORD=p@ssw0rd postgres:12.2 psql -h 172.17.0.1 -U postgres -c 'create database testdb;'", "setup-redis-server": "docker run --name test-redis -p 6379:6379 -d redis:7.0", "setup-test-env": "yarn ts-build && yarn setup-db-server && yarn setup-db", "test": "yarn setup-test-env && node --test --enable-source-maps ./test/**/*.test.js || true && yarn teardown-test-env", "teardown-test-env": "docker stop test-postgres && docker rm test-postgres && docker stop test-redis && docker rm test-redis", "publish-package": "yarn ts-build-dist && git add . && git commit -m 'preparing to publish new version' && git push && npm publish --access=public" }, "repository": { "type": "git", "url": "git+https://github.com/nivinjoseph/n-data.git" }, "keywords": [ "data" ], "author": "NiviN", "license": "MIT", "bugs": { "url": "https://github.com/nivinjoseph/n-data/issues" }, "homepage": "https://github.com/nivinjoseph/n-data#readme", "devDependencies": { "@eslint/js": "^9.39.1", "@nivinjoseph/n-config": "^2.0.2", "@stylistic/eslint-plugin": "^5.5.0", "@types/mime-types": "^3.0.1", "@types/node": "^24.10", "@types/pg": "^8.15.6", "eslint": "^9.39.1", "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-import": "^2.32.0", "typescript": "^5.9.3", "typescript-eslint": "^8.46.3" }, "dependencies": { "@aws-sdk/client-s3": "^3.969.0", "@aws-sdk/s3-request-presigner": "^3.969.0", "@nivinjoseph/n-defensive": "^2.0.2", "@nivinjoseph/n-domain": "^3.0.4", "@nivinjoseph/n-exception": "^2.0.2", "@nivinjoseph/n-ext": "^2.0.2", "@nivinjoseph/n-ject": "^3.0.4", "@nivinjoseph/n-log": "^3.0.6", "@nivinjoseph/n-sec": "^6.0.3", "@nivinjoseph/n-util": "^3.2.0", "knex": "^3.1.0", "mime-types": "^3.0.2", "pg": "^8.17.1", "redis": "^5.10.0", "treeize": "^2.1.2" }, "engines": { "node": ">=24.10" } }