@percy/config
Advanced tools
Comparing version 1.27.1 to 1.27.2
@@ -5,3 +5,3 @@ import merge from './merge.js'; | ||
// Edge case camelizations | ||
const CAMELCASE_MAP = new Map([['css', 'CSS'], ['javascript', 'JavaScript'], ['dom', 'DOM']]); | ||
const CAMELCASE_MAP = new Map([['css', 'CSS'], ['javascript', 'JavaScript'], ['dom', 'DOM'], ['xpaths', 'XPaths']]); | ||
@@ -8,0 +8,0 @@ // Regular expression that matches words from boundaries or consecutive casing |
@@ -18,2 +18,14 @@ import AJV from 'ajv/dist/2019.js'; | ||
keywords: [{ | ||
keyword: 'onlyAutomate', | ||
error: { | ||
message: 'property only valid with Automate integration.' | ||
}, | ||
code: cxt => { | ||
let isAutomateProjectToken = (process.env.PERCY_TOKEN || '').split('_')[0] === 'auto'; | ||
// we do validation only when token is passed | ||
if (!!process.env.PERCY_TOKEN && !isAutomateProjectToken) { | ||
cxt.error(); | ||
} | ||
} | ||
}, { | ||
// custom instanceof schema validation | ||
@@ -20,0 +32,0 @@ keyword: 'instanceof', |
{ | ||
"name": "@percy/config", | ||
"version": "1.27.1", | ||
"version": "1.27.2", | ||
"license": "MIT", | ||
@@ -41,3 +41,3 @@ "repository": { | ||
"dependencies": { | ||
"@percy/logger": "1.27.1", | ||
"@percy/logger": "1.27.2", | ||
"ajv": "^8.6.2", | ||
@@ -50,3 +50,3 @@ "cosmiconfig": "^8.0.0", | ||
}, | ||
"gitHead": "a6f6441483b9c092ee1de1832f53c9a774968202" | ||
"gitHead": "cb64b0c124a5ee1fcb14b130a1fa8e33d26a7284" | ||
} |
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
34859
793
5
+ Added@percy/logger@1.27.2(transitive)
- Removed@percy/logger@1.27.1(transitive)
Updated@percy/logger@1.27.2