File tree Expand file tree Collapse file tree 7 files changed +2732
-523
lines changed
Expand file tree Collapse file tree 7 files changed +2732
-523
lines changed Original file line number Diff line number Diff line change 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
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import http from 'node:http'
77import https from 'node:https'
88
99import { debugLog } from '@socketsecurity/lib/debug'
10- import { jsonParse } from '@socketsecurity/lib/json'
10+ import { jsonParse } from '@socketsecurity/lib/json/parse '
1111import { perfTimer } from '@socketsecurity/lib/performance'
1212
1313import { 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'
2324import type { ClientRequest , IncomingMessage } from 'node:http'
2425
2526/**
@@ -396,7 +397,7 @@ export async function getResponse(
396397export 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 ) ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { getAbortSignal } from '@socketsecurity/lib/constants/process'
1111import { SOCKET_PUBLIC_API_TOKEN } from '@socketsecurity/lib/constants/socket'
1212import { debugLog , isDebugNs } from '@socketsecurity/lib/debug'
1313import { validateFiles } from '@socketsecurity/lib/fs'
14- import { jsonParse } from '@socketsecurity/lib/json'
14+ import { jsonParse } from '@socketsecurity/lib/json/parse '
1515import { getOwn , isObjectObject } from '@socketsecurity/lib/objects'
1616import { pRetry } from '@socketsecurity/lib/promises'
1717import { setMaxEventTargetListeners } from '@socketsecurity/lib/suppress-warnings'
You can’t perform that action at this time.
0 commit comments