Hi, I am updating a cron type node and using a new library that works perfectly outside of node-red but has (had) a serious bug when ran inside a custom node.
I had an old version of
node-red-contrib-opcua installed globally that used an old shim lib called
collections that changed the implementation of
- An older install of
node-red-contrib-opcuahas a dependency on collections V^3.0.0
- This library unconditionally defines
Array.find()function that returns an index or -1
Array.find()returns the 'found item' or
Essentially, if I (or anyone) has an older version of
node-red-contrib-opcua (or any other node that has bad shims) things like this bad implementation of
Array.find() will cause bugs and other side-effects.
- Is there some way of identifying a node.js prototype is overwritten (especially on things like the now standard
- is this perhaps something node-red could/should do?
- Is there a way to undo the overwritten
findfunction? Revert it to original node.js implementation?
- Is there another way to handle it - perhaps my own shim to ensure functionality?