File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
# @nodecfdi/sat-estado-cfdi ChangeLog
2
2
3
+ ## 2.1.1
4
+
5
+ ### fix sonar lint error
6
+
7
+ - fix sonar lint error
8
+
3
9
## 2.1.0
4
10
5
- ### Minor Changes
11
+ ### Refactor lint and added method to see raw response
6
12
7
13
- Refactor lint and added method to see raw response
8
14
- Added method `CfdiStatus.getRawResponse()``
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @nodecfdi/sat-estado-cfdi" ,
3
- "version" : " 2.1.0 " ,
3
+ "version" : " 2.1.1 " ,
4
4
"description" : " Consulta el estado de un cfdi en el webservice del SAT" ,
5
5
"keywords" : [
6
6
" SAT" ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export class CfdiStatusBuilder {
21
21
public createQueryStatus ( ) : QueryStatus {
22
22
// S - Comprobante obtenido satisfactoriamente
23
23
const check = / S - / . exec ( this . codigoEstatus ) ;
24
- if ( check && check [ 0 ] ) {
24
+ if ( check ?. [ 0 ] ) {
25
25
return new QueryStatus ( QueryStatusEnum . Found ) ;
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments