Skip to content

Commit b499bd6

Browse files
committed
Update deps
1 parent 369a4e8 commit b499bd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+173
-171
lines changed

package-lock.json

Lines changed: 45 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"@biomejs/biome": "2.1.2",
8787
"@coana-tech/cli": "14.10.3",
8888
"@cyclonedx/cdxgen": "11.4.4",
89-
"@dotenvx/dotenvx": "1.48.1",
89+
"@dotenvx/dotenvx": "1.48.2",
9090
"@eslint/compat": "1.3.1",
9191
"@eslint/js": "9.31.0",
9292
"@npmcli/arborist": "9.1.2",
@@ -111,8 +111,8 @@
111111
"@socketregistry/is-interactive": "1.0.6",
112112
"@socketregistry/packageurl-js": "1.0.8",
113113
"@socketsecurity/config": "3.0.1",
114-
"@socketsecurity/registry": "1.0.241",
115-
"@socketsecurity/sdk": "1.4.57",
114+
"@socketsecurity/registry": "1.0.243",
115+
"@socketsecurity/sdk": "1.4.60",
116116
"@types/blessed": "0.1.25",
117117
"@types/cmd-shim": "5.0.2",
118118
"@types/js-yaml": "4.0.9",
@@ -126,7 +126,7 @@
126126
"@types/which": "3.0.4",
127127
"@types/yargs-parser": "21.0.3",
128128
"@typescript-eslint/parser": "8.37.0",
129-
"@typescript/native-preview": "7.0.0-dev.20250720.1",
129+
"@typescript/native-preview": "7.0.0-dev.20250721.1",
130130
"@vitest/coverage-v8": "3.2.4",
131131
"blessed": "0.1.81",
132132
"blessed-contrib": "4.11.0",

src/commands/analytics/fetch-org-analytics.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { handleApiCall } from '../../utils/api.mts'
22
import { setupSdk } from '../../utils/sdk.mts'
33

44
import type { CResult } from '../../types.mts'
5-
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
5+
import type { SocketSdkSuccessResult } from '@socketsecurity/sdk'
66

77
export async function fetchOrgAnalyticsData(
88
time: number,
9-
): Promise<CResult<SocketSdkReturnType<'getOrgAnalytics'>['data']>> {
9+
): Promise<CResult<SocketSdkSuccessResult<'getOrgAnalytics'>['data']>> {
1010
const sockSdkCResult = await setupSdk()
1111
if (!sockSdkCResult.ok) {
1212
return sockSdkCResult

src/commands/analytics/fetch-repo-analytics.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { handleApiCall } from '../../utils/api.mts'
22
import { setupSdk } from '../../utils/sdk.mts'
33

44
import type { CResult } from '../../types.mts'
5-
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
5+
import type { SocketSdkSuccessResult } from '@socketsecurity/sdk'
66

77
export async function fetchRepoAnalyticsData(
88
repo: string,
99
time: number,
10-
): Promise<CResult<SocketSdkReturnType<'getRepoAnalytics'>['data']>> {
10+
): Promise<CResult<SocketSdkSuccessResult<'getRepoAnalytics'>['data']>> {
1111
const sockSdkCResult = await setupSdk()
1212
if (!sockSdkCResult.ok) {
1313
return sockSdkCResult

src/commands/analytics/handle-analytics.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { fetchRepoAnalyticsData } from './fetch-repo-analytics.mts'
33
import { outputAnalytics } from './output-analytics.mts'
44

55
import type { CResult, OutputKind } from '../../types.mts'
6-
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
6+
import type { SocketSdkSuccessResult } from '@socketsecurity/sdk'
77

88
export async function handleAnalytics({
99
filePath,
@@ -19,8 +19,8 @@ export async function handleAnalytics({
1919
filePath: string
2020
}) {
2121
let result: CResult<
22-
| SocketSdkReturnType<'getOrgAnalytics'>['data']
23-
| SocketSdkReturnType<'getRepoAnalytics'>['data']
22+
| SocketSdkSuccessResult<'getOrgAnalytics'>['data']
23+
| SocketSdkSuccessResult<'getRepoAnalytics'>['data']
2424
>
2525
if (scope === 'org') {
2626
result = await fetchOrgAnalyticsData(time)

src/commands/analytics/output-analytics.mts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { mdTableStringNumber } from '../../utils/markdown.mts'
99
import { serializeResultJson } from '../../utils/serialize-result-json.mts'
1010

1111
import type { CResult, OutputKind } from '../../types.mts'
12-
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
12+
import type { SocketSdkSuccessResult } from '@socketsecurity/sdk'
1313
import type { Widgets } from 'blessed' // Note: Widgets does not seem to actually work as code :'(
1414
import type { grid as ContribGrid } from 'blessed-contrib'
1515

@@ -48,8 +48,8 @@ const Months = [
4848

4949
export async function outputAnalytics(
5050
result: CResult<
51-
| SocketSdkReturnType<'getOrgAnalytics'>['data']
52-
| SocketSdkReturnType<'getRepoAnalytics'>['data']
51+
| SocketSdkSuccessResult<'getOrgAnalytics'>['data']
52+
| SocketSdkSuccessResult<'getRepoAnalytics'>['data']
5353
>,
5454
{
5555
filePath,
@@ -290,7 +290,7 @@ function displayAnalyticsScreen(data: FormattedData): void {
290290
}
291291

292292
export function formatDataRepo(
293-
data: SocketSdkReturnType<'getRepoAnalytics'>['data'],
293+
data: SocketSdkSuccessResult<'getRepoAnalytics'>['data'],
294294
): FormattedData {
295295
const sortedTopFiveAlerts: Record<string, number> = {}
296296
const totalTopAlerts: Record<string, number> = {}
@@ -331,7 +331,7 @@ export function formatDataRepo(
331331
}
332332

333333
export function formatDataOrg(
334-
data: SocketSdkReturnType<'getOrgAnalytics'>['data'],
334+
data: SocketSdkSuccessResult<'getOrgAnalytics'>['data'],
335335
): FormattedData {
336336
const sortedTopFiveAlerts: Record<string, number> = {}
337337
const totalTopAlerts: Record<string, number> = {}

src/commands/audit-log/fetch-audit-log.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { handleApiCall } from '../../utils/api.mts'
22
import { setupSdk } from '../../utils/sdk.mts'
33

44
import type { CResult, OutputKind } from '../../types.mts'
5-
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
5+
import type { SocketSdkSuccessResult } from '@socketsecurity/sdk'
66

77
export async function fetchAuditLog({
88
logType,
@@ -16,7 +16,7 @@ export async function fetchAuditLog({
1616
page: number
1717
perPage: number
1818
logType: string
19-
}): Promise<CResult<SocketSdkReturnType<'getAuditLogEvents'>['data']>> {
19+
}): Promise<CResult<SocketSdkSuccessResult<'getAuditLogEvents'>['data']>> {
2020
const sockSdkCResult = await setupSdk()
2121
if (!sockSdkCResult.ok) {
2222
return sockSdkCResult

src/commands/audit-log/output-audit-log.mts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import { msAtHome } from '../../utils/ms-at-home.mts'
1010
import { serializeResultJson } from '../../utils/serialize-result-json.mts'
1111

1212
import type { CResult, OutputKind } from '../../types.mts'
13-
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
13+
import type { SocketSdkSuccessResult } from '@socketsecurity/sdk'
1414
import type { Widgets } from 'blessed'
1515

1616
const require = createRequire(import.meta.url)
1717

1818
const { REDACTED } = constants
1919

2020
export async function outputAuditLog(
21-
result: CResult<SocketSdkReturnType<'getAuditLogEvents'>['data']>,
21+
result: CResult<SocketSdkSuccessResult<'getAuditLogEvents'>['data']>,
2222
{
2323
logType,
2424
orgSlug,
@@ -69,7 +69,7 @@ export async function outputAuditLog(
6969
}
7070

7171
function formatResult(
72-
selectedRow?: SocketSdkReturnType<'getAuditLogEvents'>['data']['results'][number],
72+
selectedRow?: SocketSdkSuccessResult<'getAuditLogEvents'>['data']['results'][number],
7373
keepQuotes = false,
7474
): string {
7575
if (!selectedRow) {
@@ -89,7 +89,7 @@ function formatResult(
8989
}
9090

9191
export async function outputAsJson(
92-
auditLogs: CResult<SocketSdkReturnType<'getAuditLogEvents'>['data']>,
92+
auditLogs: CResult<SocketSdkSuccessResult<'getAuditLogEvents'>['data']>,
9393
{
9494
logType,
9595
orgSlug,
@@ -141,7 +141,7 @@ export async function outputAsJson(
141141
}
142142

143143
export async function outputAsMarkdown(
144-
auditLogs: SocketSdkReturnType<'getAuditLogEvents'>['data'],
144+
auditLogs: SocketSdkSuccessResult<'getAuditLogEvents'>['data'],
145145
{
146146
logType,
147147
orgSlug,
@@ -189,7 +189,7 @@ ${table}
189189
}
190190

191191
async function outputWithBlessed(
192-
data: SocketSdkReturnType<'getAuditLogEvents'>['data'],
192+
data: SocketSdkSuccessResult<'getAuditLogEvents'>['data'],
193193
orgSlug: string,
194194
) {
195195
const filteredLogs = data.results

src/commands/audit-log/output-audit-log.test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { describe, expect, it } from 'vitest'
33
import FIXTURE from './audit-fixture.json' with { type: 'json' }
44
import { outputAsJson, outputAsMarkdown } from './output-audit-log.mts'
55

6-
import type { SocketSdkReturnType } from '@socketsecurity/sdk'
6+
import type { SocketSdkSuccessResult } from '@socketsecurity/sdk'
77

8-
type AuditLogs = SocketSdkReturnType<'getAuditLogEvents'>['data']['results']
8+
type AuditLogs = SocketSdkSuccessResult<'getAuditLogEvents'>['data']['results']
99

1010
describe('output-audit-log', () => {
1111
describe('json', () => {

0 commit comments

Comments
 (0)