Socket
Socket
Sign inDemoInstall

@iconify/utils

Package Overview
Dependencies
1
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

2

lib/icon/name.d.ts

@@ -16,3 +16,3 @@ /**

*/
export declare const stringToIcon: (value: string, validate?: boolean | undefined, allowSimpleName?: boolean | undefined) => IconifyIconName | null;
export declare const stringToIcon: (value: string, validate?: boolean | undefined, allowSimpleName?: boolean | undefined, provider?: string) => IconifyIconName | null;
/**

@@ -19,0 +19,0 @@ * Check if icon is valid.

@@ -8,4 +8,3 @@ "use strict";

*/
const stringToIcon = (value, validate, allowSimpleName) => {
let provider = '';
const stringToIcon = (value, validate, allowSimpleName, provider = '') => {
const colonSeparated = value.split(':');

@@ -12,0 +11,0 @@ // Check for provider with correct '@' at start

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

"author": "Vjacheslav Trushkin",
"version": "1.0.2",
"version": "1.0.3",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc