Various fixes for spelling

Various minor spelling mistake fixes.

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
This commit is contained in:
Herman van Hazendonk
2019-11-19 14:48:26 +01:00
parent 6ecb256483
commit 0b9d93f745
6 changed files with 21 additions and 21 deletions

View File

@@ -37,13 +37,13 @@ const stringifyKeys = (keys) => {
*/
/**
* Client initilization options
* Client initialization options
* @typedef {Object} EbicClientOptions
* @property {string} url - EBICS URL provided by the bank
* @property {string} partnerId - PARTNERID provided by the bank
* @property {string} hostId - HOSTID provided by the bank
* @property {string} userId - USERID provided by the bank
* @property {string} passphrase - passphrase for keys encyprion
* @property {string} passphrase - passphrase for keys encryption
* @property {KeyStorage} keyStorage - keyStorage implementation
* @property {object} [tracesStorage] - traces (logs) storage implementation
*/
@@ -64,15 +64,15 @@ module.exports = class Client {
tracesStorage,
}) {
if (!url)
throw new Error('EBICS URL is requierd');
throw new Error('EBICS URL is required');
if (!partnerId)
throw new Error('partnerId is requierd');
throw new Error('partnerId is required');
if (!userId)
throw new Error('userId is requierd');
throw new Error('userId is required');
if (!hostId)
throw new Error('hostId is requierd');
throw new Error('hostId is required');
if (!passphrase)
throw new Error('passphrase is requierd');
throw new Error('passphrase is required');
if (!keyStorage || typeof keyStorage.read !== 'function' || typeof keyStorage.write !== 'function')
throw new Error('keyStorage implementation missing or wrong');

View File

@@ -10,12 +10,12 @@ const errors = {
'011000': {
symbol: 'EBICS_DOWNLOAD_POSTPROCESS_DONE',
short_text: 'Positive acknowledgement received',
meaning: "After receipt of a positive acknowledgement the download task was finished at the server's end and the EBICS transaction ended.",
meaning: "After receipt of a positive acknowledgment the download task was finished at the server's end and the EBICS transaction ended.",
},
'011001': {
symbol: 'EBICS_DOWNLOAD_POSTPROCESS_SKIPPED',
short_text: 'Negative acknowledgement received',
meaning: "After receipt of a negative acknowledgement the transaction was ended at the server's end without finishing the download task",
short_text: 'Negative acknowledgment received',
meaning: "After receipt of a negative acknowledgment the transaction was ended at the server's end without finishing the download task",
},
'011101': {
symbol: 'EBICS_TX_SEGMENT_NUMBER_UNDERRUN',
@@ -104,8 +104,8 @@ const errors = {
},
'091102': {
symbol: 'EBICS_TX_ABORT',
short_text: 'Transaction cancelled',
meaning: "The transaction was cancelled at the server's end since recovery of the transaction is not supported or is no longer possible due to the recovery counter being too high",
short_text: 'Transaction canceled',
meaning: "The transaction was canceled at the server's end since recovery of the transaction is not supported or is no longer possible due to the recovery counter being too high",
},
'091103': {
symbol: 'EBICS_TX_MESSAGE_REPLAY',