astro-icon
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28659
650