UNPKG

popsicle-status

Version:

Popsicle middleware for rejecting responses with bad HTTP statuses

98 lines (97 loc) 2.2 kB
{ "name": "popsicle-status", "version": "3.0.0", "description": "Popsicle middleware for rejecting responses with bad HTTP statuses", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist/" ], "scripts": { "prettier": "prettier --write", "lint": "tslint \"src/**/*.ts\" --project tsconfig.json", "format": "npm run prettier -- README.md \"src/**/*.{js,ts}\"", "build": "rimraf dist && tsc", "specs": "jest --coverage", "test": "npm run -s lint && npm run -s build && npm run -s specs && npm run -s size", "prepare": "npm run build", "size": "size-limit" }, "repository": { "type": "git", "url": "git://github.com/blakeembrey/popsicle-status.git" }, "keywords": [ "popsicle", "plugin", "status", "http", "response" ], "author": { "name": "Blake Embrey", "email": "hello@blakeembrey.com", "url": "http://blakeembrey.me" }, "license": "MIT", "bugs": { "url": "https://github.com/blakeembrey/popsicle-status/issues" }, "homepage": "https://github.com/blakeembrey/popsicle-status", "size-limit": [ { "path": "./dist/index.js", "limit": "200 B" } ], "jest": { "roots": [ "<rootDir>/src/" ], "transform": { "\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ] }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,json,css,md}": [ "npm run prettier", "git add" ] }, "publishConfig": { "access": "public" }, "peerDependencies": { "servie": "^4.0.0" }, "devDependencies": { "@types/jest": "^24.0.13", "husky": "^2.4.0", "jest": "^24.8.0", "lint-staged": "^8.2.0", "prettier": "^1.18.2", "servie": "^4.0.6", "size-limit": "^1.3.6", "standard": "^10.0.2", "throwback": "^4.0.0", "ts-jest": "^24.0.2", "tslint": "^5.17.0", "tslint-config-prettier": "^1.18.0", "tslint-config-standard": "^8.0.1", "typescript": "^3.5.1" } }