Socket
Socket
Sign inDemoInstall

@percy/client

Package Overview
Dependencies
Maintainers
1
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/client - npm Package Compare versions

Comparing version 1.29.1-alpha.0 to 1.29.1-beta.0

dist/detect-proxy.js

17

dist/client.js

@@ -318,3 +318,3 @@ import fs from 'fs';

// created from `content` if one is not provided.
async uploadResource(buildId, snapshotId, {
async uploadResource(buildId, {
url,

@@ -333,3 +333,3 @@ sha,

let encodedContent = base64encode(content);
this.log.debug(`Uploading ${formatBytes(encodedContent.length)} resource for snapshotId ${snapshotId}: ${url}...`);
this.log.debug(`Uploading ${formatBytes(encodedContent.length)} resource: ${url}...`);
this.mayBeLogUploadSize(encodedContent.length);

@@ -348,8 +348,8 @@ return this.post(`builds/${buildId}/resources`, {

// Uploads resources to the active build concurrently, two at a time.
async uploadResources(buildId, snapshotId, resources) {
async uploadResources(buildId, resources) {
validateId('build', buildId);
this.log.debug(`Uploading resources for BuildId: ${buildId} and SnapshotId: ${snapshotId}...`);
this.log.debug(`Uploading resources for ${buildId}...`);
return pool(function* () {
for (let resource of resources) {
yield this.uploadResource(buildId, snapshotId, resource);
yield this.uploadResource(buildId, resource);
}

@@ -434,6 +434,3 @@ }, this, 2);

let snapshot = await this.createSnapshot(buildId, options);
let snapshotId = snapshot.data.id;
this.log.debug(`Created snapshot with Id: ${snapshotId}...`);
let missing = (_snapshot$data$relati = snapshot.data.relationships) === null || _snapshot$data$relati === void 0 ? void 0 : (_snapshot$data$relati2 = _snapshot$data$relati['missing-resources']) === null || _snapshot$data$relati2 === void 0 ? void 0 : _snapshot$data$relati2.data;
this.log.debug(`Found ${missing === null || missing === void 0 ? void 0 : missing.length} missing resources for snapshotId: ${snapshotId}...`);
if (missing !== null && missing !== void 0 && missing.length) {

@@ -443,3 +440,3 @@ let resources = options.resources.reduce((acc, r) => Object.assign(acc, {

}), {});
await this.uploadResources(buildId, snapshotId, missing.map(({
await this.uploadResources(buildId, missing.map(({
id

@@ -546,3 +543,3 @@ }) => resources[id]));

async verify(comparisonId, sha) {
let retries = 10;
let retries = 20;
let success = null;

@@ -549,0 +546,0 @@ do {

{
"name": "@percy/client",
"version": "1.29.1-alpha.0",
"version": "1.29.1-beta.0",
"license": "MIT",

@@ -12,3 +12,3 @@ "repository": {

"access": "public",
"tag": "alpha"
"tag": "beta"
},

@@ -27,2 +27,3 @@ "engines": {

"./utils": "./dist/utils.js",
"./detect-proxy": "./dist/detect-proxy.js",
"./test/helpers": "./test/helpers.js"

@@ -37,7 +38,7 @@ },

"dependencies": {
"@percy/env": "1.29.1-alpha.0",
"@percy/logger": "1.29.1-alpha.0",
"@percy/env": "1.29.1-beta.0",
"@percy/logger": "1.29.1-beta.0",
"pako": "^2.1.0"
},
"gitHead": "5044adb5caa7507fdec629eda8f33d6ddde07997"
"gitHead": "d325b7bbe56764dbde494477d1f4f3bfdc562d6e"
}
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