mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-27 15:44:26 +02:00
force cast string
This commit is contained in:
parent
629cbdc60c
commit
5f26e7ca90
@ -3,7 +3,7 @@ import type {trackType} from '../types';
|
|||||||
|
|
||||||
const md5 = (data: string, type: crypto.Encoding = 'ascii') => {
|
const md5 = (data: string, type: crypto.Encoding = 'ascii') => {
|
||||||
const md5sum = crypto.createHash('md5');
|
const md5sum = crypto.createHash('md5');
|
||||||
md5sum.update(data, type);
|
md5sum.update(data.toString(), type);
|
||||||
return md5sum.digest('hex');
|
return md5sum.digest('hex');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user