@percy/client
Advanced tools
Comparing version 1.28.3-beta.1 to 1.28.3
@@ -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'; | ||
@@ -319,3 +320,8 @@ | ||
validateId('build', buildId); | ||
if (filepath) content = await fs.promises.readFile(filepath); | ||
if (filepath) { | ||
content = await fs.promises.readFile(filepath); | ||
if (process.env.PERCY_GZIP) { | ||
content = Pako.gzip(content); | ||
} | ||
} | ||
let encodedContent = base64encode(content); | ||
@@ -322,0 +328,0 @@ this.log.debug(`Uploading ${formatBytes(encodedContent.length)} resource: ${url}...`); |
{ | ||
"name": "@percy/client", | ||
"version": "1.28.3-beta.1", | ||
"version": "1.28.3", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "beta" | ||
"tag": "latest" | ||
}, | ||
@@ -36,6 +36,7 @@ "engines": { | ||
"dependencies": { | ||
"@percy/env": "1.28.3-beta.1", | ||
"@percy/logger": "1.28.3-beta.1" | ||
"@percy/env": "1.28.3", | ||
"@percy/logger": "1.28.3", | ||
"pako": "^2.1.0" | ||
}, | ||
"gitHead": "3a838eedd0f07f57c6c61cd0cba1c7e20cc95af3" | ||
"gitHead": "5d41045921c7ac06329c4b72caaf291d34e3f699" | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
48209
1133
1
3
11
+ Addedpako@^2.1.0
+ Added@percy/env@1.28.3(transitive)
+ Added@percy/logger@1.28.3(transitive)
+ Addedpako@2.1.0(transitive)
- Removed@percy/env@1.28.3-beta.1(transitive)
- Removed@percy/logger@1.28.3-beta.1(transitive)
Updated@percy/env@1.28.3
Updated@percy/logger@1.28.3