darvin-testing-framework
Advanced tools
Comparing version 2.1.4-dev to 2.1.4-dev2
'use strict'; | ||
const fetch, { FetchError } = require('node-fetch'); | ||
const fetch = require('node-fetch'); | ||
@@ -10,3 +10,3 @@ const MAX_RETRIES = 5; | ||
.catch(err => { | ||
if (err instanceof FetchError || retries < MAX_RETRIES) { | ||
if (err instanceof fetch.FetchError || retries < MAX_RETRIES) { | ||
return _fetch(url, options, retries + 1); | ||
@@ -13,0 +13,0 @@ } else { |
{ | ||
"name": "darvin-testing-framework", | ||
"version": "2.1.4-dev", | ||
"version": "2.1.4-dev2", | ||
"description": "A framework for testing Progress NativeChat bots.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
23124
7
261
3