hook-fetch
Version:
A lightweight and modern HTTP request library developed based on the native Fetch API of the browser, providing a user-friendly interface similar to Axios and powerful extensibility.
128 lines (127 loc) • 3.52 kB
JSON
{
"name": "hook-fetch",
"description": "A lightweight and modern HTTP request library developed based on the native Fetch API of the browser, providing a user-friendly interface similar to Axios and powerful extensibility.",
"keywords": [
"fetch",
"axios",
"request",
"http",
"https",
"typescript",
"hook-fetch",
"hook-fetch-plugin",
"hook-fetch-plugin-retry",
"hook-fetch-plugin-timeout",
"hook-fetch-plugin-error",
"hook-fetch-plugin-response",
"hook-fetch-plugin-request",
"hook-fetch-plugin-response-transform",
"hook-fetch-plugin-request-transform"
],
"version": "2.2.0",
"scripts": {
"dev": "vite",
"build:rolldown": "rolldown -c ./rolldown.config.ts",
"build:umd": "vite build -c ./vite.config.umd.ts",
"build:base": "rimraf types && vite build",
"build": "rimraf types && rimraf dist && pnpm build:rolldown",
"publish:release": "npm publish",
"publish:beta": "npm publish --tag beta",
"test": "vitest",
"lint-staged": "lint-staged"
},
"type": "module",
"files": [
"dist",
"types",
"!dist/**/*.map",
"README.md",
"LICENSE",
"CHANGELOG.md",
"README.en.md"
],
"main": "./dist/cjs/index.cjs",
"module": "./dist/es/index.mjs",
"types": "./types/index.d.ts",
"browser": "./dist/umd/index.js",
"unpkg": "./dist/umd/index.js",
"jsdelivr": "./dist/umd/index.js",
"exports": {
".": {
"require": "./dist/cjs/index.cjs",
"import": "./dist/es/index.mjs",
"types": "./types/index.d.ts"
},
"./plugins": {
"require": "./dist/cjs/plugins/index.cjs",
"import": "./dist/es/plugins/index.mjs",
"types": "./types/plugins/index.d.ts"
},
"./plugins/sse": {
"require": "./dist/cjs/plugins/sse.cjs",
"import": "./dist/es/plugins/sse.mjs",
"types": "./types/plugins/sse.d.ts"
},
"./vue": {
"require": "./dist/cjs/vue/index.cjs",
"import": "./dist/es/vue/index.mjs",
"types": "./types/vue/index.d.ts"
},
"./react": {
"require": "./dist/cjs/react/index.cjs",
"import": "./dist/es/react/index.mjs",
"types": "./types/react/index.d.ts"
}
},
"repository": {
"type": "git",
"url": "https://github.com/JsonLee12138/hook-fetch"
},
"homepage": "https://jsonlee12138.github.io/hook-fetch/",
"bugs": {
"url": "https://github.com/JsonLee12138/hook-fetch/issues",
"email": "lijunsong2@gmail.com"
},
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.28.1",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@jsonlee/tsconfig": "workspace:^",
"@types/express": "^5.0.3",
"@types/qs": "^6.9.18",
"@types/react": "^19.1.7",
"cz-git": "^1.11.1",
"dotenv": "^17.1.0",
"express": "^5.1.0",
"husky": "^9.1.7",
"lint-staged": "^13.2.0",
"oxlint": "^0.16.3",
"react": "^19.1.0",
"rimraf": "^6.0.1",
"rolldown": "1.0.0-beta.28",
"rolldown-plugin-dts": "^0.13.6",
"typescript": "^5.7.3",
"vite": "npm:rolldown-vite@latest",
"vite-plugin-dts": "^4.5.3",
"vitest": "^3.0.8",
"vue": "^3.5.16"
},
"peerDependencies": {
"react": ">=19.1.0",
"typescript-api-pro": ">=0.0.6",
"vue": ">=3.5.16"
},
"dependencies": {
"qs": "^6.14.0",
"radash": "^12.1.0"
},
"overrides": {
"vite": "npm:rolldown-vite@latest"
},
"config": {
"commitizen": {
"path": "node_modules/cz-git"
}
}
}