Skip to content

Commit fef2b65

Browse files
committed
Typed import
1 parent f426a3e commit fef2b65

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/commands/info/fetch-package-info.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { PackageData } from './handle-package-info'
21
import constants from '../../constants'
32
import { getSeverityCount } from '../../utils/alert/severity'
43
import { handleApiCall, handleUnsuccessfulApiResponse } from '../../utils/api'
54
import { getPublicToken, setupSdk } from '../../utils/sdk'
65

6+
import type { PackageData } from './handle-package-info'
7+
78
export async function fetchPackageInfo(
89
pkgName: string,
910
pkgVersion: string,

src/commands/info/output-package-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import constants from '@socketsecurity/registry/lib/constants'
55
import { logger } from '@socketsecurity/registry/lib/logger'
66
import { hasKeys } from '@socketsecurity/registry/lib/objects'
77

8-
import { PackageData } from './handle-package-info'
98
import { SEVERITY, formatSeverityCount } from '../../utils/alert/severity'
109
import { ColorOrMarkdown } from '../../utils/color-or-markdown'
1110
import {
1211
getSocketDevAlertUrl,
1312
getSocketDevPackageOverviewUrl
1413
} from '../../utils/socket-url'
1514

15+
import type { PackageData } from './handle-package-info'
1616
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
1717

1818
const { NPM } = constants

0 commit comments

Comments
 (0)