Skip to content

Commit d4c0a2f

Browse files
committed
fix
1 parent 866e070 commit d4c0a2f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

server/api/registry/analysis/[...pkg].get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { parseRepoUrl } from '#shared/utils/git-providers'
2626
import { encodePackageName } from '#shared/utils/npm'
2727
import { flattenFileTree } from '#server/utils/import-resolver'
2828
import { getPackageFileTree } from '#server/utils/file-tree'
29-
import { getLatestVersion, getLatestVersionBatch } from 'fast-npm-meta'
29+
import { getLatestVersionBatch } from 'fast-npm-meta'
3030

3131
export default defineCachedEventHandler(
3232
async event => {

shared/utils/package-analysis.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Package analysis utilities for detecting module format and TypeScript support
33
*/
44

5+
import { getLatestVersion } from 'fast-npm-meta'
6+
57
export type ModuleFormat = 'esm' | 'cjs' | 'dual' | 'unknown'
68

79
export type TypesStatus =

0 commit comments

Comments
 (0)