We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The request-received middleware at https://github.com/cabinjs/request-received exposes a Symbol.for property, which this package could conditionally consume if interested (as opposed to just generating a new Date().
request-received
Symbol.for
new Date()
e.g. https://github.com/koajs/logger/blob/master/index.js#L59 would change from const start = Date.now() to const start = ctx[Symbol.for('request-received.startTime')] ? ctx[Symbol.for('request-received.startTime')].getTime() : Date.now()
const start = Date.now()
const start = ctx[Symbol.for('request-received.startTime')] ? ctx[Symbol.for('request-received.startTime')].getTime() : Date.now()
The text was updated successfully, but these errors were encountered:
17cdb74
Successfully merging a pull request may close this issue.
The
request-received
middleware at https://github.com/cabinjs/request-received exposes aSymbol.for
property, which this package could conditionally consume if interested (as opposed to just generating anew Date()
.e.g. https://github.com/koajs/logger/blob/master/index.js#L59 would change from
const start = Date.now()
toconst start = ctx[Symbol.for('request-received.startTime')] ? ctx[Symbol.for('request-received.startTime')].getTime() : Date.now()
The text was updated successfully, but these errors were encountered: