Socket
Socket
Sign inDemoInstall

@alchemyalcove/hsl-to-rgb

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

dist/index.js

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

val = l * 255;
return [Math.round(val), Math.round(val), Math.round(val)];
return [val, val, val];
}

@@ -51,3 +51,3 @@

rgb[i] = Math.round(val * 255);
rgb[i] = val * 255;
}

@@ -54,0 +54,0 @@

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

var formLinker = require("./dist");
var HSLtoRGB = require("./dist");
module.exports = formLinker;
module.exports = HSLtoRGB;
{
"name": "@alchemyalcove/hsl-to-rgb",
"version": "1.0.0",
"version": "1.0.1",
"description": "Convert hsl to rgb",

@@ -5,0 +5,0 @@ "author": "Mike Hoffert",

@@ -13,3 +13,3 @@ export default function(hsl) {

val = l * 255;
return([Math.round(val), Math.round(val), Math.round(val)]);
return([val, val, val]);
}

@@ -45,3 +45,3 @@

rgb[i] = Math.round(val * 255);
rgb[i] = val * 255;
}

@@ -48,0 +48,0 @@

@@ -24,3 +24,3 @@ import Convert from "../src";

test("valid midnight blue", () => {
expect(Convert([210, 29, 24])).toEqual([43, 61, 79]);
expect(Convert([210, 29, 24])).toEqual([43.452, 61.19999999999998, 78.948]);
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc