UNPKG

fetch-check-http-status

Version:

A simple response handler which rejects fetch requests on any non-2xx response.

37 lines (36 loc) 1.08 kB
{ "name": "fetch-check-http-status", "version": "2.0.0", "description": "A simple response handler which rejects fetch requests on any non-2xx response.", "keywords": [ "fetch", "whatwg", "whatwg-fetch" ], "repository": "tough-griff/fetch-check-http-status", "author": "Griffin Yourick <gryphon92@gmail.com>", "license": "MIT", "main": "lib/index.js", "files": [ "lib/" ], "scripts": { "build": "babel src --out-dir=lib", "clean": "rimraf coverage lib", "test:cov": "babel-node $(npm bin)/isparta cover $(npm bin)/_mocha", "test:watch": "npm run test -- --watch", "test": "mocha --compilers=js:babel-core/register", "preversion": "npm run clean && npm run test:cov", "version": "npm run build", "postversion": "git push && git push --tags && npm run clean", "prepublish": "npm run clean && npm run build" }, "devDependencies": { "babel-cli": "^6.8.0", "babel-preset-es2015": "^6.6.0", "expect.js": "^0.3.1", "isparta": "^4.0.0", "mocha": "^2.4.5", "rimraf": "^2.5.2" } }