@applitools/dom-snapshot
Advanced tools
Comparing version 1.2.21 to 1.2.22
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.2.21 | ||
// @applitools/dom-snapshot@1.2.22 | ||
function __processPage() { | ||
@@ -226,3 +226,3 @@ var processPage = (function () { | ||
return Promise.all( | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs.bind(null, doc))), | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs)), | ||
).then(resourceUrlsAndBlobsArr => aggregateResourceUrlsAndBlobs(resourceUrlsAndBlobsArr)); | ||
@@ -242,3 +242,3 @@ }; | ||
const m = url && url.match(/(^[^#]*)/); | ||
return (m && m[1]) || url; | ||
return ((m && m[1]) || url).replace(/\?\s*$/, ''); | ||
} | ||
@@ -295,3 +295,3 @@ | ||
.filter(filterInlineUrl_1); | ||
result = getResourceUrlsAndBlobs(baseUrl, resourceUrls).then( | ||
result = getResourceUrlsAndBlobs(doc, baseUrl, resourceUrls).then( | ||
({resourceUrls, blobsObj}) => ({ | ||
@@ -298,0 +298,0 @@ resourceUrls, |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.2.21 | ||
// @applitools/dom-snapshot@1.2.22 | ||
function __processPageAndPoll() { | ||
@@ -278,3 +278,3 @@ var processPageAndPoll = (function () { | ||
return Promise.all( | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs.bind(null, doc))), | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs)), | ||
).then(resourceUrlsAndBlobsArr => aggregateResourceUrlsAndBlobs(resourceUrlsAndBlobsArr)); | ||
@@ -294,3 +294,3 @@ }; | ||
const m = url && url.match(/(^[^#]*)/); | ||
return (m && m[1]) || url; | ||
return ((m && m[1]) || url).replace(/\?\s*$/, ''); | ||
} | ||
@@ -347,3 +347,3 @@ | ||
.filter(filterInlineUrl_1); | ||
result = getResourceUrlsAndBlobs(baseUrl, resourceUrls).then( | ||
result = getResourceUrlsAndBlobs(doc, baseUrl, resourceUrls).then( | ||
({resourceUrls, blobsObj}) => ({ | ||
@@ -350,0 +350,0 @@ resourceUrls, |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.2.21 | ||
// @applitools/dom-snapshot@1.2.22 | ||
function __processPageAndSerialize() { | ||
@@ -278,3 +278,3 @@ var processPageAndSerialize = (function () { | ||
return Promise.all( | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs.bind(null, doc))), | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs)), | ||
).then(resourceUrlsAndBlobsArr => aggregateResourceUrlsAndBlobs(resourceUrlsAndBlobsArr)); | ||
@@ -294,3 +294,3 @@ }; | ||
const m = url && url.match(/(^[^#]*)/); | ||
return (m && m[1]) || url; | ||
return ((m && m[1]) || url).replace(/\?\s*$/, ''); | ||
} | ||
@@ -347,3 +347,3 @@ | ||
.filter(filterInlineUrl_1); | ||
result = getResourceUrlsAndBlobs(baseUrl, resourceUrls).then( | ||
result = getResourceUrlsAndBlobs(doc, baseUrl, resourceUrls).then( | ||
({resourceUrls, blobsObj}) => ({ | ||
@@ -350,0 +350,0 @@ resourceUrls, |
@@ -223,3 +223,3 @@ 'use strict'; | ||
return Promise.all( | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs.bind(null, doc))), | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs)), | ||
).then(resourceUrlsAndBlobsArr => aggregateResourceUrlsAndBlobs(resourceUrlsAndBlobsArr)); | ||
@@ -239,3 +239,3 @@ }; | ||
const m = url && url.match(/(^[^#]*)/); | ||
return (m && m[1]) || url; | ||
return ((m && m[1]) || url).replace(/\?\s*$/, ''); | ||
} | ||
@@ -292,3 +292,3 @@ | ||
.filter(filterInlineUrl_1); | ||
result = getResourceUrlsAndBlobs(baseUrl, resourceUrls).then( | ||
result = getResourceUrlsAndBlobs(doc, baseUrl, resourceUrls).then( | ||
({resourceUrls, blobsObj}) => ({ | ||
@@ -295,0 +295,0 @@ resourceUrls, |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "1.2.21", | ||
"version": "1.2.22", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -6,3 +6,3 @@ 'use strict'; | ||
return Promise.all( | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs.bind(null, doc))), | ||
urls.map(url => processResource(url, doc, baseUrl, getResourceUrlsAndBlobs)), | ||
).then(resourceUrlsAndBlobsArr => aggregateResourceUrlsAndBlobs(resourceUrlsAndBlobsArr)); | ||
@@ -9,0 +9,0 @@ }; |
@@ -47,3 +47,3 @@ 'use strict'; | ||
.filter(filterInlineUrl); | ||
result = getResourceUrlsAndBlobs(baseUrl, resourceUrls).then( | ||
result = getResourceUrlsAndBlobs(doc, baseUrl, resourceUrls).then( | ||
({resourceUrls, blobsObj}) => ({ | ||
@@ -50,0 +50,0 @@ resourceUrls, |
@@ -5,5 +5,5 @@ 'use strict'; | ||
const m = url && url.match(/(^[^#]*)/); | ||
return (m && m[1]) || url; | ||
return ((m && m[1]) || url).replace(/\?\s*$/, ''); | ||
} | ||
module.exports = toUnAnchoredUri; |
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
103202