Skip to content

Commit c12d850

Browse files
committed
security: Bump vulnerable dependencies
1 parent 515d095 commit c12d850

File tree

6 files changed

+91
-21
lines changed

6 files changed

+91
-21
lines changed

package-lock.json

+81-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
"form-data": "^4.0.0",
4242
"got": "^11.8.3",
4343
"js-yaml": "^4.1.0",
44-
"jsonpath-plus": "^7.2.0",
44+
"jsonpath-plus": "^10.3.0",
4545
"liquidless": "^1.2.0",
4646
"liquidless-faker": "^1.0.1",
4747
"liquidless-naughtystrings": "^1.0.0",
4848
"p-limit": "^3.1.0",
49-
"parse-duration": "^1.1.0",
49+
"parse-duration": "^1.1.2",
5050
"phasic": "^1.0.2",
5151
"proxy-agent": "^6.3.1",
5252
"simple-statistics": "^7.8.0",

src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,11 @@ async function runTest(id: string, test: Test, schemaValidator: Ajv, options?: W
322322
if ((stepResult.errored || (!stepResult.passed && !stepResult.skipped)) && step.retries && step.retries.count > 0) {
323323
for (let i = 0; i < step.retries.count; i++) {
324324
await new Promise(resolve => {
325-
setTimeout(resolve, typeof step.retries?.interval === 'string' ? parseDuration(step.retries?.interval) : step.retries?.interval)
325+
if (typeof step.retries?.interval === 'string') {
326+
setTimeout(resolve, parseDuration(step.retries?.interval) ?? undefined)
327+
} else {
328+
setTimeout(resolve, step.retries?.interval)
329+
}
326330
})
327331

328332
stepResult = await tryStep()

src/steps/delay.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default async function (params: string | number) {
88

99
stepResult.type = 'delay'
1010
await new Promise((resolve) =>
11-
setTimeout(resolve, typeof params === 'string' ? parseDuration(params) : params)
11+
setTimeout(resolve, typeof params === 'string' ? (parseDuration(params) ?? undefined) : params)
1212
)
1313

1414
return stepResult

src/steps/grpc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default async function (
129129
options?.ee?.emit('step:grpc_response', res)
130130
},
131131
options: {
132-
deadline: typeof params.timeout === 'string' ? parseDuration(params.timeout) : params.timeout
132+
deadline: typeof params.timeout === 'string' ? (parseDuration(params.timeout) ?? undefined) : params.timeout
133133
}
134134
}
135135
)

src/steps/http.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export default async function (
364364
followRedirect: params.followRedirects ?? true,
365365
timeout:
366366
typeof params.timeout === 'string'
367-
? parseDuration(params.timeout)
367+
? (parseDuration(params.timeout) ?? undefined)
368368
: params.timeout,
369369
retry: params.retries ?? 0,
370370
cookieJar: cookies,

0 commit comments

Comments
 (0)