Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@applitools/dom-snapshot

Package Overview
Dependencies
Maintainers
17
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/dom-snapshot - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

19

dist/processPage.js

@@ -1,2 +0,2 @@

/* @applitools/dom-snapshot@2.2.2 */
/* @applitools/dom-snapshot@2.2.3 */

@@ -442,2 +442,15 @@ function __processPage() {

const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]'))
.map(srcsetEl =>
srcsetEl
.getAttribute('srcset')
.split(', ')
.map(str => str.trim().split(/\s+/)[0]),
)
.reduce((acc, urls) => acc.concat(urls), []);
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl =>
srcEl.getAttribute('src'),
);
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map(

@@ -452,3 +465,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'),

return fromHref
return srcsetUrls
.concat(srcUrls)
.concat(fromHref)
.concat(fromObjects)

@@ -455,0 +470,0 @@ .concat(fromStyleTags)

@@ -1,2 +0,2 @@

/* @applitools/dom-snapshot@2.2.2 */
/* @applitools/dom-snapshot@2.2.3 */

@@ -473,2 +473,15 @@ function __processPageAndPoll() {

const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]'))
.map(srcsetEl =>
srcsetEl
.getAttribute('srcset')
.split(', ')
.map(str => str.trim().split(/\s+/)[0]),
)
.reduce((acc, urls) => acc.concat(urls), []);
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl =>
srcEl.getAttribute('src'),
);
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map(

@@ -483,3 +496,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'),

return fromHref
return srcsetUrls
.concat(srcUrls)
.concat(fromHref)
.concat(fromObjects)

@@ -486,0 +501,0 @@ .concat(fromStyleTags)

@@ -1,2 +0,2 @@

/* @applitools/dom-snapshot@2.2.2 */
/* @applitools/dom-snapshot@2.2.3 */

@@ -494,2 +494,15 @@ function __processPageAndSerialize() {

const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]'))
.map(srcsetEl =>
srcsetEl
.getAttribute('srcset')
.split(', ')
.map(str => str.trim().split(/\s+/)[0]),
)
.reduce((acc, urls) => acc.concat(urls), []);
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl =>
srcEl.getAttribute('src'),
);
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map(

@@ -504,3 +517,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'),

return fromHref
return srcsetUrls
.concat(srcUrls)
.concat(fromHref)
.concat(fromObjects)

@@ -507,0 +522,0 @@ .concat(fromStyleTags)

@@ -1,2 +0,2 @@

/* @applitools/dom-snapshot@2.2.2 */
/* @applitools/dom-snapshot@2.2.3 */
'use strict';

@@ -439,2 +439,15 @@

const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]'))
.map(srcsetEl =>
srcsetEl
.getAttribute('srcset')
.split(', ')
.map(str => str.trim().split(/\s+/)[0]),
)
.reduce((acc, urls) => acc.concat(urls), []);
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl =>
srcEl.getAttribute('src'),
);
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map(

@@ -449,3 +462,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'),

return fromHref
return srcsetUrls
.concat(srcUrls)
.concat(fromHref)
.concat(fromObjects)

@@ -452,0 +467,0 @@ .concat(fromStyleTags)

@@ -1,2 +0,2 @@

/* @applitools/dom-snapshot@2.2.2 */
/* @applitools/dom-snapshot@2.2.3 */

@@ -525,2 +525,15 @@ function __processPageSerializePoll() {

const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]'))
.map(srcsetEl =>
srcsetEl
.getAttribute('srcset')
.split(', ')
.map(str => str.trim().split(/\s+/)[0]),
)
.reduce((acc, urls) => acc.concat(urls), []);
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl =>
srcEl.getAttribute('src'),
);
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map(

@@ -535,3 +548,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'),

return fromHref
return srcsetUrls
.concat(srcUrls)
.concat(fromHref)
.concat(fromObjects)

@@ -538,0 +553,0 @@ .concat(fromStyleTags)

2

package.json
{
"name": "@applitools/dom-snapshot",
"version": "2.2.2",
"version": "2.2.3",
"main": "index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -12,2 +12,15 @@ 'use strict';

const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]'))
.map(srcsetEl =>
srcsetEl
.getAttribute('srcset')
.split(', ')
.map(str => str.trim().split(/\s+/)[0]),
)
.reduce((acc, urls) => acc.concat(urls), []);
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl =>
srcEl.getAttribute('src'),
);
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map(

@@ -22,3 +35,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'),

return fromHref
return srcsetUrls
.concat(srcUrls)
.concat(fromHref)
.concat(fromObjects)

@@ -25,0 +40,0 @@ .concat(fromStyleTags)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc