@applitools/dom-snapshot
Advanced tools
Comparing version 1.2.9 to 1.2.10
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.2.9 | ||
// @applitools/dom-snapshot@1.2.10 | ||
function __processPage() { | ||
@@ -340,7 +340,9 @@ var processPage = (function () { | ||
return fetch(url, {cache: 'force-cache', credentials: 'same-origin'}).then(resp => | ||
resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})), | ||
resp.status === 200 | ||
? resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})) | ||
: Promise.reject(`bad status code ${resp.status}`), | ||
); | ||
@@ -347,0 +349,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.2.9 | ||
// @applitools/dom-snapshot@1.2.10 | ||
function __processPageAndPoll() { | ||
@@ -392,7 +392,9 @@ var processPageAndPoll = (function () { | ||
return fetch(url, {cache: 'force-cache', credentials: 'same-origin'}).then(resp => | ||
resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})), | ||
resp.status === 200 | ||
? resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})) | ||
: Promise.reject(`bad status code ${resp.status}`), | ||
); | ||
@@ -399,0 +401,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.2.9 | ||
// @applitools/dom-snapshot@1.2.10 | ||
function __processPageAndSerialize() { | ||
@@ -392,7 +392,9 @@ var processPageAndSerialize = (function () { | ||
return fetch(url, {cache: 'force-cache', credentials: 'same-origin'}).then(resp => | ||
resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})), | ||
resp.status === 200 | ||
? resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})) | ||
: Promise.reject(`bad status code ${resp.status}`), | ||
); | ||
@@ -399,0 +401,0 @@ } |
@@ -337,7 +337,9 @@ 'use strict'; | ||
return fetch(url, {cache: 'force-cache', credentials: 'same-origin'}).then(resp => | ||
resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})), | ||
resp.status === 200 | ||
? resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})) | ||
: Promise.reject(`bad status code ${resp.status}`), | ||
); | ||
@@ -344,0 +346,0 @@ } |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -6,7 +6,9 @@ /* global window */ | ||
return fetch(url, {cache: 'force-cache', credentials: 'same-origin'}).then(resp => | ||
resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})), | ||
resp.status === 200 | ||
? resp.arrayBuffer().then(buff => ({ | ||
url, | ||
type: resp.headers.get('Content-Type'), | ||
value: buff, | ||
})) | ||
: Promise.reject(`bad status code ${resp.status}`), | ||
); | ||
@@ -13,0 +15,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
100106
2562