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

@mekari/pixel-avatar

Package Overview
Dependencies
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mekari/pixel-avatar - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

24

dist/mekari-pixel-avatar.cjs.dev.js

@@ -329,15 +329,17 @@ 'use strict';

loadImage(src) {
if (!pixelUtils.canUseDOM) return;
const image = new window.Image();
image.src = src;
if (src) {
if (!pixelUtils.canUseDOM) return;
const image = new window.Image();
image.src = src;
image.onload = e => {
this.hasLoaded = true;
this.$emit('load', e);
};
image.onload = e => {
this.hasLoaded = true;
this.$emit('load', e);
};
image.onerror = e => {
this.hasLoaded = false;
this.$emit('error', e);
};
image.onerror = e => {
this.hasLoaded = false;
this.$emit('error', e);
};
}
}

@@ -344,0 +346,0 @@

@@ -329,15 +329,17 @@ 'use strict';

loadImage(src) {
if (!pixelUtils.canUseDOM) return;
const image = new window.Image();
image.src = src;
if (src) {
if (!pixelUtils.canUseDOM) return;
const image = new window.Image();
image.src = src;
image.onload = e => {
this.hasLoaded = true;
this.$emit('load', e);
};
image.onload = e => {
this.hasLoaded = true;
this.$emit('load', e);
};
image.onerror = e => {
this.hasLoaded = false;
this.$emit('error', e);
};
image.onerror = e => {
this.hasLoaded = false;
this.$emit('error', e);
};
}
}

@@ -344,0 +346,0 @@

@@ -325,15 +325,17 @@ import { MpBox } from '@mekari/pixel-box';

loadImage(src) {
if (!canUseDOM) return;
const image = new window.Image();
image.src = src;
if (src) {
if (!canUseDOM) return;
const image = new window.Image();
image.src = src;
image.onload = e => {
this.hasLoaded = true;
this.$emit('load', e);
};
image.onload = e => {
this.hasLoaded = true;
this.$emit('load', e);
};
image.onerror = e => {
this.hasLoaded = false;
this.$emit('error', e);
};
image.onerror = e => {
this.hasLoaded = false;
this.$emit('error', e);
};
}
}

@@ -340,0 +342,0 @@

{
"name": "@mekari/pixel-avatar",
"version": "0.4.4",
"version": "0.4.5",
"description": "Mekari Pixel | Avatar component",

@@ -5,0 +5,0 @@ "homepage": "https://mekari.design/",

@@ -142,15 +142,17 @@ import { MpBox } from '@mekari/pixel-box'

loadImage(src) {
if (!canUseDOM) return
if (src) {
if (!canUseDOM) return
const image = new window.Image()
image.src = src
image.onload = (e) => {
this.hasLoaded = true
this.$emit('load', e)
const image = new window.Image()
image.src = src
image.onload = (e) => {
this.hasLoaded = true
this.$emit('load', e)
}
image.onerror = (e) => {
this.hasLoaded = false
this.$emit('error', e)
}
}
image.onerror = (e) => {
this.hasLoaded = false
this.$emit('error', e)
}
}

@@ -157,0 +159,0 @@ },

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