@happy-ts/fetch-t
Version:
Type-safe Fetch API wrapper with abortable requests, timeout support, progress tracking, automatic retry, and Rust-like Result error handling.
74 lines (73 loc) • 1.85 kB
JSON
{
"name": "@happy-ts/fetch-t",
"description": "Type-safe Fetch API wrapper with abortable requests, timeout support, progress tracking, automatic retry, and Rust-like Result error handling.",
"author": "jiang115jie@gmail.com",
"license": "MIT",
"version": "1.9.1",
"type": "module",
"main": "dist/main.cjs",
"module": "dist/main.mjs",
"types": "dist/types.d.ts",
"exports": {
".": {
"types": "./dist/types.d.ts",
"import": "./dist/main.mjs",
"require": "./dist/main.cjs",
"default": "./dist/main.mjs"
},
"./package.json": "./package.json"
},
"files": [
"LICENSE",
"README.md",
"CHANGELOG.md",
"dist"
],
"sideEffects": false,
"scripts": {
"check": "pnpm exec tsc --noEmit",
"lint": "pnpm exec eslint .",
"prebuild": "pnpm run check && pnpm run lint",
"build": "pnpm exec vite build",
"test": "pnpm exec vitest run --coverage",
"test:watch": "pnpm exec vitest",
"test:ui": "pnpm exec vitest --ui",
"predocs": "pnpm dlx rimraf docs",
"docs": "pnpm exec typedoc",
"eg": "node examples/main.ts",
"prepublishOnly": "pnpm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/JiangJie/fetch-t.git"
},
"keywords": [
"fetch",
"abort",
"cancel",
"timeout",
"progress",
"streaming",
"retry",
"type-safe",
"typescript",
"result",
"async"
],
"devDependencies": {
"@eslint/js": "^9.39.2",
"@stylistic/eslint-plugin": "^5.7.0",
"@vitest/coverage-v8": "^4.0.17",
"eslint": "^9.39.2",
"msw": "^2.12.7",
"typedoc": "^0.28.16",
"typescript": "^5.9.3",
"typescript-eslint": "^8.53.0",
"vite": "^7.3.1",
"vite-plugin-dts": "^4.5.4",
"vitest": "^4.0.17"
},
"dependencies": {
"happy-rusty": "^1.9.1"
}
}