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

@hig/avatar

Package Overview
Dependencies
Maintainers
7
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hig/avatar - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

build/index.es.js

@@ -1665,2 +1665,4 @@ import React, { Component } from 'react';

var COLOR_VARIANT_COUNT = 7;
/**

@@ -1681,3 +1683,3 @@ * @param {number} value

function backgroundIdFromName(name) {
return convertRanges(name.charCodeAt(0) - 65, [0, 26], [1, 8]);
return convertRanges(name.charCodeAt(0) - 65, [0, 26], [1, COLOR_VARIANT_COUNT]);
}

@@ -1684,0 +1686,0 @@

@@ -1672,2 +1672,4 @@ 'use strict';

var COLOR_VARIANT_COUNT = 7;
/**

@@ -1688,3 +1690,3 @@ * @param {number} value

function backgroundIdFromName(name) {
return convertRanges(name.charCodeAt(0) - 65, [0, 26], [1, 8]);
return convertRanges(name.charCodeAt(0) - 65, [0, 26], [1, COLOR_VARIANT_COUNT]);
}

@@ -1691,0 +1693,0 @@

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

# [@hig/avatar-v1.0.2](https://github.com/Autodesk/hig/compare/@hig/avatar@1.0.1...@hig/avatar@1.0.2) (2019-01-09)
### Bug Fixes
* Shows a bg color for names starting w/ Z ([9745ec3](https://github.com/Autodesk/hig/commit/9745ec3))
# [@hig/avatar-v1.0.1](https://github.com/Autodesk/hig/compare/@hig/avatar@1.0.0...@hig/avatar@1.0.1) (2019-01-04)

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

{
"name": "@hig/avatar",
"version": "1.0.1",
"version": "1.0.2",
"description": "HIG Avatar",

@@ -20,2 +20,3 @@ "author": "Autodesk Inc.",

"dependencies": {
"@hig/theme-context": "^1.0.1",
"classnames": "^2.2.5",

@@ -22,0 +23,0 @@ "prop-types": "^15.6.1",

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