@percy/client
Advanced tools
Comparing version 1.28.2 to 1.28.3-alpha.1
@@ -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}...`); |
{ | ||
"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" | ||
} |
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
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
48266
1136
3
2
11
+ Addedpako@^2.1.0
+ Added@percy/env@1.28.3-alpha.1(transitive)
+ Added@percy/logger@1.28.3-alpha.1(transitive)
+ Addedpako@2.1.0(transitive)
- Removed@percy/env@1.28.2(transitive)
- Removed@percy/logger@1.28.2(transitive)
Updated@percy/env@1.28.3-alpha.1
Updated@percy/logger@1.28.3-alpha.1