mirror of
https://github.com/iconify/iconify.git
synced 2024-11-10 07:11:00 +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",
|
"name": "@iconify/api-redundancy",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@iconify/api-redundancy",
|
"name": "@iconify/api-redundancy",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"license": "(Apache-2.0 OR GPL-2.0)",
|
"license": "(Apache-2.0 OR GPL-2.0)",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.0.1",
|
"@types/jest": "^27.0.1",
|
||||||
|
@ -94,6 +94,10 @@
|
|||||||
"require": "./lib/modern/index.js",
|
"require": "./lib/modern/index.js",
|
||||||
"import": "./lib/modern/index.mjs"
|
"import": "./lib/modern/index.mjs"
|
||||||
},
|
},
|
||||||
|
"./lib/modern/index": {
|
||||||
|
"require": "./lib/modern/index.js",
|
||||||
|
"import": "./lib/modern/index.mjs"
|
||||||
|
},
|
||||||
"./lib/storage/functions": {
|
"./lib/storage/functions": {
|
||||||
"require": "./lib/storage/functions.js",
|
"require": "./lib/storage/functions.js",
|
||||||
"import": "./lib/storage/functions.mjs"
|
"import": "./lib/storage/functions.mjs"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { promises as fs } from 'fs';
|
import { promises as fs } from 'fs';
|
||||||
import type { IconifyJSON } from '@iconify/types';
|
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 { defaultCustomisations as DefaultIconCustomizations, iconToSVG, getIconData, tryInstallPkg } from '@iconify/utils';
|
||||||
import createDebugger from 'debug';
|
import createDebugger from 'debug';
|
||||||
import { isPackageExists, resolveModule } from 'local-pkg';
|
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;
|
let iconData: FullIconifyIcon | null;
|
||||||
for (const id of ids) {
|
for (const id of ids) {
|
||||||
iconData = getIconData(iconSet, id, true);
|
iconData = getIconData(iconSet, id, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user