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

12 lines
237 B
JavaScript
Raw Normal View History

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