@applitools/dom-capture
Advanced tools
Comparing version 3.1.1 to 3.1.3
@@ -34,9 +34,9 @@ var _captureDom = (function (exports) { | ||
try { | ||
const response = await fetch(url); | ||
const response = await fetch(url, {cache: 'no-cache'}); | ||
if (response.ok) { | ||
return await response.text(); | ||
} | ||
return ''; | ||
return '/failed to fetch (status ' + response.status + ') css from: ' + url + '/'; | ||
} catch (err) { | ||
return ''; | ||
return '/failed to fetch (error ' + err.toString() + ') css from: ' + url + '/'; | ||
} | ||
@@ -43,0 +43,0 @@ } |
{ | ||
"name": "@applitools/dom-capture", | ||
"version": "3.1.1", | ||
"version": "3.1.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -29,9 +29,9 @@ /* global document, CSSImportRule, fetch*/ | ||
try { | ||
const response = await fetch(url); | ||
const response = await fetch(url, {cache: 'no-cache'}); | ||
if (response.ok) { | ||
return await response.text(); | ||
} | ||
return ''; | ||
return '/failed to fetch (status ' + response.status + ') css from: ' + url + '/'; | ||
} catch (err) { | ||
return ''; | ||
return '/failed to fetch (error ' + err.toString() + ') css from: ' + url + '/'; | ||
} | ||
@@ -38,0 +38,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
19716