{ "name": "swagger2-koa", "version": "4.0.0", "description": "Koa 2 middleware for loading, parsing and validating requests via swagger2", "main": "dist/index.js", "engines": { "node": ">=16" }, "repository": { "type": "git", "url": "git+https://github.com/carlansley/swagger2-koa.git" }, "keywords": [ "swagger", "swagger2", "typescript", "koa", "koa2" ], "author": "Carl Ansley", "license": "MIT", "bugs": { "url": "https://github.com/carlansley/swagger2-koa/issues" }, "homepage": "https://github.com/carlansley/swagger2-koa#readme", "typings": "./dist/index.d.ts", "prettier": "@checkdigit/prettier-config", "dependencies": { "@koa/cors": "^3.4.1", "@koa/router": "^12.0.0", "@types/koa-bodyparser": "^5.0.1", "debug": "^4.3.4", "koa": "^2.13.4", "koa-bodyparser": "^4.3.0", "swagger2": "^4.0.2" }, "devDependencies": { "@checkdigit/eslint-config": "^7.2.0", "@checkdigit/prettier-config": "^3.0.0", "@checkdigit/typescript-config": "^3.0.1", "@types/debug": "4.1.7", "@types/jest": "^28.1.7", "@types/koa": "^2.13.5", "@types/koa__cors": "^3.3.0", "@types/koa__router": "^8.0.11", "@types/koa-send": "^4.1.3", "@types/supertest": "^2.0.12", "jest": "^28.1.3", "rimraf": "^3.0.2", "supertest": "^6.2.4", "ts-jest": "^28.0.8", "ts-node": "^10.9.1" }, "maintainers": [ { "email": "carl.ansley@gmail.com", "name": "Carl Ansley" } ], "jest": { "preset": "ts-jest", "collectCoverageFrom": [ "/src/**", "!/src/**/*.json", "!/src/**/*.spec.ts", "!/src/**/*.test.ts" ], "globals": { "ts-jest": { "isolatedModules": true, "diagnostics": false } }, "testMatch": [ "/src/**/*.spec.ts" ] }, "scripts": { "dist": "rimraf dist && tsc --outDir dist && rimraf dist/*.spec.*", "prepublishOnly": "npm run dist && rimraf .github src .eslintrc .gitignore tsconfig.json", "lint": "eslint -f unix src/**/*.ts", "lint:fix": "eslint -f unix src/**/*.ts --fix", "prettier": "prettier --list-different .", "prettier:fix": "prettier --write .", "test": "npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style", "ci:compile": "tsc --noEmit", "ci:test": "jest --coverage=false", "ci:coverage": "jest --coverage=true", "ci:lint": "npm run lint", "ci:style": "npm run prettier" } }