UNPKG

@web-widget/shared-cache

Version:

Standards-compliant HTTP cache implementation for server-side JavaScript with RFC 7234 compliance and cross-runtime support

115 lines 3.17 kB
{ "name": "@web-widget/shared-cache", "version": "1.7.2", "description": "Standards-compliant HTTP cache implementation for server-side JavaScript with RFC 7234 compliance and cross-runtime support", "keywords": [ "cache", "http-cache", "web-cache-api", "fetch", "server-side", "shared-cache", "rfc-7234", "rfc-5861", "stale-while-revalidate", "stale-if-error", "node", "deno", "bun", "wintercg", "redis", "lru", "cache-control", "vary", "typescript", "cross-runtime" ], "exports": { ".": { "types": "./dist/shared-cache.d.ts", "default": "./dist/shared-cache.js" } }, "repository": { "type": "git", "url": "git+https://github.com/web-widget/shared-cache.git" }, "author": "aui", "license": "MIT", "bugs": { "url": "https://github.com/web-widget/shared-cache/issues" }, "homepage": "https://github.com/web-widget/shared-cache#readme", "devDependencies": { "@changesets/cli": "^2.27.1", "@rdfjs/types": "^1.0.1", "@types/jest": "^29.5.3", "@typescript-eslint/eslint-plugin": "latest", "@typescript-eslint/parser": "latest", "c8": "latest", "eslint": "^8.3.0", "eslint-config-prettier": "latest", "eslint-plugin-prettier": "latest", "finepack": "latest", "git-authors-cli": "latest", "jest": "^29.6.2", "jest-environment-miniflare": "^2.14.2", "lru-cache": "^10.2.0", "miniflare": "^3.20240129.1", "prettier": "latest", "ts-jest": "^29.4.0", "ts-node": "^10.4.0", "tsup": "^8.0.1", "typedoc": "^0.25.13", "typedoc-plugin-markdown": "^3.17.1", "typescript": "latest" }, "dependencies": { "@edge-runtime/cookies": "^6.0.0", "@web-widget/http-cache-semantics": "^1.2.0" }, "publishConfig": { "access": "public" }, "type": "module", "files": [ "dist" ], "c8": { "reporter": [ "text", "lcov", "html" ], "exclude": [ "coverage/**", "dist/**", "node_modules/**", "**/*.test.ts", "**/*.spec.ts", "**/*.config.ts", "**/*.config.js" ], "all": true }, "scripts": { "build": "pnpm exec tsup", "changeset": "changeset", "clean:build": "rm -rf dist", "clean:node": "rm -rf node_modules", "contributors": "git-authors-cli && finepack", "coverage": "c8 report --reporter=text --reporter=lcov", "coverage:html": "NODE_OPTIONS=--experimental-vm-modules pnpm exec jest --coverage", "dev": "pnpm exec tsup --watch", "lint": "eslint .", "lockfile": "pnpm install --lockfile && git add pnpm-lock.yaml && git commit -m \"build: regenerate lock\"", "prebuild": "pnpm run clean:build", "prettier": "prettier **/*.{ts,tsx,js,vue} --write", "test": "NODE_OPTIONS=--experimental-vm-modules c8 jest", "update": "pnpm -r exec ncu -- --upgrade && ncu -- --upgrade", "update:check": "pnpm -r exec ncu -- --errorLevel 2 && ncu -- --errorLevel 2", "version:prepare": "changeset version && pnpm install --no-frozen-lockfile", "version:publish": "changeset publish", "docs": "typedoc" } }