UNPKG

promise-finally

Version:

Simple wrapper to run promise "finally" logic

94 lines (93 loc) 2.16 kB
{ "name": "promise-finally", "version": "3.0.1", "description": "Simple wrapper to run promise \"finally\" logic", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist/" ], "scripts": { "prettier": "prettier --write", "lint": "tslint \"src/**/*.{js,jsx,ts,tsx}\" --project tsconfig.json", "format": "npm run prettier -- \"{.,src/**}/*.{js,jsx,ts,tsx,md,yml,yaml}\"", "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/promise-finally.git" }, "keywords": [ "promise", "finally", "done", "always", "complete", "cleanup" ], "author": { "name": "Blake Embrey", "email": "hello@blakeembrey.com", "url": "http://blakeembrey.me" }, "license": "MIT", "bugs": { "url": "https://github.com/blakeembrey/promise-finally/issues" }, "homepage": "https://github.com/blakeembrey/promise-finally", "jest": { "roots": [ "<rootDir>/src/" ], "transform": { "\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ] }, "size-limit": [ { "path": "./dist/index.js", "limit": "100 B" } ], "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,jsx,ts,tsx,json,css,md,yml,yaml}": [ "npm run prettier", "git add" ] }, "publishConfig": { "access": "public" }, "devDependencies": { "@size-limit/preset-small-lib": "^2.1.6", "@types/jest": "^24.0.22", "@types/node": "^12.12.6", "husky": "^3.0.9", "jest": "^24.9.0", "lint-staged": "^9.4.2", "prettier": "^1.18.2", "ts-jest": "^24.1.0", "tslint": "^5.20.1", "tslint-config-prettier": "^1.18.0", "tslint-config-standard": "^9.0.0", "typescript": "^3.7.2" } }