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

Nilesh Patra nilesh at riseup.net
Fri Mar 25 12:39:59 GMT 2022


Yadd, gentle ping on this? :)

On 3/25/22 12:09 AM, Nilesh Patra wrote:
> 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: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220325/8785aa4e/attachment.sig>


More information about the Pkg-javascript-devel mailing list