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.

93 lines (92 loc) 2.71 kB
{ "name": "@alwatr/fetch", "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.", "version": "7.1.4", "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>", "bugs": "https://github.com/Alwatr/nanolib/issues", "dependencies": { "@alwatr/delay": "6.0.20", "@alwatr/global-this": "5.6.9", "@alwatr/has-own": "5.6.7", "@alwatr/http-primer": "6.0.20", "@alwatr/logger": "6.0.17", "@alwatr/parse-duration": "5.5.29" }, "devDependencies": { "@alwatr/nano-build": "6.4.1", "@alwatr/prettier-config": "6.0.2", "@alwatr/tsconfig-base": "6.0.4", "@alwatr/type-helper": "7.0.1", "@jest/globals": "^30.2.0", "jest": "^30.2.0", "typescript": "^5.9.3" }, "exports": { ".": { "types": "./dist/main.d.ts", "import": "./dist/main.mjs", "require": "./dist/main.cjs" } }, "files": [ "**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}", "LICENSE", "!demo/**/*", "!**/*.test.js" ], "homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/fetch#readme", "keywords": [ "alwatr", "api", "browser", "cache", "cross-platform", "ECMAScript", "esm", "fetch", "javascript", "module", "nanolib", "node", "nodejs", "request", "retry", "timeout", "typescript", "util", "utility", "utils" ], "license": "MPL-2.0", "main": "./dist/main.cjs", "module": "./dist/main.mjs", "prettier": "@alwatr/prettier-config", "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "https://github.com/Alwatr/nanolib", "directory": "packages/fetch" }, "scripts": { "b": "yarn run build", "build": "yarn run build:ts && yarn run build:es", "build:es": "nano-build --preset=module", "build:ts": "tsc --build", "c": "yarn run clean", "cb": "yarn run clean && yarn run build", "clean": "rm -rfv dist *.tsbuildinfo", "d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings", "t": "yarn run test", "test": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" jest", "w": "yarn run watch", "watch": "yarn run watch:ts & yarn run watch:es", "watch:es": "yarn run build:es --watch", "watch:ts": "yarn run build:ts --watch --preserveWatchOutput" }, "sideEffects": false, "type": "module", "types": "./dist/main.d.ts", "gitHead": "f9f9ba54b319ce8ccc6968059b222e89f4b5d149" }