UNPKG

promise-swr

Version:

Caches a promise-returning function with a stale-while-revalidate strategy

47 lines (46 loc) 904 B
{ "name": "promise-swr", "version": "1.0.1", "description": "Caches a promise-returning function with a stale-while-revalidate strategy", "keywords": [ "async", "cache", "function", "memoize", "promise", "revalidate", "stale", "swr", "while" ], "bugs": "https://github.com/bloq/js-packages/issues", "license": "MIT", "author": "Gabriel Montes <gabriel@bloq.com>", "files": [ "src" ], "main": "src/index.js", "repository": "bloq/js-packages", "scripts": { "coverage": "nyc npm run test", "deps:check": "dependency-check --no-dev .", "test": "mocha" }, "dependencies": { "debug": "^4.3.2" }, "nyc": { "all": true, "include": [ "src/**/*.js" ], "reporter": [ "lcov", "text" ] }, "engines": { "node": ">= 14" }, "gitHead": "765c35395a89d7f4a8c517083f6ff7cb18acf142" }