New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hi-ui/avatar

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hi-ui/avatar - npm Package Compare versions

Comparing version 4.0.5 to 4.0.6

12

CHANGELOG.md
# @hi-ui/avatar
## 4.0.6
### Patch Changes
- fix: 修复 rollup3 打包 cjs 模块问题
- Updated dependencies
- @hi-ui/env@4.0.3
- @hi-ui/core@4.0.7
- @hi-ui/use-latest@4.0.3
- @hi-ui/icons@4.0.17
- @hi-ui/classname@4.0.3
## 4.0.5

@@ -4,0 +16,0 @@

24

lib/cjs/Avatar.js

@@ -12,2 +12,6 @@ /** @LICENSE

var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, '__esModule', {
value: true
});
var tslib = require('tslib');

@@ -19,2 +23,8 @@ var React = require('react');

var useLatest = require('@hi-ui/use-latest');
function _interopDefaultCompat(e) {
return e && _typeof(e) === 'object' && 'default' in e ? e : {
'default': e
};
}
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
var _role = 'avatar';

@@ -48,3 +58,3 @@ var _prefix = classname.getPrefixCls(_role);

if (src) {
return /*#__PURE__*/React.createElement("img", {
return /*#__PURE__*/React__default["default"].createElement("img", {
className: prefixCls + "__image",

@@ -57,3 +67,3 @@ src: src,

if (icon) {
return /*#__PURE__*/React.createElement("span", {
return /*#__PURE__*/React__default["default"].createElement("span", {
"aria-label": name,

@@ -64,3 +74,3 @@ className: prefixCls + "__content"

if (initials) {
return /*#__PURE__*/React.createElement("span", {
return /*#__PURE__*/React__default["default"].createElement("span", {
"aria-label": name,

@@ -71,3 +81,3 @@ className: prefixCls + "__content"

if (children) {
return /*#__PURE__*/React.createElement("span", {
return /*#__PURE__*/React__default["default"].createElement("span", {
"aria-label": name,

@@ -77,6 +87,6 @@ className: prefixCls + "__content"

}
return /*#__PURE__*/React.createElement("span", {
return /*#__PURE__*/React__default["default"].createElement("span", {
"aria-label": name,
className: prefixCls + "__content " + prefixCls + "--empty"
}, /*#__PURE__*/React.createElement(icons.UserFilled, null));
}, /*#__PURE__*/React__default["default"].createElement(icons.UserFilled, null));
}, [src, initials, icon, name, children, prefixCls, onErrorLatestRef]);

@@ -96,3 +106,3 @@ var shouldUseSpecialSize = typeof size === 'number';

}
return /*#__PURE__*/React.createElement("div", Object.assign({
return /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
ref: ref,

@@ -99,0 +109,0 @@ role: role,

{
"name": "@hi-ui/avatar",
"version": "4.0.5",
"version": "4.0.6",
"description": "A sub-package for @hi-ui/hiui.",

@@ -46,9 +46,9 @@ "keywords": [],

"dependencies": {
"@hi-ui/classname": "^4.0.2",
"@hi-ui/env": "^4.0.2",
"@hi-ui/icons": "^4.0.16",
"@hi-ui/use-latest": "^4.0.2"
"@hi-ui/classname": "^4.0.3",
"@hi-ui/env": "^4.0.3",
"@hi-ui/icons": "^4.0.17",
"@hi-ui/use-latest": "^4.0.3"
},
"peerDependencies": {
"@hi-ui/core": ">=4.0.6",
"@hi-ui/core": ">=4.0.7",
"react": ">=16.8.6",

@@ -58,4 +58,4 @@ "react-dom": ">=16.8.6"

"devDependencies": {
"@hi-ui/core": "^4.0.6",
"@hi-ui/core-css": "^4.1.3",
"@hi-ui/core": "^4.0.7",
"@hi-ui/core-css": "^4.1.4",
"react": "^17.0.1",

@@ -62,0 +62,0 @@ "react-dom": "^17.0.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