UNPKG

safety-number-one

Version:

Utility functions to work with Promises, functions and async functions safely by converting throws to Result Tuple types

56 lines 1.38 kB
{ "name": "safety-number-one", "version": "1.0.2", "description": "Utility functions to work with Promises, functions and async functions safely by converting throws to Result Tuple types", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/esm/index.d.ts", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "./global": { "import": "./dist/esm/global.js", "require": "./dist/cjs/global.js" } }, "sideEffects": [ "./dist/esm/global.js", "./dist/cjs/global.js" ], "files": [ "dist" ], "scripts": { "build:cjs": "npx tsc -p tsconfig.cjs.json", "build:esm": "npx tsc -p tsconfig.esm.json", "build": "npm run build:cjs && npm run build:esm" }, "repository": { "type": "git", "url": "git+https://github.com/Jaimeloeuf/safety-number-one.git" }, "keywords": [ "typescript", "safety", "safe", "catch", "error", "result", "throw" ], "author": "JJ", "license": "ISC", "bugs": { "url": "https://github.com/Jaimeloeuf/safety-number-one/issues" }, "homepage": "https://github.com/Jaimeloeuf/safety-number-one#readme", "devDependencies": { "typescript": "^5.8.3" }, "dependencies": { "convert-unknown-catch-to-error": "^1.0.3", "nice-types": "^1.0.1" } }