mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-12-16 16:42:45 +00:00
Fixes in Client.js and BankLetter.js
Add DOMParser constant in Client.js Fix ebicsRequest function in Client.js Some clean up in Client.js Fix registerHelper sha256 in BankLetters.js
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class BankLetter {
|
||||
});
|
||||
|
||||
handlebars.registerHelper("sha256", (k) => {
|
||||
const digest = Buffer(k.publicDigest(), 'base64').toString('HEX');
|
||||
const digest = Buffer.from(k.publicDigest(), 'base64').toString('HEX');
|
||||
|
||||
return digest.toUpperCase().match(/.{1,2}/g).join(' ');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user