Comparing version 0.0.36 to 0.0.37
18
index.js
@@ -59,4 +59,7 @@ import axios from 'axios' | ||
if (status === 'wifi' || status === 'cellular' || !status) { | ||
//send pendings | ||
// promise.all() | ||
for (const elem of safList) { | ||
await callSrv(elem.method, elem.path, elem.params) | ||
} | ||
safList = [] | ||
localStorage.safList = [] | ||
evt.emit('onSAFCompleted') | ||
@@ -89,11 +92,2 @@ } | ||
if (saf) { | ||
Notify.create({ | ||
message: "Se encuentra sin coberturda de internet. La grabación se almacena hasta tener nuevamente cobertura y se enviará automaticamente.", | ||
color: 'black-6', | ||
progress: true, | ||
multiLine: true, | ||
textColor: 'white', | ||
icon: 'error', | ||
timeout: 10000, | ||
}) | ||
const pl = { | ||
@@ -145,3 +139,2 @@ method, | ||
evt.emit('onNewPendingTask', safList.length) | ||
//tirar evento para la apk (enviar cantidad de saflist) | ||
} | ||
@@ -152,2 +145,1 @@ function conLogger (str) { | ||
} | ||
{ | ||
"name": "fwk-api", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"description": "Framework with api services access(only javascript)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4343
131