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.28.2 to 1.28.3-alpha.1

11

dist/client.js

@@ -5,2 +5,3 @@ import fs from 'fs';

import logger from '@percy/logger';
import Pako from 'pako';
import { pool, request, formatBytes, sha256hash, base64encode, getPackageJSON, waitForTimeout, validateTiles } from './utils.js';

@@ -12,2 +13,5 @@

} = process.env;
const {
PERCY_GZIP = false
} = process.env;
const pkg = getPackageJSON(import.meta.url);

@@ -320,3 +324,8 @@ // minimum polling interval milliseconds

validateId('build', buildId);
if (filepath) content = await fs.promises.readFile(filepath);
if (filepath) {
content = await fs.promises.readFile(filepath);
if (PERCY_GZIP) {
content = Pako.gzip(content);
}
}
let encodedContent = base64encode(content);

@@ -323,0 +332,0 @@ this.log.debug(`Uploading ${formatBytes(encodedContent.length)} resource: ${url}...`);

11

package.json
{
"name": "@percy/client",
"version": "1.28.2",
"version": "1.28.3-alpha.1",
"license": "MIT",

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

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

@@ -36,6 +36,7 @@ "engines": {

"dependencies": {
"@percy/env": "1.28.2",
"@percy/logger": "1.28.2"
"@percy/env": "1.28.3-alpha.1",
"@percy/logger": "1.28.3-alpha.1",
"pako": "^2.1.0"
},
"gitHead": "88105fef569632b816955fcd1320bcc4b218bf67"
"gitHead": "af2067cad8ac8f67dacf2cf7e28ab257e0bac12f"
}
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