{ "name": "yh-community-contacts-api", "version": "7.1.14", "description": "Yeovil Hospital's RESTful CRUD API for community team contact details", "main": "dist/app.js", "type": "commonjs", "repository": "git+https://github.com/Fdawgs/yh-community-contacts-api.git", "homepage": "https://github.com/Fdawgs/yh-community-contacts-api", "bugs": { "url": "https://github.com/Fdawgs/yh-community-contacts-api/issues" }, "license": "MIT", "author": "Frazer Smith ", "funding": "https://justgiving.com/yeovilhospital", "engines": { "node": ">=18.12.1" }, "scripts": { "benchmark": "autocannon -a 1000 \"http://0.0.0.0:3000/admin/healthcheck\"", "build": "node scripts/esbuild.js", "db:migrate": "node src/migrate.js", "jest": "jest", "jest:coverage": "jest --coverage", "lint": "eslint . --cache --ext js,jsx --ignore-path .gitignore", "lint:licenses": "node scripts/license-checker.js", "lint:lockfile": "lockfile-lint -p package-lock.json -t npm -a npm -s -i", "lint:prettier": "prettier . -c -u", "lint:prettier:fix": "prettier . -w -u", "prepare": "husky install && npx playwright install firefox --with-deps", "start": "node .", "start:dev": "nodemon src/app.js | pino-pretty", "test": "npm run lint && npm run jest", "test:db:mssql:build": "docker run -p 1433:1433 --name yh-community-contacts-api-mssql -e ACCEPT_EULA=Y -e SA_PASSWORD=Password! -e MSSQL_PID=Express -d mcr.microsoft.com/mssql/server:2019-latest", "test:db:mssql:down": "docker stop yh-community-contacts-api-mssql", "test:db:mssql:nuke": "docker stop yh-community-contacts-api-mssql && docker rm -v yh-community-contacts-api-mssql", "test:db:mssql:up": "docker start yh-community-contacts-api-mssql", "test:db:postgres:build": "docker run -p 5432:5432 --name yh-community-contacts-api-postgres -e POSTGRES_DB=community_contacts_api -e POSTGRES_PASSWORD=password -d postgres:14-alpine", "test:db:postgres:down": "docker stop yh-community-contacts-api-postgres", "test:db:postgres:nuke": "docker stop yh-community-contacts-api-postgres && docker rm -v yh-community-contacts-api-postgres", "test:db:postgres:up": "docker start yh-community-contacts-api-postgres" }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "jest": { "collectCoverageFrom": [ "src/**/*.js", "!src/app.js" ], "coverageReporters": [ "text", "lcovonly" ], "coverageThreshold": { "global": { "branches": 100, "functions": 100, "lines": 100, "statements": 100 } }, "snapshotResolver": "./.jest.snapshot-resolver.js", "testEnvironment": "node", "testTimeout": 60000 }, "nodemonConfig": { "env": { "NODE_ENV": "development" }, "watch": [ ".env", "src/**/!(*.test).*" ] }, "devDependencies": { "@commitlint/cli": "^18.6.0", "@commitlint/config-conventional": "^18.6.0", "@eslint-community/eslint-plugin-eslint-comments": "^4.1.0", "@types/jest": "^29.5.11", "autocannon": "^7.14.0", "esbuild": "^0.19.10", "esbuild-plugin-glob": "^2.2.3", "eslint": "^8.56.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest": "^27.6.3", "eslint-plugin-jsdoc": "^48.0.4", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-regexp": "^2.2.0", "eslint-plugin-security": "^2.1.0", "glob": "^10.3.10", "husky": "^9.0.6", "jest": "^29.7.0", "license-checker": "^25.0.1", "lockfile-lint": "^4.12.1", "nodemon": "^3.0.3", "pino-pretty": "^10.3.1", "playwright": "^1.41.1", "prettier": "^3.1.1", "spdx-copyleft": "^1.0.0" }, "dependencies": { "@fastify/accepts": "^4.3.0", "@fastify/autoload": "^5.8.0", "@fastify/basic-auth": "^5.1.1", "@fastify/bearer-auth": "^9.3.0", "@fastify/compress": "^6.5.0", "@fastify/cors": "^8.5.0", "@fastify/helmet": "^11.1.1", "@fastify/rate-limit": "^9.1.0", "@fastify/sensible": "^5.5.0", "@fastify/static": "^6.12.0", "@fastify/swagger": "^8.14.0", "@fastify/under-pressure": "^8.3.0", "bcryptjs": "^2.4.3", "dotenv": "^16.4.1", "env-schema": "^5.2.1", "fastify": "^4.25.2", "fastify-disablecache": "^3.1.9", "fastify-floc-off": "^2.1.11", "fastify-json-to-xml": "^1.1.11", "fastify-plugin": "^4.5.1", "file-stream-rotator": "^1.0.0", "fluent-json-schema": "^4.2.1", "mssql": "^10.0.2", "pg": "^8.11.3", "pg-connection-string": "^2.6.2", "pino": "^8.17.2", "postgrator": "^5.0.1", "redoc": "^2.1.3", "secure-json-parse": "^2.7.0", "upath": "^2.0.1" } }