UNPKG

@zakyyudha/http-context-middleware

Version:

HTTP context middleware using Node.js AsyncLocalStorage

77 lines (76 loc) 2.2 kB
{ "name": "@zakyyudha/http-context-middleware", "version": "1.0.5", "description": "HTTP context middleware using Node.js AsyncLocalStorage", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "scripts": { "build": "rimraf dist && tsc -p tsconfig.json", "test": "jest", "prepare": "husky && npm run build", "lint": "eslint .", "lint:fix": "eslint . --fix", "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"examples/**/*.{ts,js}\"", "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" \"examples/**/*.{ts,js}\"", "clean": "rimraf dist", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "typecheck:test": "tsc -p tsconfig.test.json --noEmit", "typecheck:examples": "tsc -p tsconfig.examples.json --noEmit", "typecheck:all": "npm run typecheck:test && npm run typecheck:examples", "release": "bash scripts/release.sh", "release:patch": "bash scripts/release.sh patch", "release:minor": "bash scripts/release.sh minor", "release:major": "bash scripts/release.sh major" }, "keywords": [ "middleware", "context", "express", "asynclocalstorage", "nodejs", "typescript" ], "author": "", "license": "MIT", "engines": { "node": ">=18.0.0" }, "dependencies": { "express": "^4.18.2" }, "devDependencies": { "@types/express": "^4.17.21", "@types/jest": "^29.5.14", "@types/node": "^18.19.87", "@types/supertest": "^6.0.3", "@typescript-eslint/eslint-plugin": "^8.31.1", "@typescript-eslint/parser": "^8.31.1", "eslint": "^9.25.1", "eslint-config-prettier": "^10.1.2", "eslint-plugin-jest": "^28.11.0", "eslint-plugin-prettier": "^5.2.6", "husky": "^9.1.7", "jest": "^29.7.0", "lint-staged": "^15.5.1", "prettier": "^3.5.3", "rimraf": "^5.0.10", "supertest": "^7.1.0", "ts-jest": "^29.3.2", "ts-node": "^10.9.1", "typescript": "^5.8.3", "typescript-eslint": "^8.31.1" }, "lint-staged": { "*.{ts,js,mjs}": [ "eslint --fix", "prettier --write" ], "*.{json,md}": [ "prettier --write" ] } }