UNPKG

@dalet-oss/express-http-context

Version:

Modern request-scoped storage support for Express.js based on Asynchronous Local Storage.

103 lines (102 loc) 3.5 kB
{ "name": "@dalet-oss/express-http-context", "version": "1.2.3", "description": "Modern request-scoped storage support for Express.js based on Asynchronous Local Storage.", "author": { "name": "Dalet OSS", "url": "https://github.com/dalet-oss" }, "contributors": [ { "name": "Oliver Lockwood", "url": "https://github.com/oliverlockwood" }, { "name": "Alberto Varela", "email": "hello@albertovarela.net", "url": "https://www.albertovarela.net" } ], "repository": { "type": "git", "url": "git+https://github.com/dalet-oss/express-http-context.git" }, "bugs": { "url": "https://github.com/dalet-oss/express-http-context/issues" }, "homepage": "https://github.com/dalet-oss/express-http-context", "license": "MIT", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "typings": "lib/types/index.d.ts", "exports": { ".": { "types": "./lib/types/index.d.ts", "import": "./lib/esm/index.js", "require": "./lib/cjs/index.js", "default": "./lib/cjs/index.js" } }, "engines": { "node": ">=14.0.0" }, "files": [ "lib", "src", "CHANGELOG.md", "LICENSE" ], "scripts": { "build": "yarn clean && yarn compile", "clean": "rm -rf lib/ .nyc_output/ coverage/", "compile": "concurrently \"yarn compile:cjs\" \"yarn compile:esm\" \"yarn compile:types\" && ./scripts/fixup.sh", "compile:cjs": "tsc -p tsconfig.cjs.json", "compile:esm": "tsc -p tsconfig.esm.json", "compile:types": "tsc -p tsconfig.types.json", "coverage:html": "tap --coverage-report=html", "coverage:cobertura": "tap --coverage-report=cobertura", "hook:commit-msg": "commitlint -e", "hook:pre-commit": "yarn qa", "lint": "eslint .", "prepack": "yarn qa && yarn build", "qa": "yarn lint && yarn type-check && yarn test", "test": "yarn clean && TS_NODE_PROJECT=tsconfig.json tap --node-arg=--require=ts-node/register", "test:watch": "TS_NODE_PROJECT=tsconfig.json tap --node-arg=--require=ts-node/register --watch", "type-check": "tsc -p tsconfig.json --noEmit" }, "keywords": [ "express", "middleware", "plugin", "request", "context", "http-context", "request-context", "express-http-context", "express-request-context", "asynchronouslocalstorage", "asynchronous-local-storage" ], "devDependencies": { "@commitlint/cli": "^17.8.1", "@commitlint/config-conventional": "^17.8.1", "@oliverlockwood/express-http-context-intermediate-library": "0.0.5", "@types/express": "^4.17.21", "@types/node": "^18.19.84", "@types/supertest": "^2.0.16", "@types/tap": "^15.0.12", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "concurrently": "^7.6.0", "eslint": "^8.35.0", "eslint-config-prettier": "^8.10.0", "eslint-plugin-import": "^2.31.0", "express": "^4.21.2", "nanoid": "3.3.4", "prettier": "^2.8.8", "supertest": "^6.3.4", "tap": "^16.3.10", "ts-node": "^10.9.2", "typescript": "^4.9.5" } }