ebics-client
Advanced tools
Comparing version 0.1.7 to 0.2.0
### Changelog | ||
#### [v0.2.0](https://github.com/node-ebics/node-ebics-client/compare/v0.1.7...v0.2.0) | ||
> 30 March 2021 | ||
- chore(deps): bump y18n from 4.0.0 to 4.0.1 [`#56`](https://github.com/node-ebics/node-ebics-client/pull/56) | ||
- Add additional bank configuration items [`#53`](https://github.com/node-ebics/node-ebics-client/pull/53) | ||
- chore(deps): bump xmldom from 0.3.0 to 0.5.0 [`#46`](https://github.com/node-ebics/node-ebics-client/pull/46) | ||
- Cryto.js: Nasty workaround for incorrect signature (257 vs 256) and h… [`#50`](https://github.com/node-ebics/node-ebics-client/pull/50) | ||
- Examples: Improve config implementation for multibank [`#51`](https://github.com/node-ebics/node-ebics-client/pull/51) | ||
- README.md: Add J.P. Morgan to tested banks [`#55`](https://github.com/node-ebics/node-ebics-client/pull/55) | ||
- Add support for Bank GPB AO (Gazprombank Russia) [`#49`](https://github.com/node-ebics/node-ebics-client/pull/49) | ||
- Add sample code for zipped CAMT statements [`#48`](https://github.com/node-ebics/node-ebics-client/pull/48) | ||
- chore: cleanup & bump [`f9fb6d3`](https://github.com/node-ebics/node-ebics-client/commit/f9fb6d3dc94c27a0c983205ce0ef00e4a18f95ff) | ||
- merge [`2d580c0`](https://github.com/node-ebics/node-ebics-client/commit/2d580c0d443b0ec0d103a94b64c803bfa1dd6b0b) | ||
- chore: update deps [`e642024`](https://github.com/node-ebics/node-ebics-client/commit/e6420244dc5d218926ede3b0123897096fb6dfd9) | ||
#### [v0.1.7](https://github.com/node-ebics/node-ebics-client/compare/v0.1.6...v0.1.7) | ||
> 5 February 2021 | ||
- fix high severity vulnerabilities [`#44`](https://github.com/node-ebics/node-ebics-client/pull/44) | ||
- chore(deps): bump lodash from 4.17.15 to 4.17.19 [`#39`](https://github.com/node-ebics/node-ebics-client/pull/39) | ||
- chore: fix dev dependencies voulnarbilities [`d5a24f9`](https://github.com/node-ebics/node-ebics-client/commit/d5a24f9537f676ded8d1996928ed7e76b7b9ba3f) | ||
- changelog [`a998538`](https://github.com/node-ebics/node-ebics-client/commit/a998538316c963896c0e7ca76002513f9ea4a01a) | ||
- chore: changelog [`a9bbdd9`](https://github.com/node-ebics/node-ebics-client/commit/a9bbdd95c6ce0fdb9cac5452af6fedb4f04b10cb) | ||
#### [v0.1.6](https://github.com/node-ebics/node-ebics-client/compare/v0.1.4...v0.1.6) | ||
@@ -7,4 +35,2 @@ | ||
- fix high severity vulnerabilities [`#44`](https://github.com/node-ebics/node-ebics-client/pull/44) | ||
- chore(deps): bump lodash from 4.17.15 to 4.17.19 [`#39`](https://github.com/node-ebics/node-ebics-client/pull/39) | ||
- chore(deps): bump acorn from 7.1.0 to 7.1.1 [`#34`](https://github.com/node-ebics/node-ebics-client/pull/34) | ||
@@ -11,0 +37,0 @@ - feat: Wait until the keys are generated [`#33`](https://github.com/node-ebics/node-ebics-client/pull/33) |
@@ -49,2 +49,6 @@ 'use strict'; | ||
* @property {object} [tracesStorage] - traces (logs) storage implementation | ||
* @property {string} bankName - Full name of the bank to be used in the bank INI letters. | ||
* @property {string} bankShortName - Short name of the bank to be used in folders, filenames etc. | ||
* @property {string} languageCode - Language code to be used in the bank INI letters ("de", "en" and "fr" are currently supported). | ||
* @property {string} storageLocation - Location where to store the files that are downloaded. This can be a network share for example. | ||
*/ | ||
@@ -66,2 +70,6 @@ | ||
tracesStorage, | ||
bankName, | ||
bankShortName, | ||
languageCode, | ||
storageLocation, | ||
}) { | ||
@@ -89,2 +97,6 @@ if (!url) | ||
this.tracesStorage = tracesStorage || null; | ||
this.bankName = bankName || 'Dummy Bank Full Name'; | ||
this.bankShortName = bankShortName || 'BANKSHORTCODE'; | ||
this.languageCode = languageCode || 'en'; | ||
this.storageLocation = storageLocation || null; | ||
} | ||
@@ -91,0 +103,0 @@ |
@@ -70,8 +70,11 @@ 'use strict'; | ||
static sign(key, msg, salt = crypto.randomBytes(32)) { | ||
// console.log(key.d()); | ||
const base = new BigNumber(emsaPSS(msg, salt)); | ||
const power = new BigNumber(key.d()); | ||
const mod = new BigNumber(key.n()); | ||
const buffer = modPow(base, power, mod).toBEBuffer(); | ||
return (modPow(base, power, mod)).toBEBuffer().toString('base64'); | ||
if (buffer.byteLength !== 257 && buffer[0] === 0x00) | ||
return buffer.slice(1).toString('base64'); | ||
return buffer.toString('base64'); | ||
} | ||
@@ -78,0 +81,0 @@ |
@@ -17,2 +17,4 @@ 'use strict'; | ||
const XG1 = require('./XG1'); | ||
const G1V = require('./G1V'); | ||
const G1R = require('./G1R'); | ||
@@ -31,2 +33,5 @@ const STA = require('./STA'); | ||
const C53 = require('./C53'); | ||
const G52 = require('./G52'); | ||
const G53 = require('./G53'); | ||
const G02 = require('./G02'); | ||
@@ -49,2 +54,4 @@ module.exports = { | ||
XG1, | ||
G1V, | ||
G1R, | ||
@@ -62,2 +69,5 @@ STA, | ||
C53, | ||
G52, | ||
G53, | ||
G02, | ||
}; |
{ | ||
"name": "ebics-client", | ||
"version": "0.1.7", | ||
"version": "0.2.0", | ||
"description": "Node.js ISO 20022 Compliant EBICS Client", | ||
@@ -54,2 +54,6 @@ "main": "index.js", | ||
"url": "https://github.com/chrwoizi" | ||
}, | ||
{ | ||
"name": "Herrie", | ||
"url": "https://github.com/Herrie82" | ||
} | ||
@@ -59,14 +63,14 @@ ], | ||
"dependencies": { | ||
"handlebars": "^4.7.6", | ||
"handlebars": "^4.7.7", | ||
"js2xmlparser": "^4.0.1", | ||
"node-forge": "^0.10.0", | ||
"request": "^2.88.2", | ||
"uuid": "^8.0.0", | ||
"xml-crypto": "^2.0.0", | ||
"xmldom": "^0.3.0", | ||
"xpath": "0.0.27" | ||
"uuid": "^8.3.2", | ||
"xml-crypto": "^2.1.1", | ||
"xmldom": "^0.5.0", | ||
"xpath": "0.0.32" | ||
}, | ||
"devDependencies": { | ||
"auto-changelog": "^1.16.2", | ||
"chai": "^4.2.0", | ||
"chai": "^4.3.4", | ||
"coveralls": "^3.1.0", | ||
@@ -78,4 +82,4 @@ "eslint": "^6.7.2", | ||
"mocha": "^7.1.2", | ||
"nyc": "^15.0.1" | ||
"nyc": "^15.1.0" | ||
} | ||
} |
@@ -31,2 +31,4 @@ <p align="center"> | ||
* [Bank GPB International S.A.](https://gazprombank.lu/e-banking) | ||
* [Bank GPB AO](https://gazprombank.ru/) | ||
* [J.P. Morgan](https://www.jpmorgan.com/) | ||
@@ -41,4 +43,4 @@ | ||
Copyright: eCollect AG, 2018-9. | ||
Copyright: Dimitar Nanov, 2019-2021. | ||
Licensed under the [GPLv3](LICENSE) license. | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125476
63
1984
45
+ Addedxmldom@0.5.0(transitive)
- Removedxmldom@0.3.0(transitive)
- Removedxpath@0.0.27(transitive)
Updatedhandlebars@^4.7.7
Updateduuid@^8.3.2
Updatedxml-crypto@^2.1.1
Updatedxmldom@^0.5.0
Updatedxpath@0.0.32