UNPKG

@alwatr/fetch

Version:

Enhanced fetch API with cache strategy, retry pattern, timeout, helper methods and enhanced types.

92 lines (91 loc) 2.52 kB
{ "name": "@alwatr/fetch", "version": "5.6.2", "description": "Enhanced fetch API with cache strategy, retry pattern, timeout, helper methods and enhanced types.", "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>", "keywords": [ "fetch", "request", "api", "retry", "cache", "timeout", "cross-platform", "ECMAScript", "typescript", "javascript", "node", "nodejs", "browser", "esm", "module", "utility", "util", "utils", "nanolib", "alwatr" ], "type": "module", "main": "./dist/main.cjs", "module": "./dist/main.mjs", "types": "./dist/main.d.ts", "exports": { ".": { "types": "./dist/main.d.ts", "import": "./dist/main.mjs", "require": "./dist/main.cjs" } }, "license": "AGPL-3.0-only", "files": [ "**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}", "LICENSE", "!demo/**/*" ], "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "https://github.com/Alwatr/nanolib", "directory": "packages/fetch" }, "homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/fetch#readme", "bugs": { "url": "https://github.com/Alwatr/nanolib/issues" }, "prettier": "@alwatr/prettier-config", "scripts": { "b": "yarn run build", "t": "yarn run test", "w": "yarn run watch", "c": "yarn run clean", "cb": "yarn run clean && yarn run build", "d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings", "build": "yarn run build:ts && yarn run build:es", "build:es": "nano-build --preset=module", "build:ts": "tsc --build", "test": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" jest", "watch": "yarn run watch:ts & yarn run watch:es", "watch:es": "yarn run build:es --watch", "watch:ts": "yarn run build:ts --watch --preserveWatchOutput", "clean": "rm -rfv dist *.tsbuildinfo" }, "dependencies": { "@alwatr/delay": "^5.5.4", "@alwatr/global-this": "^5.5.3", "@alwatr/http-primer": "^5.5.3", "@alwatr/logger": "^5.5.3", "@alwatr/package-tracer": "^5.5.3", "@alwatr/parse-duration": "^5.5.4" }, "devDependencies": { "@alwatr/nano-build": "^5.5.3", "@alwatr/prettier-config": "^5.0.0", "@alwatr/tsconfig-base": "^5.0.0", "@alwatr/type-helper": "^5.4.1", "jest": "^29.7.0", "typescript": "^5.8.3" }, "gitHead": "596ead38bc4455f7b2136438597ed76fc9b12a3a" }