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.27 to 1.0.28

9

lib/loader/types.d.ts

@@ -25,2 +25,3 @@ import { Awaitable } from '@antfu/utils';

* - apply `additionalProps` with `iconCustomizer` customizations, if provided
* - apply `trimSVG` to the final `SVG` only when using custom icon collection and `trimCustomSvg` enabled
*/

@@ -54,2 +55,10 @@ declare type IconCustomizations = {

additionalProps?: Record<string, string | undefined>;
/**
* Should optimize the custom `svg` icon?.
*
* Enable this flag when using custom `SVG` on `CSS`.
*
* @default `false`.
*/
trimCustomSvg?: boolean;
};

@@ -56,0 +65,0 @@ /**

@@ -0,3 +1,8 @@

/**
* Encode the `SVG` to be used on `CSS`: https://bl.ocks.org/jennyknuth/222825e315d45a738ed9d6e04c7a88d0.
*
* @param svg The `SVG` source.
*/
declare function encodeSvgForCss(svg: string): string;
export { encodeSvgForCss };

9

package.json

@@ -6,3 +6,3 @@ {

"author": "Vjacheslav Trushkin",
"version": "1.0.27",
"version": "1.0.28",
"license": "MIT",

@@ -204,9 +204,2 @@ "bugs": "https://github.com/iconify/iconify/issues",

],
"typesVersions": {
"*": {
"*": [
"./lib/*"
]
}
},
"dependencies": {

@@ -213,0 +206,0 @@ "@antfu/install-pkg": "^0.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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