UNPKG

@ingeze/api-error

Version:

A TypeScript library for handling HTTP errors in Express, NestJS, and Fastify APIs.

97 lines (96 loc) 2.29 kB
{ "name": "@ingeze/api-error", "version": "1.3.0", "main": "dist/index.js", "type": "module", "files": [ "dist/**/*" ], "types": "dist/index.d.ts", "publishConfig": { "access": "public" }, "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.js" }, "./express": { "types": "./dist/express.d.ts", "import": "./dist/express.js", "require": "./dist/express.js" }, "./nest": { "types": "./dist/nest.d.ts", "import": "./dist/nest.js", "require": "./dist/nest.js" }, "./fastify": { "types": "./dist/fastify.d.ts", "import": "./dist/fastify.js", "require": "./dist/fastify.js" } }, "scripts": { "start": "node dist/index.js", "test": "jest", "build": "node build.js", "build:types": "tsc --emitDeclarationOnly", "dev": "node esbuild.config.js && node dist/main.js", "prepublishOnly": "npm run build:types && node esbuild.config.js", "clean": "rm -rf dist", "docs": "typedoc" }, "keywords": [ "error", "api", "http", "typescript", "express", "nestjs", "fastify", "error-handling", "rest", "http-error", "api-error-handling" ], "author": "Ezequiel Saucedo", "license": "MIT", "description": "A TypeScript library for handling HTTP errors in Express, NestJS, and Fastify APIs.", "repository": { "type": "git", "url": "git+https://github.com/ingEze/api-error.git" }, "homepage": "https://github.com/ingeze/api-error#readme", "bugs": { "url": "https://github.com/ingeze/api-error/issues" }, "engines": { "node": ">=18.0.0" }, "devDependencies": { "@eslint/js": "9.29.0", "@nestjs/common": "11.1.3", "@types/express": "5.0.3", "@types/jest": "29.5.14", "@types/node": "24.0.1", "@types/supertest": "6.0.3", "esbuild": "0.25.5", "eslint": "9.29.0", "globals": "16.2.0", "jest": "30.0.0", "supertest": "7.1.1", "ts-jest": "29.4.0", "typedoc": "0.28.5", "typescript": "5.8.3", "typescript-eslint": "8.34.0" }, "peerDependencies": { "express": ">=4.0.0", "fastify": ">=4.0.0" }, "dependencies": { "zod": "4.1.12" } }