Socket
Socket
Sign inDemoInstall

@chayns/colors

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chayns/colors - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

cjs/generator/chaynsColors.js

@@ -95,3 +95,3 @@ "use strict";

colorData[base400Index] = (0, _lightenDarken.lightenHexColor)(color, (brightness * -1 + 100) * 0.5);
} else if (brightness === 100 && (0, _index.hexToHsl)(color).s < 15) {
} else if (brightness === 100 && (0, _index.hexToHsl)(color).s < 0.15) {
colorData[base400Index] = '#a8a8a8';

@@ -98,0 +98,0 @@ } else {

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

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _index[key]) return;
Object.defineProperty(exports, key, {

@@ -63,2 +64,3 @@ enumerable: true,

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _index2[key]) return;
Object.defineProperty(exports, key, {

@@ -65,0 +67,0 @@ enumerable: true,

@@ -10,4 +10,6 @@ "use strict";

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
var _excluded = ["a"];
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -39,3 +41,3 @@

var a = color.a,
colorWithoutTransparency = _objectWithoutProperties(color, ["a"]);
colorWithoutTransparency = _objectWithoutProperties(color, _excluded);

@@ -42,0 +44,0 @@ return _objectSpread({}, colorWithoutTransparency);

@@ -81,3 +81,3 @@ import { darkenHexColor, lightenHexColor } from './lightenDarken';

colorData[base400Index] = lightenHexColor(color, (brightness * -1 + 100) * 0.5);
} else if (brightness === 100 && hexToHsl(color).s < 15) {
} else if (brightness === 100 && hexToHsl(color).s < 0.15) {
colorData[base400Index] = '#a8a8a8';

@@ -84,0 +84,0 @@ } else {

@@ -1,3 +0,5 @@

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
var _excluded = ["a"];
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -30,3 +32,3 @@

var a = color.a,
colorWithoutTransparency = _objectWithoutProperties(color, ["a"]);
colorWithoutTransparency = _objectWithoutProperties(color, _excluded);

@@ -33,0 +35,0 @@ return _objectSpread({}, colorWithoutTransparency);

{
"name": "@chayns/colors",
"version": "1.0.3",
"version": "1.0.4",
"description": "JavaScript utility functions for the calculation of colors for chayns",

@@ -39,18 +39,18 @@ "main": "cjs/index.js",

"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.11.5",
"@jest/globals": "^26.4.2",
"babel-jest": "^26.3.0",
"eslint": "^7.2.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jsx-a11y": "^6.3.0",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.0",
"jest": "^26.4.2",
"tree-shake": "^1.0.5",
"cross-env": "^7.0.2"
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/preset-env": "^7.14.4",
"@jest/globals": "^26.6.2",
"babel-jest": "^26.6.3",
"cross-env": "^7.0.3",
"eslint": "^7.28.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "^26.6.3",
"tree-shake": "^1.0.5"
},
"dependencies": {}
}
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