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:
parent
5a22b751b4
commit
245fda8a42
4
packages/api-redundancy/package-lock.json
generated
4
packages/api-redundancy/package-lock.json
generated
@ -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",
|
||||
|
@ -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"
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user