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

@appnest/lit-util

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appnest/lit-util - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

constant/pattern.d.ts

1

constant/index.d.ts
export * from "./keycode";
export * from "./pattern";
/**

@@ -3,0 +4,0 @@ * An empty src to use when no media src can be provided

export * from "./keycode";
export * from "./pattern";
/**

@@ -3,0 +4,0 @@ * An empty src to use when no media src can be provided

2

package.json
{
"name": "@appnest/lit-util",
"version": "0.0.7",
"version": "0.0.8",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Appnest",

@@ -0,1 +1,2 @@

import { HEX_PATTERN } from "../constant/pattern";
/**

@@ -6,3 +7,3 @@ * Converts a hex number into rgb.

export function hexToRGB(hex) {
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(hex);
const result = HEX_PATTERN.exec(hex);
if (result == null)

@@ -28,3 +29,3 @@ return null;

export function isHex(hex) {
return /^#?(([a-f\d]{6})([a-f\d]{2})?|[a-f\d]{3})$/i.test(hex);
return HEX_PATTERN.test(hex);
}

@@ -31,0 +32,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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