response-time icon indicating copy to clipboard operation
response-time copied to clipboard

Response time header for node.js

Results 5 response-time issues
Sort by recently updated
recently updated
newest added

Version: 2.3.2 ``` (!) Use of eval is strongly discouraged https://rollupjs.org/guide/en/#avoiding-eval ../../../node_modules/response-time/node_modules/depd/index.js 408: 409: // eslint-disable-next-line no-eval 410: var deprecatedfn = eval('(function (' + args + ') {\n' + ^...

investigate

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 `process.hrtime()`. e.g. https://github.com/expressjs/response-time/blob/master/index.js#L53 would change from `var startAt...

ideas

Reminder: https://stackoverflow.com/questions/30019235/how-to-access-all-response-times-on-every-route-in-express-4/30029024#30029024 Thanks @dougwilson.

Since the codebase is not returning the `next` explicitly, when you have an async interface involving this library, the Promise exit early getting the implicit `undefined` until now returned.

pr
discuss
needs tests

This issue aims to discuss potential changes for the next major version of `expressjs/response-time`. ### Key Areas to Consider: 1. API Simplification - BREAKING CHANGE - **Standardized Options Object**: Remove...