The update is required to run tests on Node.js 18
The massive change to package-lock.json is due to an npm major upgade.
>
> The package-lock.json file was created with an old version of npm,
> so supplemental metadata must be fetched from the registry.
>
> This is a one-time fix-up, please be patient...
>
For prettier generation of bank letters and other bits used in examples:
Expand the bank config to include:
* "bankFullName" used in the INI letter's which are sent to the bank.
* "bankShortName" used in the filename for the generated letters and in other places if needed.
* "languageCode" used for determining which template to use for the bank (currently "en" and "de" are supported).
* "storageLocation" can be used to specify a local or network path where to store downloaded files.
* In bankLetter.js: Use the current script folder as output for the bank's letter in HTML format instead of the user/os homedir folder.
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
J.P. Morgan has been tested for their global EBICS channel as well and confirmed to be working.
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
When using the software with multiple banks, the current config file solution wasn't very flexible. We had some different local implementation at our end. In order to use upstream software directly without any changes, suggesting to merge these changes. For me locally it would mean I can get rid of a lot of local example code which are currently bank and even entity specific and can be made more generic.
This will also allow multiple EBICS connections with the same bank for different entities as well, in case this is needed. In our case we have multiple EBICS connections with the same bank.
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
For some unknown reason, the signature gets a length of 257 bytes instead of 256 bytes, and the length of the hex value is 514 bytes instead of 512 bytes.
This works around it, until a proper fix is implemented. The bug seems to be caused by https://github.com/node-ebics/node-ebics-client/blob/master/lib/crypto/Crypto.js#L71 somehow.
Signed-off-by: Herman van Hazendonk <github.com@herrie.org>