Bundle official msrcrypto distro in the source (solves some bugs, probably safer)
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
"mobx": "^6.6.0",
|
||||
"mobx-react-lite": "^3.4.0",
|
||||
"mobx-state-tree": "^5.1.5",
|
||||
"msrcrypto": "^1.5.8",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2",
|
||||
"react-native": "0.68.2",
|
||||
|
||||
@@ -2,7 +2,7 @@ import {NativeModules} from 'react-native'
|
||||
const {AppSecureRandomModule} = NativeModules
|
||||
import {toByteArray} from 'base64-js'
|
||||
// @ts-ignore we dont have types for this -prf
|
||||
import crypto from 'msrcrypto'
|
||||
import crypto from '../third-party/msrcrypto'
|
||||
import '@zxing/text-encoding' // TextEncoder / TextDecoder
|
||||
|
||||
async function generateSecureRandom(bytes: number) {
|
||||
|
||||
Vendored
+10144
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user