safe-flow
Version:
A safer way to cancel or interrupt the await-async flow.
84 lines (83 loc) • 2.34 kB
JSON
{
"name": "safe-flow",
"version": "0.3.6",
"description": "A safer way to cancel or interrupt the await-async flow.",
"keywords": [
"typescript",
"safely",
"cancelable",
"interruptible",
"await-async",
"promise",
"flow",
"error-first"
],
"main": "dist/cjs/safe-flow.cjs.js",
"module": "dist/esm/safe-flow.esm.js",
"types": "dist/types/index.d.ts",
"files": [
"dist"
],
"scripts": {
"test": "jest",
"ts:check": "tsc --noEmit -p tsconfig.build.json",
"build:js": "rollup -c",
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
"build:clean": "del dist",
"build": "npm run ts:check && eslint --ext .ts,.js ./src && npm run build:clean && npm run build:js && npm run build:types",
"release": "np",
"version": "npm run build",
"prepare": "husky install"
},
"lint-staged": {
"*.{ts,js}": [
"prettier --write",
"eslint --fix",
"jest --bail --findRelatedTests"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/Youmenomi/safe-flow.git"
},
"author": "Dean Yao <youmenomi@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Youmenomi/safe-flow/issues"
},
"homepage": "https://github.com/Youmenomi/safe-flow#readme",
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-decorators": "^7.13.5",
"@babel/preset-env": "^7.13.12",
"@babel/preset-typescript": "^7.13.0",
"@types/jest": "^26.0.21",
"@types/node": "^24.0.3",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"axios": "^0.21.1",
"axios-mock-adapter": "^1.19.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"cross-fetch": "^3.1.2",
"del-cli": "^3.0.1",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"fetch-mock": "^9.11.0",
"husky": "^5.2.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"mobx": "^6.1.8",
"np": "^7.4.0",
"prettier": "^2.2.1",
"rollup": "^2.42.3",
"rollup-simple-configer": "^0.1.1",
"ts-jest": "^26.5.4",
"typescript": "^4.2.3"
},
"dependencies": {
"catch-first": "^0.3.2",
"custom-defaults": "^0.1.2"
}
}