Comparing version 0.0.14 to 0.0.15
@@ -9,2 +9,3 @@ 'use strict'; | ||
return function(elem) { | ||
var amountElem = select('a:NtryDtls/a:TxDtls/a:AmtDtls/a:TxAmt/a:Amt', elem)[0]; | ||
return { | ||
@@ -29,3 +30,3 @@ entryReference: select('a:NtryRef/text()', elem).toString(), | ||
transactionAmount: Number(select('a:NtryDtls/a:TxDtls/a:AmtDtls/a:TxAmt/a:Amt/text()', elem).toString()), | ||
transactionAmountCurrency: select('a:NtryDtls/a:TxDtls/a:AmtDtls/a:TxAmt/a:Amt', elem)[0].getAttribute('Ccy').toString(), | ||
transactionAmountCurrency: amountElem && amountElem.getAttribute('Ccy').toString(), | ||
bankTransactionCode: { | ||
@@ -32,0 +33,0 @@ domainCode: select('a:NtryDtls/a:TxDtls/a:BkTxCd/a:Domn/a:Cd/text()', elem).toString(), |
{ | ||
"name": "corporate", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "A module for parsing (mostly) ISO20022 messages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
152063
26
704