@dschz/try-catch
Version:
Simple try-catch utility function for JavaScript
90 lines (89 loc) • 2.27 kB
JSON
{
"name": "@dschz/try-catch",
"version": "1.1.3",
"description": "Simple try-catch utility function for JavaScript",
"type": "module",
"author": "Daniel Sanchez <dsanc89@pm.me>",
"license": "MIT",
"homepage": "https://github.com/dsnchz/try-catch#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/dsnchz/try-catch.git"
},
"bugs": {
"url": "https://github.com/dsnchz/try-catch/issues"
},
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"keywords": [
"try-catch",
"try catch",
"error handling",
"safe await",
"promise wrapper",
"tuple result",
"sync async utility",
"non-throwing",
"typescript",
"javascript",
"await error",
"error tuple",
"error-first",
"safe function wrapper",
"try-catch utility"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"browser": {},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"typesVersions": {},
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"dev": "vite",
"format": "prettier . --check",
"format:fix": "prettier . --write",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"pkg:changeset": "changeset",
"pkg:version": "changeset version",
"pkg:publish": "bun run build && changeset publish",
"serve": "vite preview",
"start": "vite",
"test": "vitest run",
"test:cov": "vitest run --coverage",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@changesets/cli": "^2.29.3",
"@tailwindcss/vite": "^4.1.5",
"@types/bun": "^1.2.12",
"@typescript-eslint/eslint-plugin": "^8.32.0",
"@typescript-eslint/parser": "^8.32.0",
"@vitest/coverage-istanbul": "^3.1.3",
"eslint": "^9.26.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-solid": "^0.14.5",
"globals": "^16.1.0",
"jiti": "^2.4.2",
"jsdom": "^26.1.0",
"prettier": "^3.5.3",
"tailwindcss": "^4.1.5",
"tsup": "^8.4.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.32.0",
"vite": "^6.3.5",
"vite-plugin-solid": "^2.11.6",
"vitest": "^3.1.3"
}
}