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

astro-icon

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-icon - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

8

lib/utils.ts

@@ -105,6 +105,8 @@ import { SPRITESHEET_NAMESPACE } from "./constants";

export function normalizeProps(inputProps: Props) {
const size = inputProps.size ?? "1em";
const size = inputProps.size;
delete inputProps.size;
const width = toAttributeSize(inputProps.width ?? size);
const height = toAttributeSize(inputProps.height ?? size);
const w = inputProps.width ?? size;
const h = inputProps.height ?? size;
const width = w ? toAttributeSize(w) : undefined;
const height = h ? toAttributeSize(h) : undefined;
return { ...inputProps, width, height };

@@ -111,0 +113,0 @@ }

{
"name": "astro-icon",
"version": "0.5.2",
"version": "0.5.3",
"type": "module",

@@ -5,0 +5,0 @@ "exports": {

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