UNPKG

cacheable-request

Version:

Wrap native HTTP requests with RFC compliant cache support

94 lines 3.05 kB
{ "name": "cacheable-request", "version": "13.0.7", "description": "Wrap native HTTP requests with RFC compliant cache support", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/jaredwray/cacheable.git", "directory": "packages/cacheable-request" }, "author": "Jared Wray <me@jaredwray.com> (http://jaredwray.com)", "type": "module", "exports": "./dist/index.js", "types": "./dist/index.d.ts", "engines": { "node": ">=18" }, "files": [ "dist", "LICENSE" ], "keywords": [ "HTTP", "HTTPS", "cache", "caching", "layer", "cacheable", "RFC 7234", "RFC", "7234", "compliant" ], "dependenciesComments": { "@types/http-cache-semantics": "It needs to be in the dependencies list and not devDependencies because otherwise projects that use this one will be getting `Could not find a declaration file for module 'http-cache-semantics'` error when running `tsc`, see https://github.com/jaredwray/cacheable-request/issues/194 for details" }, "dependencies": { "@types/http-cache-semantics": "^4.0.4", "get-stream": "^9.0.1", "http-cache-semantics": "^4.2.0", "keyv": "^5.3.3", "mimic-response": "^4.0.0", "normalize-url": "^8.0.1", "responselike": "^3.0.0" }, "devDependencies": { "@keyv/sqlite": "^4.0.4", "@types/node": "^22.15.30", "@types/responselike": "^1.0.3", "@vitest/coverage-v8": "^3.2.2", "body-parser": "^2.2.0", "delay": "^6.0.0", "express": "^4.21.2", "pify": "^6.1.0", "rimraf": "^6.0.1", "sqlite3": "^5.1.7", "tsup": "^8.5.0", "typescript": "^5.8.3", "vitest": "^3.2.2", "xo": "^1.1.0" }, "xo": { "rules": { "@typescript-eslint/triple-slash-reference": 0, "@typescript-eslint/no-namespace": 0, "@typescript-eslint/no-unsafe-assignment": 0, "@typescript-eslint/no-unsafe-call": 0, "@typescript-eslint/ban-types": 0, "@typescript-eslint/restrict-template-expressions": 0, "@typescript-eslint/no-unsafe-return": 0, "@typescript-eslint/no-unsafe-argument": 0, "new-cap": 0, "unicorn/no-abusive-eslint-disable": 0, "@typescript-eslint/restrict-plus-operands": 0, "@typescript-eslint/no-implicit-any-catch": 0, "@typescript-eslint/consistent-type-imports": 0, "@typescript-eslint/consistent-type-definitions": 0, "@typescript-eslint/prefer-nullish-coalescing": 0, "n/prefer-global/url": 0, "n/no-deprecated-api": 0, "unicorn/prefer-event-target": 0, "@typescript-eslint/no-unnecessary-type-assertion": 0, "promise/prefer-await-to-then": 0, "@typescript-eslint/no-unnecessary-boolean-literal-compare": 0 } }, "scripts": { "test": "xo --fix && vitest run --coverage", "test:ci": "xo && vitest run", "prepublish": "pnpm run build", "build": "rimraf ./dist && tsc --project tsconfig.build.json", "clean": "rimraf node_modules ./coverage ./test/testdb.sqlite ./dist" } }