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

@cocreate/random-color

Package Overview
Dependencies
Maintainers
1
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cocreate/random-color - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.1.3](https://github.com/CoCreate-app/CoCreate-random-color/compare/v1.1.2...v1.1.3) (2021-08-14)
### Bug Fixes
* update to docs ([e092c0a](https://github.com/CoCreate-app/CoCreate-random-color/commit/e092c0a9ae04247af4081293a130648280ec1883))
## [1.1.2](https://github.com/CoCreate-app/CoCreate-random-color/compare/v1.1.1...v1.1.2) (2021-08-02)

@@ -2,0 +9,0 @@

2

package.json
{
"name": "@cocreate/random-color",
"version": "1.1.2",
"version": "1.1.3",
"description": "A simple HTML5 and pure javascript component. Easy configuration using data-attributes and/or JavaScript API. Highly customizable and styleable.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -7,4 +7,4 @@ let defaultSaturation = 75;

function updateRandomColor(){
let avatars = document.querySelectorAll("[data-background_color='random']");
for(let el of avatars){
let elements = document.querySelectorAll("[background-color='random']");
for(let el of elements){
el.style.backgroundColor = randomHSLColor();

@@ -11,0 +11,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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