UNPKG

hono-ban

Version:

HTTP-friendly error objects for Hono, inspired by Boom

81 lines (80 loc) 2.25 kB
{ "name": "hono-ban", "version": "0.3.1", "description": "HTTP-friendly error objects for Hono, inspired by Boom", "type": "module", "main": "dist/esm/index.js", "types": "dist/types/index.d.ts", "files": [ "dist/*", "LICENSE.md", "README.md" ], "exports": { ".": { "types": "./dist/types/index.d.ts", "default": "./dist/esm/index.js" }, "./formatters/rfc7807": { "types": "./dist/types/formatters/rfc7807/index.d.ts", "default": "./dist/esm/formatters/rfc7807/index.js" } }, "sideEffects": false, "scripts": { "build": "bun run build:esm && bun run build:declaration", "build:esm": "bun build --target=node --format=esm --packages=external --outdir=dist/esm --minify ./src/index.ts && bun build --target=node --format=esm --packages=external --outdir=dist/esm/formatters --minify ./src/formatters/rfc7807/index.ts", "build:declaration": "tsc --emitDeclarationOnly --project tsconfig.types.json", "postbuild": "rimraf tsconfig.types.tsbuildinfo", "dev": "bun build --target=node --format=esm --packages=external --outdir=dist/esm --watch ./src/index.ts", "test": "bun test", "test:watch": "bun test --watch", "test:coverage": "bun test --coverage", "prepublishOnly": "bun run build" }, "peerDependencies": { "hono": "^4.7.0", "typescript": "^5.7.3" }, "peerDependenciesMeta": { "@hono/zod-openapi": { "optional": true } }, "devDependencies": { "@hono/zod-openapi": "^0.9.6", "@types/bun": "latest", "hono": "^4.7.0", "rimraf": "^6.0.1" }, "keywords": [ "hono", "ban", "error", "errors", "middleware", "http-errors", "status-codes", "error-handling", "web", "api", "rfc7807", "problem-details", "json-api" ], "repository": { "type": "git", "url": "https://github.com/ali-issa/hono-ban.git", "directory": "packages/core" }, "bugs": { "url": "https://github.com/ali-issa/hono-ban/issues" }, "homepage": "https://github.com/ali-issa/hono-ban#readme", "author": "Ali Issa <ali@issa.cm> (https://github.com/ali-issa)", "license": "MIT", "engines": { "bun": ">=1.0.0", "node": ">=18.0.0" } }