UNPKG

swagger2-koa

Version:

Koa 2 middleware for loading, parsing and validating requests via swagger2

95 lines (94 loc) 3.22 kB
{ "name": "swagger2-koa", "version": "5.1.0", "description": "Koa 2 middleware for loading, parsing and validating requests via swagger2", "keywords": [ "swagger", "swagger2", "typescript", "koa", "koa2" ], "homepage": "https://github.com/carlansley/swagger2-koa#readme", "bugs": { "url": "https://github.com/carlansley/swagger2-koa/issues" }, "repository": { "type": "git", "url": "git+https://github.com/carlansley/swagger2-koa.git" }, "license": "MIT", "author": "Carl Ansley", "maintainers": [ { "name": "Carl Ansley", "email": "carl.ansley@gmail.com" } ], "sideEffects": false, "type": "module", "exports": { ".": { "types": "./dist-types/index.d.ts", "import": "./dist-mjs/index.mjs", "default": "./dist-mjs/index.mjs" } }, "files": [ "src", "dist-types", "dist-mjs", "!src/**/test/**", "!src/**/*.test.ts", "!src/**/*.spec.ts", "!dist-types/**/test/**", "!dist-types/**/*.test.d.ts", "!dist-types/**/*.spec.d.ts", "!dist-mjs/**/test/**", "!dist-mjs/**/*.test.mjs", "!dist-mjs/**/*.spec.mjs", "SECURITY.md" ], "scripts": { "build:dist-mjs": "rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs", "build:dist-types": "rimraf dist-types && npx builder --type=types --outDir=dist-types", "ci:compile": "tsc --noEmit", "ci:coverage": "rimraf coverage && mkdir coverage && node --disable-warning ExperimentalWarning --experimental-strip-types --test-timeout 600000 --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage/lcov.info --test \"src/**/*.spec.ts\"", "ci:lint": "npm run lint", "ci:style": "npm run prettier", "ci:test": "node --disable-warning ExperimentalWarning --experimental-strip-types --test-timeout 600000 --test \"src/**/*.spec.ts\"", "clean": "npm cache verify && rimraf coverage node_modules", "coverage": "node --disable-warning ExperimentalWarning --experimental-strip-types --test-timeout 600000 --experimental-test-coverage --test \"src/**/*.spec.ts\"", "lint": "eslint --max-warnings 0 .", "lint:fix": "eslint . --fix", "prepare": "", "prepublishOnly": "npm run build:dist-types && npm run build:dist-mjs", "prettier": "prettier --ignore-path .gitignore --list-different .", "prettier:fix": "prettier --ignore-path .gitignore --write .", "test": "npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style" }, "prettier": "@checkdigit/prettier-config", "dependencies": { "@koa/bodyparser": "^6.0.0", "@koa/cors": "^5.0.0", "@koa/router": "^13.1.1", "debug": "^4.4.1", "koa": "^3.0.1", "swagger2": "^5.0.1" }, "devDependencies": { "@checkdigit/eslint-config": "^11.2.7", "@checkdigit/prettier-config": "^7.1.1", "@checkdigit/typescript-config": "^9.2.0", "@types/debug": "4.1.12", "@types/koa": "^3.0.0", "@types/koa__cors": "^5.0.0", "@types/koa__router": "^12.0.4", "@types/supertest": "^6.0.3", "rimraf": "^6.0.1", "supertest": "^7.1.4" }, "engines": { "node": ">=22" } }