UNPKG

@alwatr/fetch

Version:

`@alwatr/fetch` is an enhanced, lightweight, and dependency-free wrapper for the native `fetch` API. It provides modern features like caching strategies, request retries, timeouts, and intelligent duplicate request handling, all in a compact package.

87 lines (86 loc) 2.4 kB
{ "name": "@alwatr/fetch", "version": "9.25.0", "description": "`@alwatr/fetch` is an enhanced, lightweight, and dependency-free wrapper for the native `fetch` API. It provides modern features like caching strategies, request retries, timeouts, and intelligent duplicate request handling, all in a compact package.", "license": "MPL-2.0", "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com> (https://ali.mihandoost.com)", "type": "module", "repository": { "type": "git", "url": "https://github.com/Alwatr/alwatr", "directory": "pkg/nanolib/fetch" }, "homepage": "https://github.com/Alwatr/alwatr/tree/next/pkg/nanolib/fetch#readme", "bugs": "https://github.com/Alwatr/alwatr/issues", "exports": { ".": { "types": "./dist/main.d.ts", "import": "./dist/main.js", "default": "./dist/main.js" } }, "sideEffects": false, "dependencies": { "@alwatr/delay": "9.25.0", "@alwatr/global-this": "9.25.0", "@alwatr/has-own": "9.25.0", "@alwatr/http-primer": "9.25.0", "@alwatr/logger": "9.25.0", "@alwatr/parse-duration": "9.25.0" }, "devDependencies": { "@alwatr/nano-build": "9.25.0", "@alwatr/standard": "9.16.0", "@alwatr/type-helper": "9.14.0", "typescript": "^6.0.3" }, "scripts": { "b": "bun run build", "build": "bun run build:ts && bun run build:es", "build:es": "nano-build --preset=module src/main.ts", "build:ts": "tsc --build", "cl": "bun run clean", "clean": "rm -rfv dist *.tsbuildinfo", "format": "prettier --write \"src/**/*.ts\"", "lint": "eslint src/ --ext .ts", "t": "bun run test", "test": "ALWATR_DEBUG=0 bun test", "w": "bun run watch", "watch": "bun run watch:ts & bun run watch:es", "watch:es": "bun run build:es --watch", "watch:ts": "bun run build:ts --watch --preserveWatchOutput" }, "files": [ "dist", "src/**/*.ts", "!src/**/*.test.ts", "README.md", "LICENSE" ], "publishConfig": { "access": "public" }, "keywords": [ "alwatr", "api", "browser", "cache", "cross-platform", "ECMAScript", "esm", "fetch", "javascript", "module", "nanolib", "node", "nodejs", "request", "retry", "timeout", "typescript", "util", "utility", "utils" ], "gitHead": "a49ae304180faab79539b5ddfe62d18ac91a232e" }