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

color-tf

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-tf - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

14

package.json
{
"name": "color-tf",
"version": "5.0.3",
"version": "5.0.4",
"description": "RGB, HSL, HSV, HWB and more color models convertor",

@@ -9,6 +9,6 @@ "main": "proxy",

"scripts": {
"test": "babel-node --presets @babel/env test/index.spec",
"test": "npm run build && babel-node --presets @babel/env test/index.spec",
"rollup": "rm -rf dist && NODE_ENV=rollup rollup -c",
"build": "rm -rf dist && npm run rollup && babel-node --presets @babel/env generateFns && cp package.json dist/ && cp README.md dist/",
"pub": "npm run build && npm publish dist"
"build": "npm run rollup && babel-node --presets @babel/env generateFns",
"pub": "npm run build && cp package.json dist/ && cp README.md dist/ && npm publish dist"
},

@@ -40,5 +40,7 @@ "repository": {

"rollup": "github:rollup/rollup",
"rollup-plugin-babel": "^4.0.0-beta.4"
"rollup-plugin-babel": "^4.0.0-beta.4",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0"
},
"dependencies": {}
}
}

@@ -92,4 +92,4 @@ 'use strict';

// todo check fromKey, toKey are in available keys, else getPath might be in infinite loop
const fns = getFnPath(lib, fromKey, toKey);
fn = fns.reduceRight((fn, f) => (...a) => f(...fn(...a)));
const fns = getFnPath(lib, fromKey, toKey).map(n => lib[n]);
fn = fns.reduceRight((f, g) => (...a) => g(...f(...a)));
map.set(k, fn);

@@ -96,0 +96,0 @@ }

@@ -0,4 +1,4 @@

import hsv2hwb from './hsv2hwb';
import hsl2hsv from './hsl2hsv';
import hsv2hwb from './hsv2hwb';
export default (...a) => hsl2hsv(...hsv2hwb(...a));
export default (...a) => hsv2hwb(...hsl2hsv(...a));

@@ -0,4 +1,4 @@

import hsv2hsl from './hsv2hsl';
import hwb2hsv from './hwb2hsv';
import hsv2hsl from './hsv2hsl';
export default (...a) => hwb2hsv(...hsv2hsl(...a));
export default (...a) => hsv2hsl(...hwb2hsv(...a));

@@ -90,4 +90,4 @@ import hsl2hsv from './hsl2hsv.js';

// todo check fromKey, toKey are in available keys, else getPath might be in infinite loop
const fns = getFnPath(lib, fromKey, toKey);
fn = fns.reduceRight((fn, f) => (...a) => f(...fn(...a)));
const fns = getFnPath(lib, fromKey, toKey).map(n => lib[n]);
fn = fns.reduceRight((f, g) => (...a) => g(...f(...a)));
map.set(k, fn);

@@ -94,0 +94,0 @@ }

@@ -215,4 +215,4 @@ (function (global, factory) {

// todo check fromKey, toKey are in available keys, else getPath might be in infinite loop
const fns = getFnPath(lib, fromKey, toKey);
fn = fns.reduceRight((fn, f) => (...a) => f(...fn(...a)));
const fns = getFnPath(lib, fromKey, toKey).map(n => lib[n]);
fn = fns.reduceRight((f, g) => (...a) => g(...f(...a)));
map.set(k, fn);

@@ -219,0 +219,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