New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tanbo/color

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanbo/color - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

bundles/color.d.ts

@@ -15,2 +15,2 @@ import { ColorCMYK, ColorHSL, ColorHSV, ColorRGB } from './help';

export declare function hsv2Hsl({ h, s, v }: ColorHSV): ColorHSL;
export declare function hsl2Hsv({ h, s, l }: ColorHSL): ColorHSV;
export declare function hsl2Hsv(color: ColorHSL): ColorHSV;

@@ -208,11 +208,6 @@ import { normalizeAngle, normalizeHex } from './utils';

}
export function hsl2Hsv(_a) {
var h = _a.h, s = _a.s, l = _a.l;
s = s * (l < 50 ? l : (100 - l));
return {
h: h,
s: Math.floor(2 * s / (l + s)),
v: Math.floor(l + s),
};
export function hsl2Hsv(color) {
var rgb = hsl2Rgb(color);
return rgb2Hsv(rgb);
}
//# sourceMappingURL=color.js.map
{
"name": "@tanbo/color",
"version": "0.0.1",
"version": "0.0.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "./bundles/index.js",

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