diff --git a/packages/api-redundancy/package-lock.json b/packages/api-redundancy/package-lock.json index 9c939c9..6b67f2c 100644 --- a/packages/api-redundancy/package-lock.json +++ b/packages/api-redundancy/package-lock.json @@ -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", diff --git a/packages/core/package.json b/packages/core/package.json index 4fd39dc..d383654 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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" diff --git a/packages/core/src/modern/index.ts b/packages/core/src/modern/index.ts index 776a7c9..45f1727 100644 --- a/packages/core/src/modern/index.ts +++ b/packages/core/src/modern/index.ts @@ -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);