dfinity / agent-js

A collection of libraries and tools for building software around the Internet Computer, in JavaScript.

Home Page:https://agent-js.icp.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sha-256 compilation warning

peterpeterparker opened this issue · comments

Describe the bug
Noticed this warning while building a dapp today:

transforming (182) node_modules/@dfinity/agent/lib/esm/canisters/management_idl.jsUse of eval in "node_modules/js-sha256/src/sha256.js" is strongly discouraged as it poses security risks and may cause issues with minification.
Use of eval in "node_modules/js-sha256/src/sha256.js" is strongly discouraged as it poses security risks and may cause issues with minification.
transforming (220) node_modules/@dfinity/candid/lib/esm/utils/bigint-math.jsUse of eval in "node_modules/js-sha256/src/sha256.js" is strongly discouraged as it poses security risks and may cause issues with minification.
Use of eval in "node_modules/js-sha256/src/sha256.js" is strongly discouraged as it poses security risks and may cause issues with minification.

Expected behavior
No security risk and no warning.