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

@wedgekit/color

Package Overview
Dependencies
Maintainers
16
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wedgekit/color - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

dist/colorPalette.d.ts

7

CHANGELOG.md

@@ -25,2 +25,9 @@ # Change Log

## [4.2.1] - 2021-02-23
## Fixed
- Fixed file structure to allow for type imports in other TS modules
- Convert invalid return type of hexToRGBA to undefined to allowed inclusion in Styles without null coalescing
## [4.2.0] - 2021-01-29

@@ -27,0 +34,0 @@

2

dist/contextualize.d.ts

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

import { ColorTag } from './color';
import { ColorTag } from './colorPalette';
export declare type Context = {

@@ -3,0 +3,0 @@ bg: ColorTag;

@@ -0,0 +0,0 @@ declare const contrastColors: {

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

import { ColorTag } from './color';
import { ColorTag } from './colorPalette';
import { ContrastColorTag } from './contrastColors';

@@ -3,0 +3,0 @@ declare type ContrastColors = {

@@ -7,2 +7,2 @@ /**

*/
export default function hexToRGBA(color: string, alpha?: number): string;
export default function hexToRGBA(color: string, alpha?: number | string): string | undefined;

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

export { default, ColorPalette, ColorTag } from './color';
export { default, ColorPalette, ColorTag } from './colorPalette';
export { default as contextualize, Context, ContextDomain } from './contextualize';

@@ -3,0 +3,0 @@ export { default as getContrastColors } from './getContrastColors';

{
"name": "@wedgekit/color",
"version": "4.2.0",
"main": "dist/color.js",
"version": "4.2.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [

@@ -13,3 +14,3 @@ "dist/*"

"ava-ts": "^0.25.2",
"esbuild": "^0.8.39",
"esbuild": "^0.8.50",
"nyc": "^15.0.1",

@@ -22,2 +23,3 @@ "prettier": "^1.17.1",

"build": "node ./build.js && tsc",
"start": "node ./build.js --watch",
"prepublish:test": "yarn version --prerelease --preid tc --no-git-tag-version",

@@ -24,0 +26,0 @@ "publish:test": "yarn publish --tag test",

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