theme-colors
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.0.5](https://github.com/nuxt-contrib/theme-colors/compare/v0.0.4...v0.0.5) (2020-10-15) | ||
### Bug Fixes | ||
* ensure color is string before parsing ([fa6bb1f](https://github.com/nuxt-contrib/theme-colors/commit/fa6bb1fd8274949915c4618a4d780150d3d490d3)) | ||
### [0.0.4](https://github.com/nuxt-contrib/theme-colors/compare/v0.0.3...v0.0.4) (2020-10-13) | ||
@@ -7,0 +14,0 @@ |
@@ -5,2 +5,5 @@ "use strict"; | ||
function parseColor(color = '') { | ||
if (typeof color !== 'string') { | ||
throw new TypeError('Color should be string!'); | ||
} | ||
const hexMatch = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(color); | ||
@@ -7,0 +10,0 @@ if (hexMatch) { |
{ | ||
"name": "theme-colors", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "easily generate color shades for themes", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
7007
90