@quartz/js-utils
Advanced tools
Comparing version 1.1.0 to 1.1.1
/** | ||
* Convert a hex color like #336699 to an array of RGB values. | ||
* | ||
* @param {String} hexColor 3- or 6-character hex color. | ||
* @return {Array} | ||
*/ | ||
export default function hexToRGB(hexColor: string): number[]; | ||
export default function hexToRGB(hexColor: string): [number, number, number]; |
@@ -5,5 +5,2 @@ "use strict"; | ||
* Convert a hex color like #336699 to an array of RGB values. | ||
* | ||
* @param {String} hexColor 3- or 6-character hex color. | ||
* @return {Array} | ||
*/ | ||
@@ -10,0 +7,0 @@ function hexToRGB(hexColor) { |
@@ -11,5 +11,5 @@ "use strict"; | ||
function minifyCss(css) { | ||
return css.replace(/\s*([{}\(\);:,])\s*/g, '$1'); | ||
return css.replace(/\s*([{}\(\);:,])\s*/g, '$1').trim(); | ||
} | ||
exports.default = minifyCss; | ||
//# sourceMappingURL=minifyCss.js.map |
{ | ||
"name": "@quartz/js-utils", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A collection of reusable JavaScript utilities for Quartz products.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
15886
238
1