UNPKG

@eggjs/onerror

Version:
94 lines (93 loc) 2.13 kB
{ "name": "@eggjs/onerror", "version": "3.0.0", "publishConfig": { "access": "public" }, "description": "error handler for egg", "eggPlugin": { "name": "onerror", "optionalDependencies": [ "jsonp" ], "exports": { "import": "./dist/esm", "require": "./dist/commonjs", "typescript": "./src" } }, "repository": { "type": "git", "url": "https://github.com/eggjs/onerror.git" }, "keywords": [ "egg", "egg-plugin", "onerror" ], "author": "dead_horse", "engines": { "node": ">= 18.19.0" }, "dependencies": { "@eggjs/core": "^6.3.1", "cookie": "^1.0.2", "koa-onerror": "^5.0.1", "mustache": "^4.2.0", "stack-trace": "^0.0.10" }, "devDependencies": { "@arethetypeswrong/cli": "^0.17.3", "@eggjs/bin": "7", "@eggjs/mock": "^6.0.5", "@eggjs/tsconfig": "1", "@types/mocha": "10", "@types/mustache": "^4.2.5", "@types/node": "22", "@types/stack-trace": "^0.0.33", "egg": "^4.0.4", "eslint": "8", "eslint-config-egg": "14", "rimraf": "6", "tshy": "3", "tshy-after": "1", "typescript": "5" }, "scripts": { "lint": "eslint --cache src test --ext .ts", "pretest": "npm run clean && npm run lint -- --fix", "test": "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" }