mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
Update packages/bruno-js/src/bruno-request.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -240,11 +240,13 @@ class BrunoRequest {
|
||||
}
|
||||
|
||||
getPathParams() {
|
||||
return this.req.pathParams.map((param) => ({
|
||||
const params = Array.isArray(this.req.pathParams) ? this.req.pathParams : [];
|
||||
|
||||
return params.map((param) => ({
|
||||
name: param.name,
|
||||
value: param.value,
|
||||
type: param.type
|
||||
})) || [];
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user