2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-13 14:13:06 +00:00

chore: build packages done

This commit is contained in:
Joaquín Sánchez Jiménez 2021-12-11 23:23:00 +01:00
parent 5a22b751b4
commit 245fda8a42
3 changed files with 8 additions and 4 deletions

View File

@ -1,12 +1,12 @@
{
"name": "@iconify/api-redundancy",
"version": "1.0.1",
"version": "1.0.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@iconify/api-redundancy",
"version": "1.0.1",
"version": "1.0.2",
"license": "(Apache-2.0 OR GPL-2.0)",
"devDependencies": {
"@types/jest": "^27.0.1",

View File

@ -94,6 +94,10 @@
"require": "./lib/modern/index.js",
"import": "./lib/modern/index.mjs"
},
"./lib/modern/index": {
"require": "./lib/modern/index.js",
"import": "./lib/modern/index.mjs"
},
"./lib/storage/functions": {
"require": "./lib/storage/functions.js",
"import": "./lib/storage/functions.mjs"

View File

@ -1,6 +1,6 @@
import { promises as fs } from 'fs';
import type { IconifyJSON } from '@iconify/types';
import type { FullIconifyIcon } from '@iconify/utils';
import type { FullIconifyIcon } from '@iconify/utils/lib/icon';
import { defaultCustomisations as DefaultIconCustomizations, iconToSVG, getIconData, tryInstallPkg } from '@iconify/utils';
import createDebugger from 'debug';
import { isPackageExists, resolveModule } from 'local-pkg';
@ -53,7 +53,7 @@ export async function loadCollection(name: string, autoInstall = false): Promise
}
}
export function searchForIcon(iconSet: IconifyJSON, collection: string, ids: string[], scale = 1): FullIconifyIcon | null {
export function searchForIcon(iconSet: IconifyJSON, collection: string, ids: string[], scale = 1): string | null {
let iconData: FullIconifyIcon | null;
for (const id of ids) {
iconData = getIconData(iconSet, id, true);