Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

theme-colors

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

theme-colors - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

7

CHANGELOG.md

@@ -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 @@

3

dist/utils.js

@@ -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) {

2

package.json
{
"name": "theme-colors",
"version": "0.0.4",
"version": "0.0.5",
"description": "easily generate color shades for themes",

@@ -5,0 +5,0 @@ "keywords": [

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