packages/exception/package.json
{
"name": "@httpx/exception",
"description": "HTTP response errors with default message, stacktrace, instanceof, error cause support and more.",
"version": "3.0.11",
"license": "MIT",
"author": {
"name": "Vanvelthem Sébastien",
"url": "https://github.com/belgattitude"
},
"homepage": "https://github.com/belgattitude/httpx/tree/main/packages/exception#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/belgattitude/httpx.git",
"directory": "packages/exception"
},
"keywords": [
"http error",
"http exception",
"http response error",
"http status code",
"http status"
],
"sideEffects": false,
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./experimental": {
"import": {
"types": "./dist/experimental/index.d.ts",
"default": "./dist/experimental/index.mjs"
},
"require": {
"types": "./dist/experimental/index.d.cts",
"default": "./dist/experimental/index.cjs"
}
},
"./serializer": {
"import": {
"types": "./dist/serializer/index.d.ts",
"default": "./dist/serializer/index.mjs"
},
"require": {
"types": "./dist/serializer/index.d.cts",
"default": "./dist/serializer/index.cjs"
}
},
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"serializer": [
"./dist/serializer"
],
"experimental": [
"./dist/experimental"
]
}
},
"files": [
"dist",
"README.md",
"UPGRADE.md",
"package.json",
"LICENSE",
"CHANGELOG.md"
],
"scripts": {
"?build-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick",
"build-release": "yarn build",
"build": "run clean && yarn run tsup",
"bench": "vitest bench --run",
"bench-watch": "vitest bench",
"clean": "rimraf ./dist ./coverage ./tsconfig.tsbuildinfo",
"docgen": "run-s docgen-typedoc",
"docgen-typedoc": "rimraf ./docs/api && typedoc --plugin typedoc-plugin-markdown --out ./docs/api",
"prettier-check": "run --top-level prettier --check --cache --cache-location=\"../../.cache/prettier/exception.prettiercache\" --config ../../.prettierrc.js --ignore-path ../../.prettierignore \"./**/*.{js,jsx,cjs,mjs,ts,tsx,mts,md,mdx,json,css,scss,less}\"",
"prettier-fix": "run --top-level prettier --write --cache --cache-location=\"../../.cache/prettier/exception.prettiercache\" --config ../../.prettierrc.js --ignore-path ../../.prettierignore \"./**/*.{js,jsx,cjs,mjs,ts,tsx,mts,md,mdx,json,css,scss,less}\"",
"lint": "eslint . --ext .ts,.tsx,.js,.jsx,.mjs,.cjs,.mts,.cts --cache --cache-location ../../.cache/eslint/exception.eslintcache",
"lint-timing": "cross-env TIMING=1 run lint",
"typecheck": "tsc --project ./tsconfig.json --noEmit",
"check-dist": "run-s check-dist-esm check-dist-cjs",
"check-dist-cjs": "es-check --not './dist/cjs/*.map.js' -v es2022 './dist/**/*.cjs'",
"check-dist-esm": "es-check --not './dist/esm/*.map.js' -v es2022 --module './dist/**/*.mjs'",
"check-size": "size-limit",
"check-pub": "attw --pack && publint",
"test": "vitest run",
"test-unit": "vitest run",
"test-unit-coverage": "vitest run --coverage",
"test-unit-edge": "vitest run --environment edge-runtime",
"test-unit-browser": "vitest run --browser",
"test-unit-cloudflare": "vitest run --config ./vitest.cloudflare.config.ts",
"test-unit-watch": "vitest --ui --api 4212",
"fix-all-files": "eslint . --ext .ts,.tsx,.js,.jsx,.mjs,.cjs,.mts,.cts --fix",
"ci-coverage-upload": "../../.github/scripts/download/codecov -F httpx-exception-unit --dir ./coverage"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.16.4",
"@belgattitude/eslint-config-bases": "6.3.0",
"@httpx/devtools-vitest": "workspace:^",
"@size-limit/file": "11.1.6",
"@size-limit/webpack": "11.1.6",
"@size-limit/webpack-why": "11.1.6",
"@types/node": "22.8.6",
"@types/statuses": "2.0.5",
"browserslist": "4.24.2",
"browserslist-to-esbuild": "2.1.1",
"cross-env": "7.0.3",
"es-check": "7.2.1",
"esbuild": "0.24.0",
"eslint": "8.57.1",
"npm-run-all2": "7.0.1",
"publint": "0.2.12",
"rimraf": "6.0.1",
"rollup": "4.24.3",
"size-limit": "11.1.6",
"statuses": "2.0.1",
"superjson": "2.2.1",
"tsup": "8.3.5",
"tupleson": "0.23.1",
"typedoc": "0.26.10",
"typedoc-plugin-markdown": "4.2.9",
"typescript": "5.6.3",
"vitest": "2.1.4",
"webpack": "5.96.0"
},
"engines": {
"node": ">=18"
}
}