Socket
Socket
Sign inDemoInstall

@percy/config

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/config - npm Package Compare versions

Comparing version 1.27.1 to 1.27.2

2

dist/utils/normalize.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc