node-ebics-client/lib/middleware/signer.js

12 lines
237 B
JavaScript
Raw Permalink Normal View History

2018-06-15 06:33:41 +00:00
'use strict';
const H004Signer = require('../orders/H004/signer');
module.exports = {
version(v) {
if (v.toUpperCase() === 'H004') return H004Signer;
throw Error('Error from middleware/signer.js: Invalid version number');
},
};