convert-slow-api
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -57,2 +57,6 @@ "use strict"; | ||
_context.next = 8; | ||
return waitTime(config.interval); | ||
case 8: | ||
_context.next = 10; | ||
return axios.get(url, { | ||
@@ -64,3 +68,3 @@ params: { | ||
case 8: | ||
case 10: | ||
_yield$axios$get = _context.sent; | ||
@@ -73,3 +77,3 @@ _yield$axios$get$data = _yield$axios$get.data; | ||
if (!finished) { | ||
_context.next = 17; | ||
_context.next = 19; | ||
break; | ||
@@ -79,3 +83,3 @@ } | ||
if (!error) { | ||
_context.next = 16; | ||
_context.next = 18; | ||
break; | ||
@@ -86,9 +90,5 @@ } | ||
case 16: | ||
case 18: | ||
return _context.abrupt("return", result); | ||
case 17: | ||
_context.next = 19; | ||
return waitTime(config.interval); | ||
case 19: | ||
@@ -95,0 +95,0 @@ _context.next = 5; |
{ | ||
"name": "convert-slow-api", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/get-router.js", |
@@ -12,2 +12,3 @@ import Axios from "axios" | ||
while (true) { | ||
await waitTime(config.interval) | ||
let { data: { result, error, finished } } = await axios.get(url, { | ||
@@ -20,3 +21,2 @@ params: { id }, | ||
} | ||
await waitTime(config.interval) | ||
} | ||
@@ -23,0 +23,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package