@liip/npm-icons
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -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", |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
14381
2
12