finalhandler icon indicating copy to clipboard operation
finalhandler copied to clipboard

Node.js final http responder

Results 23 finalhandler issues
Sort by recently updated
recently updated
newest added

[email protected] broke usage with Node.js v14 and earlier: #80 uses String.prototype.replaceAll, but this isn't supported in Node.js v14 (https://node.green/#ES2021-features--String-prototype-replaceAll). The `engines.node` in package.json suggests that Node.js `>=0.8` is supported: https://github.com/pillarjs/finalhandler/blob/v2.1.0/package.json#L33-L35...

This PR adds type definitions to `finalhandler`. It includes the following changes: - moving types from [`@types/finalhandler`](https://www.npmjs.com/package/@types/finalhandler) into the repository (https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/finalhandler) - adding `type`, `main` and `types` field to `package.json`...

v3

Based on the work in #56. Adds a fallback `text/plain` response when the client does not accept html.

v3