return-fetch
Version:
A very light and simple library to extend fetch by implementing request, response interceptors.
83 lines (82 loc) • 2.33 kB
JSON
{
"name": "return-fetch",
"type": "module",
"version": "0.4.8",
"description": "A very light and simple library to extend fetch by implementing request, response interceptors.",
"source": "src/index.ts",
"exports": {
".": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.js",
"unpkg": "dist/index.umd.js",
"files": [
"dist/**/*",
"package.json"
],
"scripts": {
"preinstall": "npx only-allow pnpm",
"setup": "husky install",
"clean": "rimraf dist",
"bundle": "microbundle --format modern,cjs,umd",
"typedoc": "typedoc src/index.ts --out docs/public/docs",
"build": "pnpm run clean && pnpm run bundle && sh ./scripts/generate-cts.sh",
"dev": "microbundle watch",
"prepublishOnly": "pnpm run test && pnpm run build",
"watch": "pnpm run clean && tsc -w",
"test": "vitest run --dir tests",
"test:watch": "vitest --dir tests",
"coverage": "vitest run --coverage --dir tests",
"prettier": "prettier . --write",
"lint": "eslint src/**",
"lint-staged": "lint-staged",
"check": "tsc --strict --noEmit --extendedDiagnostics",
"set-version": "sh ./scripts/set-version.sh"
},
"repository": {
"type": "git",
"url": "https://github.com/myeongjae-kim/return-fetch"
},
"homepage": "https://return-fetch.myeongjae.kim",
"keywords": [
"fetch",
"interceptor",
"request",
"response",
"baseURL",
"baseUrl",
"default headers",
"header",
"nextjs"
],
"author": "Myeongjae Kim",
"license": "MIT",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"@vitest/coverage-v8": "^0.33.0",
"eslint": "^8.45.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"microbundle": "^0.15.1",
"prettier": "3.0.0",
"prettier-plugin-tailwindcss": "^0.4.1",
"rimraf": "^5.0.1",
"typedoc": "^0.24.8",
"typescript": "^5.1.6",
"vitest": "^0.33.0"
}
}