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

@liip/npm-icons

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liip/npm-icons - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

12

bin/add.js

@@ -23,7 +23,7 @@ // ***********

const getIconSvgUrl = (icon) => `${icon.path}/${icon.file}`;
export const getIconSvgUrl = (icon) => `${icon.path}/${icon.file}`;
const getIconCategoryTitle = (icon) => `${icon.category} =>${icon.subCategory}`;
export const getIconCategoryTitle = (icon) => `${icon.category} =>${icon.subCategory}`;
const getAllIcons = async () => {
export const getAllIcons = async () => {
const { data } = await axios(iconsJsonUrl);

@@ -33,3 +33,3 @@ return data;

const validateTypeOption = (options) => {
export const validateTypeOption = (options) => {
if (options.type && !iconTypes.includes(options.type)) {

@@ -46,3 +46,3 @@ console.error(

const validateIconName = (filteredIcons, name) => {
export const validateIconName = (filteredIcons, name) => {
if (filteredIcons.length === 0) {

@@ -66,3 +66,3 @@ console.error(chalk.bgRed.whiteBright(`Icon: ${name} not found`));

const getIconSvgByType = async (iconType, iconPath) => {
export const getIconSvgByType = async (iconType, iconPath) => {
try {

@@ -69,0 +69,0 @@ const { data } = await axios(`${iconsSvgBaseUrl}/${iconType}/${iconPath}`);

{
"name": "@liip/npm-icons",
"version": "0.2.1",
"version": "0.2.2",
"description": "Import svg icons using cli",

@@ -28,3 +28,3 @@ "keywords": [

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "jest",
"release": "release-it -V",

@@ -37,2 +37,5 @@ "build": "rollup -c"

"devDependencies": {
"@babel/core": "^7.18.0",
"@babel/preset-env": "^7.18.0",
"babel-jest": "^28.1.0",
"eslint": "^8.15.0",

@@ -42,2 +45,3 @@ "eslint-config-airbnb-base": "^15.0.0",

"eslint-plugin-import": "^2.26.0",
"jest": "^28.1.0",
"release-it": "^15.0.0",

@@ -44,0 +48,0 @@ "rollup": "^2.74.0",

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