Skip to content

Commit 3e98a2a

Browse files
authored
Merge pull request #9 from nodecfdi/dev
chore: version bump 2.1.1
2 parents aad53d1 + b4ac05d commit 3e98a2a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# @nodecfdi/sat-estado-cfdi ChangeLog
22

3+
## 2.1.1
4+
5+
### fix sonar lint error
6+
7+
- fix sonar lint error
8+
39
## 2.1.0
410

5-
### Minor Changes
11+
### Refactor lint and added method to see raw response
612

713
- Refactor lint and added method to see raw response
814
- Added method `CfdiStatus.getRawResponse()``

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nodecfdi/sat-estado-cfdi",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Consulta el estado de un cfdi en el webservice del SAT",
55
"keywords": [
66
"SAT",

src/utils/cfdi-status-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class CfdiStatusBuilder {
2121
public createQueryStatus(): QueryStatus {
2222
// S - Comprobante obtenido satisfactoriamente
2323
const check = /S - /.exec(this.codigoEstatus);
24-
if (check && check[0]) {
24+
if (check?.[0]) {
2525
return new QueryStatus(QueryStatusEnum.Found);
2626
}
2727

0 commit comments

Comments
 (0)