@percy/core
Advanced tools
Comparing version 1.28.3-beta.1 to 1.28.3
import logger from '@percy/logger'; | ||
import Queue from './queue.js'; | ||
import { normalizeURL, hostnameMatches, createResource, createRootResource, createPercyCSSResource, createLogResource, yieldAll, snapshotLogName, withRetries } from './utils.js'; | ||
import { sha256hash } from '@percy/client/utils'; | ||
import Pako from 'pako'; | ||
@@ -146,2 +148,8 @@ // Logs verbose debug logs detailing various snapshot options. | ||
}))); | ||
if (process.env.PERCY_GZIP) { | ||
for (let index = 0; index < resources.length; index++) { | ||
resources[index].content = Pako.gzip(resources[index].content); | ||
resources[index].sha = sha256hash(resources[index].content); | ||
} | ||
} | ||
return { | ||
@@ -148,0 +156,0 @@ ...snapshot, |
{ | ||
"name": "@percy/core", | ||
"version": "1.28.3-beta.1", | ||
"version": "1.28.3", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "beta" | ||
"tag": "latest" | ||
}, | ||
@@ -47,7 +47,7 @@ "engines": { | ||
"dependencies": { | ||
"@percy/client": "1.28.3-beta.1", | ||
"@percy/config": "1.28.3-beta.1", | ||
"@percy/dom": "1.28.3-beta.1", | ||
"@percy/logger": "1.28.3-beta.1", | ||
"@percy/webdriver-utils": "1.28.3-beta.1", | ||
"@percy/client": "1.28.3", | ||
"@percy/config": "1.28.3", | ||
"@percy/dom": "1.28.3", | ||
"@percy/logger": "1.28.3", | ||
"@percy/webdriver-utils": "1.28.3", | ||
"content-disposition": "^0.5.4", | ||
@@ -59,2 +59,3 @@ "cross-spawn": "^7.0.3", | ||
"mime-types": "^2.1.34", | ||
"pako": "^2.1.0", | ||
"path-to-regexp": "^6.2.0", | ||
@@ -64,3 +65,3 @@ "rimraf": "^3.0.2", | ||
}, | ||
"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
204774
4952
1
15
18
+ Addedpako@^2.1.0
+ Added@percy/client@1.28.3(transitive)
+ Added@percy/config@1.28.3(transitive)
+ Added@percy/dom@1.28.3(transitive)
+ Added@percy/env@1.28.3(transitive)
+ Added@percy/logger@1.28.3(transitive)
+ Added@percy/sdk-utils@1.28.3(transitive)
+ Added@percy/webdriver-utils@1.28.3(transitive)
+ Addedpako@2.1.0(transitive)
- Removed@percy/client@1.28.3-beta.1(transitive)
- Removed@percy/config@1.28.3-beta.1(transitive)
- Removed@percy/dom@1.28.3-beta.1(transitive)
- Removed@percy/env@1.28.3-beta.1(transitive)
- Removed@percy/logger@1.28.3-beta.1(transitive)
- Removed@percy/sdk-utils@1.28.3-beta.1(transitive)
- Removed@percy/webdriver-utils@1.28.3-beta.1(transitive)
Updated@percy/client@1.28.3
Updated@percy/config@1.28.3
Updated@percy/dom@1.28.3
Updated@percy/logger@1.28.3