express-http-context icon indicating copy to clipboard operation
express-http-context copied to clipboard

Get and set request-scoped context anywhere

Results 21 express-http-context issues
Sort by recently updated
recently updated
newest added

Hi guys, how are you? I'm working with your library in micro services. We have a few libraries and we save some data in context but since version 1.1.0 is...

I want to be able to get all keys and values stored in the current http context without needing to know all the keys. To do this, I'd like a...

Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1. Release notes Sourced from pathval's releases. v1.1.1 Fixes a security issue around prototype pollution. Commits db6c3e3 chore: v1.1.1 7859e0e Merge pull request #60 from...

dependencies

The current node lts supports using internal async_hooks which does not break in some reasons, [cls-hooks](https://github.com/skonves/express-http-context/blob/e9498012defde15dad819a1b8ed449a7700b7825/index.js#L3) fails. The middleware could use https://nodejs.org/docs/latest-v14.x/api/async_hooks.html#async_hooks_asynclocalstorage_run_store_callback_args instead.

after ``` .use(passport.session()) ``` context is not works

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.7.7. Changelog Sourced from handlebars's changelog. v4.7.7 - February 15th, 2021 fix weird error in integration tests - eb860c0 fix: check prototype property access in...

dependencies

**Pain** 1. In webstorm I can't use autoimport and have to import module manually. 2. Even after manual import I can't use autocomplete for `.middleware`, `.get` and `.set`

Thanks for building and maintaining this one-of-its-kind library. Are there any noted / possible performance hits using it? Are there any benchmarks that describe / test the performance when using...

question

``` const app = require('express')(); const httpContext = require('express-http-context'); var db = require('odbc')(); const cn = "DRIVER={ODBC Driver 13 for SQL Server};SERVER=SOMESERVER,SOMEPORT;DATABASE=somedb;Trusted_Connection=Yes" app.use(httpContext.middleware); app.get('/', (req, res) => { httpContext.set('foo', 'bar');...

I've configured the context on ExpressJs app as a dependency on startup and also set it up as global middleware for every request. The code works like a charm when...