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

@iconify/utils

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iconify/utils - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

build.js

1

lib/icon-set/convert-info.d.ts

@@ -17,2 +17,3 @@ import type { IconifyInfo } from '@iconify/types';

displayHeight?: number;
samplesHeight?: number;
category?: string;

@@ -19,0 +20,0 @@ palette?: 'Colorless' | 'Colorful';

20

lib/icon-set/convert-info.js

@@ -114,12 +114,14 @@ "use strict";

}
if (typeof source.displayHeight === 'number' ||
typeof source.displayHeight === 'string') {
// Convert from source.displayHeight
const num = parseInt(source.displayHeight);
if (num >= minDisplayHeight &&
num <= maxDisplayHeight &&
Math.round(num) === num) {
result.displayHeight = num;
['samplesHeight', 'displayHeight'].forEach((prop) => {
const value = source[prop];
if (typeof value === 'number' || typeof value === 'string') {
// Convert from source.displayHeight or source.samplesHeight
const num = parseInt(value);
if (num >= minDisplayHeight &&
num <= maxDisplayHeight &&
Math.round(num) === num) {
result.displayHeight = num;
}
}
}
});
// Convert palette from string value

@@ -126,0 +128,0 @@ if (typeof source.palette === 'string') {

@@ -5,3 +5,3 @@ {

"author": "Vjacheslav Trushkin",
"version": "1.0.11",
"version": "1.0.12",
"license": "MIT",

@@ -8,0 +8,0 @@ "bugs": "https://github.com/iconify/iconify/issues",

Sorry, the diff of this file is not supported yet

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