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?
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 withuse of eval is strongly discouraged
, It is coming fromjs-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![image](https://user-images.githubusercontent.com/73601258/175990318-66c1036c-23a2-47d5-8ada-07c5b7157caa.png)
js-sha256
be eliminated from this package and usecrypto
instead?