[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shiny-server in debian



Hi Nilesh,

On 2022-03-24 10:04, Nilesh Patra wrote:
> On Thu, Mar 24, 2022 at 08:41:01AM +0200, Andrius Merkys wrote:
>> Looking deeper into it, the problem seems to be that node-mime-types has
>> dropped define() in v2.0.0, as per
>> /usr/share/doc/node-mime-types/HISTORY.md.gz:
>>
>> 2.0.0 / 2014-09-02
>> ==================
>>
>>   * Use `mime-db`
>>   * Remove `.define()`
> I am a bit confused -- the error seems to stem from 'node-send' package right?

Oh right, it is 'node-send' which needs patching:

$ cat test.js
var send = require('send')
var mime_types = require('mime-types')
var mime = require('mime')

console.log(send.mime.define)
console.log(mime_types.define)
console.log(mime.define)

$ nodejs test.js
undefined
undefined
[Function: bound ]

However, I have no idea how to fix this in 'node-send'.

Best,
Andrius


Reply to: