You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a fix in NPM buffer package at v5.3.0 which added support for environments like SES and Deno which require you to edit __proto__ via Object.setPrototypeOf (because it is much safer, see here for explanation). The fix basically just replaces all instances of this:
buf.__proto__=Buffer.prototype
with this:
Object.setPrototypeOf(buf,Buffer.prototype)
IIUC, Skypack is using an older version which doesn't have this fix - but I'm not sure because I don't think the code is open source? So I might be mistaken - perhaps the Buffer package that's in my final bundle is coming from somewhere else - in which case please feel free to close, of course.
The text was updated successfully, but these errors were encountered:
There was a fix in NPM
buffer
package at v5.3.0 which added support for environments like SES and Deno which require you to edit__proto__
viaObject.setPrototypeOf
(because it is much safer, see here for explanation). The fix basically just replaces all instances of this:with this:
IIUC, Skypack is using an older version which doesn't have this fix - but I'm not sure because I don't think the code is open source? So I might be mistaken - perhaps the
Buffer
package that's in my final bundle is coming from somewhere else - in which case please feel free to close, of course.The text was updated successfully, but these errors were encountered: