argous 1.2.184 → 1.2.185
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/api/index.d.ts +1 -1
- package/dist/api/index.js +2 -2
- package/lib/api/index.js +2 -2
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
|
@@ -62,6 +62,6 @@ export function getFileFromLink({ URL: link }?: {
|
|
|
62
62
|
}): Promise<string>;
|
|
63
63
|
export function getLink(idDocumento: any, nrRevisao: any, timeout: any): Promise<any>;
|
|
64
64
|
export function scanDocument(idDocumento: any, nrRevisao: any): Promise<any>;
|
|
65
|
-
export function getWidgets(
|
|
65
|
+
export function getWidgets(data: any, abortController: any): Promise<any>;
|
|
66
66
|
export function getWidgetInfo(pgCode: any): Promise<any>;
|
|
67
67
|
export function sendWidgets(widgets: any): Promise<any>;
|
package/dist/api/index.js
CHANGED
|
@@ -792,14 +792,14 @@ var scanDocument = function (idDocumento, nrRevisao) { return __awaiter(void 0,
|
|
|
792
792
|
});
|
|
793
793
|
}); };
|
|
794
794
|
exports.scanDocument = scanDocument;
|
|
795
|
-
var getWidgets = function (
|
|
795
|
+
var getWidgets = function (data, abortController) { return __awaiter(void 0, void 0, void 0, function () {
|
|
796
796
|
var res;
|
|
797
797
|
return __generator(this, function (_a) {
|
|
798
798
|
switch (_a.label) {
|
|
799
799
|
case 0: return [4 /*yield*/, fetch(exports.api() + "agetwidgets.rslvr", {
|
|
800
800
|
method: 'post',
|
|
801
801
|
headers: exports.headers(),
|
|
802
|
-
body: JSON.stringify(
|
|
802
|
+
body: JSON.stringify(data),
|
|
803
803
|
signal: abortController === null || abortController === void 0 ? void 0 : abortController.signal
|
|
804
804
|
})];
|
|
805
805
|
case 1:
|
package/lib/api/index.js
CHANGED
|
@@ -416,11 +416,11 @@ export const scanDocument = async (idDocumento, nrRevisao) => {
|
|
|
416
416
|
return await res.json();
|
|
417
417
|
};
|
|
418
418
|
|
|
419
|
-
export const getWidgets = async (
|
|
419
|
+
export const getWidgets = async (data, abortController) => {
|
|
420
420
|
const res = await fetch(`${api()}agetwidgets.rslvr`, {
|
|
421
421
|
method: 'post',
|
|
422
422
|
headers: headers(),
|
|
423
|
-
body: JSON.stringify(
|
|
423
|
+
body: JSON.stringify(data),
|
|
424
424
|
signal: abortController?.signal
|
|
425
425
|
});
|
|
426
426
|
return await res.json();
|