change to universal hashes

This commit is contained in:
Christophe Diederichs 2020-07-02 17:35:40 +02:00 committed by Emil Bay
parent f11ff5a727
commit 44e5985630
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* eslint-disable camelcase */
const sha512 = require('sha512-wasm')
const sha512 = require('sha512-universal')
const assert = require('nanoassert')
if (new Uint16Array([1])[0] !== 1) throw new Error('Big endian architecture is not supported.')

View File

@ -1,5 +1,5 @@
/* eslint-disable camelcase */
const sha256 = require('sha256-wasm')
const sha256 = require('sha256-universal')
const assert = require('nanoassert')
if (new Uint16Array([1])[0] !== 1) throw new Error('Big endian architecture is not supported.')