[Pkg-javascript-devel] Bug#1008200: node-send: patched node-mime-types cause problems for other reverse-dependencies

Nilesh Patra nilesh at debian.org
Thu Mar 24 18:39:04 GMT 2022


On Thu, 24 Mar 2022 15:09:24 +0530 Nilesh Patra <nilesh at debian.org> wrote:
> Package: node-send
> Version: 0.17.2-2
> Severity: important
> X-Debbugs-Cc: merkys at debian.org
> 
> Hi Yadd,
> 
> node-send is patched[1] to use node-mime-types instead of node-mime.
> However, this change is breaking node-shiny-server[2] build (not yet uploaded)
> with:
> 
> | TypeError: send.mime.define is not a function
> |    at Object.<anonymous> (/home/nilesh/packages/shinyserv/shiny-server/lib/router/directory-router.js:27:11)
> |    at Module._compile (internal/modules/cjs/loader.js:999:30)
> |    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
> |    at Module.load (internal/modules/cjs/loader.js:863:32)
> 
> mime-types used to have a "define" function which has been removed in version2 of the same.
> It is still not entirely clear to me as to why the patching was needed.
> If possible, can you revert it to use proper node-mime?
> 
> If you happen to drop that patch, some tests fail due to new node-mime API; these can be
> fixed with a simple patch attached with this bug report.

I forgot to attach earlier, should be attached with this mail.

Regards,
Nilesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-node-send.patch
Type: text/x-diff
Size: 983 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220325/114b3559/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220325/114b3559/attachment.sig>


More information about the Pkg-javascript-devel mailing list