UNPKG

@ch1/xhr

Version:
102 lines (101 loc) 2.3 kB
{ "name": "@ch1/xhr", "version": "0.3.0", "description": "Simple XHR Wrapper", "keywords": [ "CH1", "XHR", "XmlHttpRequest" ], "main": "dist/index.cjs.js", "module": "dist/index.js", "types": "dist/index.d.ts", "repository": "https://github.com/bennett000/ch1-xhr", "homepage": "https://github.com/bennett000/ch1-xhr", "bugs": "https://github.com/bennett000/ch1-xhr/issues", "author": "dev@michaeljbennett.info", "contributors": [], "license": "LGPL-3.0", "private": false, "scripts": { "prebuild": "rimraf ./dist", "build": "tsc", "postbuild": "rollup --input ./dist/index.js --sourcemap --format cjs --file ./dist/index.cjs.js", "pretest": "rimraf ./coverage && rimraf ./dist", "test": "jest", "test:watch": "jest --watch" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,json,css,md}": [ "prettier --single-quote --write src/**/*.ts", "git add" ] }, "jest": { "collectCoverage": true, "collectCoverageFrom": [ "**/*.{ts,tsx}", "!**/node_modules/**", "!**/coverage/**", "!**/dist/**", "!**/*.d.ts", "!**/interfaces.ts", "!**/index.ts" ], "coverageDirectory": "coverage/", "coveragePathIgnorePatterns": [ "/node_modules/", "/coverage/", "/dist/" ], "coverageReporters": [ "json", "lcov", "text", "html" ], "coverageThreshold": { "global": { "branches": 80, "functions": 80, "lines": 80, "statements": 90 } }, "transform": { "^.+\\.tsx?$": "ts-jest" }, "transformIgnorePatterns": [ "^node_modules/(?!@ch1).*$" ], "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ] }, "devDependencies": { "@types/jest": "^23.3.1", "@types/node": "^10.9.4", "husky": "^1.0.0-rc.13", "jest": "^23.5.0", "lint-staged": "^7.2.2", "prettier": "^1.14.2", "rimraf": "^2.6.2", "rollup": "^0.65.2", "ts-jest": "^23.1.4", "typescript": "^3.0.3" }, "dependencies": { "@ch1/utility": "^0.1.2" } }