@credithub/harlan-components 1.81.2 → 1.81.4

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.
@@ -34,10 +34,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import { Client } from "@credithub/webservice";
38
- import { useCallback, useContext } from "react";
39
- import { WebService } from "../webservice";
40
- import XPathUtils from "../../utils/xpath";
37
+ import XPathUtils from '../../utils/xpath';
38
+ import { Client } from '@credithub/webservice';
39
+ import { useCallback, useContext } from 'react';
40
+ import { WebService } from '../webservice';
41
41
  var useLiminarProtestosDoPassado = function (_a) {
42
42
  var documento = _a.documento;
43
43
  var client = useContext(WebService);
@@ -52,7 +52,10 @@ var useLiminarProtestosDoPassado = function (_a) {
52
52
  switch (_b.label) {
53
53
  case 0:
54
54
  _b.trys.push([0, 3, , 4]);
55
- return [4 /*yield*/, client.request("SELECT FROM 'PDFPROTESTO'.'PDF'", { nm_chave: numeroChave })];
55
+ return [4 /*yield*/, client.request("SELECT FROM 'PDFPROTESTO'.'PDF'", {
56
+ nm_chave: numeroChave,
57
+ documento: documento
58
+ })];
56
59
  case 1:
57
60
  response = _b.sent();
58
61
  return [4 /*yield*/, response.json()];
@@ -93,7 +96,7 @@ var useLiminarProtestosDoPassado = function (_a) {
93
96
  data = _a.sent();
94
97
  return [4 /*yield*/, Client.WebService.parse(data)];
95
98
  case 2:
96
- parsed = _a.sent();
99
+ parsed = (_a.sent());
97
100
  nodes = XPathUtils.selectArray('//protesto/nm_chave', parsed);
98
101
  numerosChave = Array.from(new Set(nodes.map(function (node) { return node.textContent || ''; })));
99
102
  return [4 /*yield*/, getAlgumInstrumentoPossuiPDF(numerosChave)];