@percy/core
Advanced tools
Comparing version 1.28.2 to 1.28.3-alpha.1
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'; | ||
const { | ||
PERCY_GZIP = false | ||
} = process.env; | ||
@@ -146,2 +151,8 @@ // Logs verbose debug logs detailing various snapshot options. | ||
}))); | ||
if (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 +159,0 @@ ...snapshot, |
@@ -165,9 +165,9 @@ import fs from 'fs'; | ||
// default chromium revisions corresponds to v96.0.4664.0 | ||
// default chromium revisions corresponds to v123.0.6312.58 | ||
chromium.revisions = { | ||
linux: '929511', | ||
win64: '929483', | ||
win32: '929483', | ||
darwin: '929475', | ||
darwinArm: '929475' | ||
linux: '1262506', | ||
win64: '1262500', | ||
win32: '1262500', | ||
darwin: '1262506', | ||
darwinArm: '1262509' | ||
}; | ||
@@ -174,0 +174,0 @@ |
{ | ||
"name": "@percy/core", | ||
"version": "1.28.2", | ||
"version": "1.28.3-alpha.1", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "latest" | ||
"tag": "alpha" | ||
}, | ||
@@ -47,7 +47,7 @@ "engines": { | ||
"dependencies": { | ||
"@percy/client": "1.28.2", | ||
"@percy/config": "1.28.2", | ||
"@percy/dom": "1.28.2", | ||
"@percy/logger": "1.28.2", | ||
"@percy/webdriver-utils": "1.28.2", | ||
"@percy/client": "1.28.3-alpha.1", | ||
"@percy/config": "1.28.3-alpha.1", | ||
"@percy/dom": "1.28.3-alpha.1", | ||
"@percy/logger": "1.28.3-alpha.1", | ||
"@percy/webdriver-utils": "1.28.3-alpha.1", | ||
"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": "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
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
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
Potential vulnerability
Supply chain riskInitial human review suggests the presence of a vulnerability in this package. It is pending further analysis and confirmation.
Found 1 instance in 1 package
204855
4955
6
15
2
18
+ Addedpako@^2.1.0
+ Added@percy/client@1.28.3-alpha.1(transitive)
+ Added@percy/config@1.28.3-alpha.1(transitive)
+ Added@percy/dom@1.28.3-alpha.1(transitive)
+ Added@percy/env@1.28.3-alpha.1(transitive)
+ Added@percy/logger@1.28.3-alpha.1(transitive)
+ Added@percy/sdk-utils@1.28.3-alpha.1(transitive)
+ Added@percy/webdriver-utils@1.28.3-alpha.1(transitive)
+ Addedpako@2.1.0(transitive)
- Removed@percy/client@1.28.2(transitive)
- Removed@percy/config@1.28.2(transitive)
- Removed@percy/dom@1.28.2(transitive)
- Removed@percy/env@1.28.2(transitive)
- Removed@percy/logger@1.28.2(transitive)
- Removed@percy/sdk-utils@1.28.2(transitive)
- Removed@percy/webdriver-utils@1.28.2(transitive)
Updated@percy/client@1.28.3-alpha.1
Updated@percy/config@1.28.3-alpha.1
Updated@percy/dom@1.28.3-alpha.1
Updated@percy/logger@1.28.3-alpha.1