New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@applitools/visual-grid-client

Package Overview
Dependencies
Maintainers
12
Versions
574
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/visual-grid-client - npm Package Compare versions

Comparing version 5.3.6 to 5.3.7

2

package.json
{
"name": "@applitools/visual-grid-client",
"version": "5.3.6",
"version": "5.3.7",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/visual-grid-client.js",

@@ -8,5 +8,5 @@ 'use strict';

function assignWithoutOverride(obj1, obj2) {
function assignContentfulResources(obj1, obj2) {
for (const p in obj2) {
if (!obj1[p]) {
if (!obj1[p] || !obj1[p].getContent()) {
obj1[p] = obj2[p];

@@ -69,3 +69,3 @@ }

for (const url in preResources) {
Object.assign(resources, await processResource(preResources[url]));
assignContentfulResources(resources, await processResource(preResources[url]));
}

@@ -77,3 +77,3 @@

if (cacheEntry) {
assignWithoutOverride(resources, mapValues(cacheEntry, fromCacheToRGridResource));
assignContentfulResources(resources, mapValues(cacheEntry, fromCacheToRGridResource));
} else if (/^https?:$/i.test(new URL(url).protocol)) {

@@ -87,3 +87,5 @@ missingResourceUrls.push(url);

fetchResource(url)
.then(async resource => assignWithoutOverride(resources, await processResource(resource)))
.then(async resource =>
assignContentfulResources(resources, await processResource(resource)),
)
.catch(ex => {

@@ -90,0 +92,0 @@ logger.log(`error fetching resource at ${url}: ${ex}`);

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