@percy/config
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
@@ -27,7 +27,12 @@ "use strict"; | ||
} | ||
} // Converts a kebab-cased string to camelCase. | ||
} // Edge case camelizations | ||
const CAMELIZE_MAP = { | ||
css: 'CSS', | ||
javascript: 'JavaScript' | ||
}; // Converts a kebab-cased string to camelCase. | ||
function camelize(s) { | ||
return s.replace(/-./g, l => l.toUpperCase()[1]); | ||
return s.replace(/-([^-]+)/g, (_, w) => CAMELIZE_MAP[w] || w[0].toUpperCase() + w.slice(1)); | ||
} |
{ | ||
"name": "@percy/config", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@percy/logger": "^1.0.0-beta.4", | ||
"@percy/logger": "^1.0.0-beta.5", | ||
"ajv": "^6.12.0", | ||
@@ -36,3 +36,3 @@ "cosmiconfig": "^6.0.0", | ||
}, | ||
"gitHead": "3764125115d56bfa90fcbb9f44159d75f5c5ac44" | ||
"gitHead": "b57ce6989adff31a4b31bf15293891808789ca9b" | ||
} |
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
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
16293
312
Updated@percy/logger@^1.0.0-beta.5