Rocket.Chat.js.SDK icon indicating copy to clipboard operation
Rocket.Chat.js.SDK copied to clipboard

BUG: RC node.js SDK deps use `eval` statements

Open sidmohanty11 opened this issue 3 years ago • 1 comments

I am working on the EmbeddedChat project. I am using Rocket.Chat Nodejs SDK v1.0.0-alpha.42. I've polyfilled all nodejs packages (around 40) which were causing errors when bundling with Rollup. But after that, there was one warning left with use of eval is strongly discouraged, It is coming from js-sha256 package, linked issue.

Can the SDK be modified so that SDK is not limited to the backend and can be used with the frontend also? Else, can js-sha256 be eliminated from this package and use crypto instead? image

sidmohanty11 avatar Jun 27 '22 16:06 sidmohanty11

@diegolmello could you please take a look? We are using js-sha256 as a dependency which is causing this warning. This has been deprecated.

sidmohanty11 avatar Jun 30 '22 14:06 sidmohanty11