zephyr-import
Advanced tools
Comparing version
@@ -25,3 +25,3 @@ "use strict"; | ||
throw e; | ||
if (e?.message?.includes("Rate limit exceeded")) { | ||
if (e && e.message && e.message.includes("Rate limit exceeded")) { | ||
console.warn(`Rate limit hit. Retrying in ${delay}ms...`); | ||
@@ -28,0 +28,0 @@ await new Promise(res => setTimeout(res, delay)); |
{ | ||
"name": "zephyr-import", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Parsing JSON data and import it to Zephyr as reports of autoamtion testing!", | ||
@@ -5,0 +5,0 @@ "author": "lukaspollak", |
@@ -22,3 +22,3 @@ // get parent dir name of node modules | ||
if (retries <= 0) throw e; | ||
if (e?.message?.includes("Rate limit exceeded")) { | ||
if (e && e.message && e.message.includes("Rate limit exceeded")) { | ||
console.warn(`Rate limit hit. Retrying in ${delay}ms...`); | ||
@@ -25,0 +25,0 @@ await new Promise(res => setTimeout(res, delay)); |
63848
0.05%