UNPKG

reqoal

Version:

A lightweight and efficient JavaScript library for request coalescing — merge concurrent identical async calls into a single request to reduce load and improve performance.

82 lines (81 loc) 2.3 kB
{ "name": "reqoal", "version": "1.0.2", "description": "A lightweight and efficient JavaScript library for request coalescing — merge concurrent identical async calls into a single request to reduce load and improve performance.", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "exports": { "import": "./dist/index.js", "require": "./dist/index.cjs" }, "types": "./dist/index.d.ts", "files": [ "dist", "README.md", "package.json", "LICENSE" ], "scripts": { "clean": "if test junit.xml; then rm junit.xml; fi; if test -d dist; then rm -r dist; fi; if test -d typedoc; then rm -r typedoc; fi; if test -d coverage; then rm -r coverage; fi; rm -rf node_modules; rm -f tsconfig.tsbuildinfo; rm -f npm-shrinkwrap.json", "lint": "eslint --ext .ts .", "lint:fix": "eslint --fix --ext .js,.ts .", "format": "prettier --write '**/*'", "build": "tsup src/index.ts --format esm,cjs --dts", "test": "jest --passWithNoTests", "test:coverage": "jest --passWithNoTests --coverage=true --coverage-reporters=text", "test:ci": "jest --config ./jest.config.js --collectCoverage --coverageDirectory=\"./coverage\" --ci --reporters=default --reporters=jest-junit --watchAll=false", "prepare": "husky", "prepublishOnly": "npm ci && npm run lint && npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/aldhosutra/reqoal.git" }, "keywords": [ "request", "coalescing", "request-coalescing", "deduplicate", "batching", "debounce", "throttle", "promise", "cache", "inflight", "async", "fetch", "http", "optimization", "network" ], "author": "aldhosutra", "license": "MIT", "bugs": { "url": "https://github.com/aldhosutra/reqoal/issues" }, "homepage": "https://reqoal.js.org", "overrides": { "glob": "10.4.5" }, "devDependencies": { "@eslint/js": "^9.27.0", "@types/jest": "^29.5.14", "eslint": "^9.27.0", "globals": "^16.1.0", "husky": "^9.1.7", "jest": "^29.7.0", "jest-extended": "^5.0.2", "jest-junit": "^16.0.0", "lint-staged": "^15.5.2", "prettier": "3.5.3", "ts-jest": "^29.3.4", "tslib": "^2.8.1", "typescript": "^5.8.3", "typescript-eslint": "^8.32.1", "tsup": "^7.2.0" }, "dependencies": { "json-stable-stringify": "^1.3.0" } }