Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getPassword(password: Bytes | string): Uint8Array {
if (typeof(password) === 'string') {
return toUtf8Bytes(password, UnicodeNormalizationForm.NFKC);
}
return arrayify(password);
}
export function getPassword(password) {
if (typeof (password) === 'string') {
return toUtf8Bytes(password, UnicodeNormalizationForm.NFKC);
}
return arrayify(password);
}
export function searchPath(object, path) {