Skip to content

Commit 105babc

Browse files
github-actions[bot]jdalton
authored andcommitted
fix(openapi): sync with openapi definition
Combines PRs #448, #449, and #451 OpenAPI definition sync updates
1 parent 3d0db74 commit 105babc

File tree

7 files changed

+2732
-523
lines changed

7 files changed

+2732
-523
lines changed

.github/workflows/generate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
echo "Sleeping for $delay seconds..."
3939
sleep $delay
4040
41-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
41+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4242
with:
4343
autocrlf: false
4444
persist-credentials: false
@@ -140,7 +140,7 @@ jobs:
140140
outputs:
141141
has_changes: ${{ steps.check.outputs.has_changes }}
142142
steps:
143-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
143+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
144144
with:
145145
autocrlf: false
146146
persist-credentials: false

openapi.json

Lines changed: 2064 additions & 331 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"update": "node scripts/update.mjs"
5656
},
5757
"dependencies": {
58-
"@socketsecurity/lib": "4.3.0"
58+
"@socketsecurity/lib": "5.0.0"
5959
},
6060
"devDependencies": {
6161
"@babel/generator": "7.28.5",

pnpm-lock.yaml

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

src/http-client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import http from 'node:http'
77
import https from 'node:https'
88

99
import { debugLog } from '@socketsecurity/lib/debug'
10-
import { jsonParse } from '@socketsecurity/lib/json'
10+
import { jsonParse } from '@socketsecurity/lib/json/parse'
1111
import { perfTimer } from '@socketsecurity/lib/performance'
1212

1313
import { MAX_RESPONSE_SIZE } from './constants'
@@ -20,6 +20,7 @@ import type {
2020
SocketArtifactWithExtras,
2121
SocketSdkOptions,
2222
} from './types'
23+
import type { JsonValue } from '@socketsecurity/lib/json/types'
2324
import type { ClientRequest, IncomingMessage } from 'node:http'
2425

2526
/**
@@ -396,7 +397,7 @@ export async function getResponse(
396397
export async function getResponseJson(
397398
response: IncomingMessage,
398399
method?: string | undefined,
399-
) {
400+
): Promise<JsonValue | undefined> {
400401
const stopTimer = perfTimer('http:parse-json')
401402
try {
402403
if (!isResponseOk(response)) {

src/socket-sdk-class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { getAbortSignal } from '@socketsecurity/lib/constants/process'
1111
import { SOCKET_PUBLIC_API_TOKEN } from '@socketsecurity/lib/constants/socket'
1212
import { debugLog, isDebugNs } from '@socketsecurity/lib/debug'
1313
import { validateFiles } from '@socketsecurity/lib/fs'
14-
import { jsonParse } from '@socketsecurity/lib/json'
14+
import { jsonParse } from '@socketsecurity/lib/json/parse'
1515
import { getOwn, isObjectObject } from '@socketsecurity/lib/objects'
1616
import { pRetry } from '@socketsecurity/lib/promises'
1717
import { setMaxEventTargetListeners } from '@socketsecurity/lib/suppress-warnings'

0 commit comments

Comments
 (0)