UNPKG

yhttperror

Version:

Better HTTP errors for your NodeJS server.

195 lines (194 loc) 4.75 kB
{ "metapak": { "configs": [ "main", "readme", "eslint", "tsesm", "codeclimate", "jest", "ghactions", "jsdocs" ], "data": { "files": "'src/**/*.ts'", "testsFiles": "'src/**/*.test.ts'", "distFiles": "'dist/**/*.js'", "ignore": [ "dist" ], "bundleFiles": [ "dist", "src" ] } }, "name": "yhttperror", "version": "8.1.0", "description": "Better HTTP errors for your NodeJS server.", "scripts": { "build": "rimraf 'dist' && tsc --outDir dist", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md", "cli": "env NODE_ENV=${NODE_ENV:-cli}", "cover": "npm run jest -- --coverage", "coveralls": "npm run cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", "cz": "env NODE_ENV=${NODE_ENV:-cli} git cz", "doc": "echo \"# API\" > API.md; jsdoc2md 'dist/**/*.js' >> API.md && git add API.md", "jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest", "lint": "eslint 'src/**/*.ts'", "metapak": "metapak", "precz": "npm t && npm run lint && npm run build && npm run doc && npm run metapak -- -s", "prettier": "prettier --write 'src/**/*.ts'", "preversion": "npm t && npm run lint && npm run build && npm run doc && npm run metapak -- -s", "rebuild": "swc ./src -s -d dist -C jsc.target=es2022", "test": "echo \"WARNING: No tests specified\" && npm run jest", "type-check": "tsc --pretty --noEmit", "version": "npm run changelog" }, "engines": { "node": ">=18.16.0" }, "repository": { "type": "git", "url": "git://github.com/nfroidure/yhttperror.git" }, "keywords": [ "http", "error", "why", "better" ], "author": { "name": "Nicolas Froidure (formerly at Simplifield)", "email": "nicolas.froidure@insertafter.com", "url": "http://insertafter.com/en/index.html" }, "license": "MIT", "bugs": { "url": "https://github.com/nfroidure/yhttperror/issues" }, "devDependencies": { "@swc/cli": "^0.1.62", "@swc/core": "^1.3.77", "@swc/helpers": "^0.5.1", "@swc/jest": "^0.2.29", "@typescript-eslint/eslint-plugin": "^6.4.0", "@typescript-eslint/parser": "^6.4.0", "commitizen": "^4.3.0", "conventional-changelog-cli": "^3.0.0", "coveralls": "^3.1.1", "cz-conventional-changelog": "^3.3.0", "eslint": "^8.47.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.0", "jest": "^29.6.2", "jsdoc-to-markdown": "^8.0.0", "metapak": "^5.1.6", "metapak-nfroidure": "15.0.2", "prettier": "^3.0.2", "rimraf": "^5.0.1", "typescript": "^5.1.6" }, "dependencies": { "yerror": "^8.0.0" }, "contributors": [], "files": [ "dist", "src", "LICENSE", "README.md", "CHANGELOG.md" ], "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "greenkeeper": { "ignore": [ "commitizen", "cz-conventional-changelog", "conventional-changelog-cli", "eslint", "prettier", "eslint-config-prettier", "eslint-plugin-prettier", "@typescript-eslint/eslint-plugin", "@typescript-eslint/parser", "typescript", "rimraf", "@swc/cli", "@swc/core", "@swc/helpers", "jest", "coveralls", "@swc/jest", "jsdoc-to-markdown" ] }, "eslintConfig": { "extends": [ "eslint:recommended", "plugin:prettier/recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended" ], "parserOptions": { "ecmaVersion": 2018, "sourceType": "script", "modules": true }, "env": { "es6": true, "node": true, "jest": true, "mocha": true }, "plugins": [ "prettier" ], "rules": { "prettier/prettier": "error" }, "parser": "@typescript-eslint/parser", "ignorePatterns": [ "*.d.ts" ] }, "prettier": { "semi": true, "printWidth": 80, "singleQuote": true, "trailingComma": "all", "proseWrap": "always" }, "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "jest": { "coverageReporters": [ "lcov" ], "testPathIgnorePatterns": [ "/node_modules/" ], "roots": [ "<rootDir>/src" ], "transform": { "^.+\\.tsx?$": [ "@swc/jest", {} ] }, "testEnvironment": "node", "moduleNameMapper": { "(.+)\\.js": "$1" }, "extensionsToTreatAsEsm": [ ".ts" ], "prettierPath": null } }