routup 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
package/dist/index.cjs
CHANGED
|
@@ -993,7 +993,7 @@ function sendFile(res, filePath, fn) {
|
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
function sendFormat(res, input) {
|
|
996
|
-
const { default: formatDefault
|
|
996
|
+
const { default: formatDefault, ...formats } = input;
|
|
997
997
|
const contentTypes = Object.keys(formats);
|
|
998
998
|
const contentType = getRequestAcceptableContentType(res.req, contentTypes);
|
|
999
999
|
if (contentType) {
|