ofx-data-extractor 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ofx-data-extractor v1.3.
|
|
1
|
+
// Ofx-data-extractor v1.3.5 Copyright (c) 2024 Fábio Pereira França
|
|
2
2
|
const N=/<\/\w+>/g,x=/<\w+>/g,E="<BANKMSGSRSV1>",f="</BANKMSGSRSV1>",d="<CREDITCARDMSGSRSV1>",l="</CREDITCARDMSGSRSV1>",g="<STMTTRN>",c="</STMTTRN>",O=[E,g,d],b=[f,l,c];function M(e){const t=e.slice(0,4),n=e.slice(4,6),r=e.slice(6,8),a=e.slice(8,10),s=e.slice(10,12),i=e.slice(12,14);return{yyyy:t,yy:t.slice(2),y:t,MM:n,M:n,dd:r,d:r,hh:a,h:a,mm:s,m:s,ss:i,s:i}}function R(e,t){const n=M(e);let r=t;for(const[a,s]of Object.entries(n))r=r.replace(a,s);return r}function T(e){return e.replace(/(\\)/g,"\\\\").replace(N,t=>w(t,!0)).replace(x,t=>D(t,!0)).replace(/(},})/g,"}}").replace(/(}")/g,'},"').replace(/(},])/g,"}]").replace(/(,})/g,"}").replace(/({")/g,`{
|
|
3
3
|
"`).replace(/(})/g,`
|
|
4
4
|
}`).replace(/(",")/g,`",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OfxResponse, OfxStructure, STRTTRN } from '../@types/ofx';
|
|
2
|
-
import { ExtractorConfig, MetaData, TransactionsSummary } from '
|
|
2
|
+
import { ExtractorConfig, MetaData, TransactionsSummary } from '../@types/common';
|
|
3
3
|
export interface IExtractor<T> {
|
|
4
4
|
config(config: ExtractorConfig): this;
|
|
5
5
|
getHeaders(): MetaData;
|
package/dist/umd/bundle.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Ofx-data-extractor v1.3.
|
|
1
|
+
// Ofx-data-extractor v1.3.5 Copyright (c) 2024 Fábio Pereira França
|
|
2
2
|
(function(o,u){typeof exports=="object"&&typeof module<"u"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(o=typeof globalThis<"u"?globalThis:o||self,u(o.ofx={}))})(this,function(o){"use strict";const u=/<\/\w+>/g,x=/<\w+>/g,E="<BANKMSGSRSV1>",l="</BANKMSGSRSV1>",g="<CREDITCARDMSGSRSV1>",S="</CREDITCARDMSGSRSV1>",m="<STMTTRN>",f="</STMTTRN>",y=[E,m,g],M=[l,S,f];function B(e){const t=e.slice(0,4),n=e.slice(4,6),r=e.slice(6,8),a=e.slice(8,10),s=e.slice(10,12),i=e.slice(12,14);return{yyyy:t,yy:t.slice(2),y:t,MM:n,M:n,dd:r,d:r,hh:a,h:a,mm:s,m:s,ss:i,s:i}}function R(e,t){const n=B(e);let r=t;for(const[a,s]of Object.entries(n))r=r.replace(a,s);return r}function T(e){return e.replace(/(\\)/g,"\\\\").replace(u,t=>w(t,!0)).replace(x,t=>D(t,!0)).replace(/(},})/g,"}}").replace(/(}")/g,'},"').replace(/(},])/g,"}]").replace(/(,})/g,"}").replace(/({")/g,`{
|
|
3
3
|
"`).replace(/(})/g,`
|
|
4
4
|
}`).replace(/(",")/g,`",
|