UNPKG

koa-onerror

Version:

koa error handler, hack ctx.onerror

88 lines (87 loc) 2.14 kB
{ "name": "koa-onerror", "version": "5.0.1", "description": "koa error handler, hack ctx.onerror", "repository": { "type": "git", "url": "git://github.com/koajs/onerror.git" }, "keywords": [ "koa", "middleware", "error" ], "author": "dead_horse <dead_horse@qq.com>", "license": "MIT", "bugs": { "url": "https://github.com/koajs/onerror/issues" }, "homepage": "https://github.com/koajs/onerror", "engines": { "node": ">= 18.19.0" }, "dependencies": { "escape-html": "^1.0.3", "stream-wormhole": "^2.0.1" }, "devDependencies": { "@arethetypeswrong/cli": "^0.17.3", "@eggjs/bin": "7", "@eggjs/supertest": "^8.2.0", "@eggjs/tsconfig": "1", "@types/escape-html": "^1.0.4", "@types/koa": "^2.15.0", "@types/mocha": "10", "@types/node": "22", "co-busboy": "^1.4.0", "eslint": "8", "eslint-config-egg": "14", "formstream": "^1.5.1", "koa": "2", "mm": "^4.0.2", "rimraf": "6", "snap-shot-it": "^7.9.10", "tshy": "3", "tshy-after": "1", "typescript": "5", "urllib": "^4.6.11" }, "scripts": { "lint": "eslint --cache src test --ext .ts", "pretest": "npm run clean && npm run lint -- --fix", "test": "egg-bin test", "test:snapshot:update": "SNAPSHOT_UPDATE=1 egg-bin test", "preci": "npm run clean && npm run lint", "ci": "egg-bin cov", "postci": "npm run prepublishOnly && npm run clean", "clean": "rimraf dist", "prepublishOnly": "tshy && tshy-after && attw --pack" }, "type": "module", "tshy": { "exports": { ".": "./src/index.ts", "./package.json": "./package.json" } }, "exports": { ".": { "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/commonjs/index.d.ts", "default": "./dist/commonjs/index.js" } }, "./package.json": "./package.json" }, "files": [ "dist", "src" ], "types": "./dist/commonjs/index.d.ts", "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.js" }