Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/node-modules-inspector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"devframe": "catalog:deps",
"fast-npm-meta": "catalog:deps",
"h3": "catalog:deps",
"mlly": "catalog:testing",
"node-modules-tools": "workspace:*",
"p-limit": "catalog:deps",
"pathe": "catalog:deps",
Expand Down
2 changes: 1 addition & 1 deletion packages/node-modules-inspector/src/app/utils/semver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { compareSemver } from '#shared/semver'

export { compareSemver }

export interface ParsedSemver {
interface ParsedSemver {
valid: boolean
raw: string
highest?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,3 @@ export function renderTable(columns: Column[], rows: string[][]): string {

return [headerLine, rule, ...rowLines].join('\n')
}

export function section(title: string, body: string): string {
return `${c.bold.cyan(title)}\n${body}\n`
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import { formatDuplicates } from './format-duplicates'
import { formatMaintainers } from './format-maintainers'
import { formatSizes } from './format-sizes'

export type ReportType = 'maintainers' | 'duplicates' | 'sizes'

type ReportType = 'maintainers' | 'duplicates' | 'sizes'
export interface RunReportOptions {
type: ReportType
root: string
Expand Down
2 changes: 0 additions & 2 deletions packages/node-modules-inspector/src/node/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import c from 'ansis'

export const MARK_CHECK = c.green('βœ”')
export const MARK_INFO = c.blue('β„Ή')
export const MARK_ERROR = c.red('βœ–')
export const MARK_NODE = 'β¬’'
2 changes: 0 additions & 2 deletions packages/node-modules-inspector/src/shared/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export const WS_EVENT_NAME = 'node-modules-inspector'

export const WEBCONTAINER_STDOUT_PREFIX = '::node-modules-inspector::'
2 changes: 1 addition & 1 deletion packages/node-modules-inspector/src/shared/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface FilterOptions {
compareB: null | string[]
}

export interface FilterSchema<Type> {
interface FilterSchema<Type> {
type: StringConstructor | ArrayConstructor | BooleanConstructor
default: Type
category: 'select' | 'exclude' | 'compare' | 'option'
Expand Down
8 changes: 4 additions & 4 deletions packages/node-modules-inspector/src/shared/reports/dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import type {
MaintainerActionItem,
} from './maintainers'

export interface ReportConsumerDto {
interface ReportConsumerDto {
spec: string
name: string
version: string
depth: number
}

export type MaintainerActionItemDto
type MaintainerActionItemDto
= | MaintainerActionDepUpgradeDto
| MaintainerActionPublintDto

export interface MaintainerActionDepUpgradeDto {
interface MaintainerActionDepUpgradeDto {
kind: 'dep-upgrade'
depName: string
depType: 'peer' | 'prod'
Expand Down Expand Up @@ -45,7 +45,7 @@ export interface MaintainersGroupDto {
latestReleasedAt: number
}

export function toMaintainerItemDto(item: MaintainerActionItem): MaintainerActionItemDto {
function toMaintainerItemDto(item: MaintainerActionItem): MaintainerActionItemDto {
if (item.kind === 'publint') {
return {
kind: 'publint',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface BaseAction {
key: string
}

export interface DepUpgradeAction extends BaseAction {
interface DepUpgradeAction extends BaseAction {
kind: 'dep-upgrade'
depName: string
depType: 'peer' | 'prod'
Expand All @@ -31,15 +31,15 @@ export interface DepUpgradeAction extends BaseAction {
migrationRatio: number
}

export interface PublintAction extends BaseAction {
interface PublintAction extends BaseAction {
kind: 'publint'
messages: PublintMessage[]
counts: { error: number, warning: number, suggestion: number }
}

export type MaintainerActionItem = DepUpgradeAction | PublintAction

export type MaintainerActionSortMode = 'depth' | 'migration' | 'latest'
type MaintainerActionSortMode = 'depth' | 'migration' | 'latest'

export interface MaintainerActionGroup {
consumer: PackageNode
Expand All @@ -50,7 +50,7 @@ export interface MaintainerActionGroup {
latestReleasedAt: number
}

export interface MaintainerActionAuthorEntry {
interface MaintainerActionAuthorEntry {
author: ParsedAuthor
count: number
}
Expand Down
4 changes: 2 additions & 2 deletions packages/node-modules-tools/src/registry/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface RegistryCache<T = any> {
setItem: (key: string, value: T) => Promise<void>
}

export interface ResolveRegistryDependenciesProgress {
interface ResolveRegistryDependenciesProgress {
/** Current phase: resolving the graph, or fetching full manifests */
phase: 'resolving' | 'manifests'
/** Number of packages resolved so far */
Expand All @@ -52,7 +52,7 @@ export interface ResolveRegistryDependenciesProgress {
total?: number
}

export type RegistryResolveWarningType
type RegistryResolveWarningType
= | 'unsupported-spec'
| 'unresolved-version'
| 'fetch-error'
Expand Down
Loading
Loading