mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +08:00
These two packages had NPM advisories filed against them. Luckily, we can upgrade to versions where they are fixed. The upgrade of rollup-plugin-terser includes the upgrade to Terser 5. Looking at its changelog (https://github.com/terser/terser/blob/master/CHANGELOG.md#v500-beta0) we seem to not be affected. Our build also works as expected. DISABLE_THIRD_PARTY_CHECK=Update node modules R=petermarshall@chromium.org Change-Id: I6974a73d92a1a210b705246053be5c2af268605b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2372148 Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Peter Marshall <petermarshall@chromium.org> Reviewed-by: Peter Marshall <petermarshall@chromium.org>
575 B
575 B
randombytes
randombytes from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues
var randomBytes = require('randombytes');
randomBytes(16);//get 16 random bytes
randomBytes(16, function (err, resp) {
// resp is 16 random bytes
});