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

@uiw/color-convert

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/color-convert - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

3

cjs/getContrastingColor.js

@@ -16,3 +16,2 @@ "use strict";

};
exports.getContrastingColor = getContrastingColor;
//# sourceMappingURL=getContrastingColor.js.map
exports.getContrastingColor = getContrastingColor;
export * from './utils';
export * from './getContrastingColor';
export declare type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor;
export declare type ColorResult = {
export type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor;
export type ColorResult = {
rgb: RgbColor;

@@ -6,0 +6,0 @@ hsl: HslColor;

@@ -444,3 +444,2 @@ "use strict";

};
exports.color = color;
//# sourceMappingURL=index.js.map
exports.color = color;

@@ -35,3 +35,2 @@ "use strict";

};
exports.validHex = validHex;
//# sourceMappingURL=utils.js.map
exports.validHex = validHex;

@@ -9,3 +9,2 @@ import { color } from './';

return yiq >= 128 ? '#000' : '#fff';
};
//# sourceMappingURL=getContrastingColor.js.map
};
export * from './utils';
export * from './getContrastingColor';
export declare type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor;
export declare type ColorResult = {
export type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor;
export type ColorResult = {
rgb: RgbColor;

@@ -6,0 +6,0 @@ hsl: HslColor;

@@ -364,3 +364,2 @@ import _extends from "@babel/runtime/helpers/extends";

};
};
//# sourceMappingURL=index.js.map
};

@@ -23,3 +23,2 @@ import { hexToRgba } from './';

};
export var validHex = hex => /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
//# sourceMappingURL=utils.js.map
export var validHex = hex => /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
{
"name": "@uiw/color-convert",
"version": "1.1.2",
"version": "1.1.3",
"description": "Color Convert",

@@ -15,4 +15,4 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"scripts": {
"build": "tsbb build",
"watch": "tsbb watch"
"build": "tsbb build src/*.ts --use-babel --cjs cjs",
"watch": "tsbb watch src/*.ts --use-babel --cjs cjs"
},

@@ -28,3 +28,9 @@ "keywords": [

"src"
]
],
"peerDependencies": {
"@babel/runtime": ">=7.19.0"
},
"devDependencies": {
"@babel/runtime": "^7.21.0"
}
}
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