Skip to content

Commit dfe85e5

Browse files
Merge pull request #749 from domoneill18/export_substitute_path_params
feat: export substitute path params
2 parents 4dd0e8f + b27eae1 commit dfe85e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/superagent-wrapper/src/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface SuperagentRequest<Res extends Response> extends Promise<Res> {
6363
send(body: string): this;
6464
}
6565

66-
const substitutePathParams = (path: string, params: Record<string, string>) => {
66+
export const substitutePathParams = (path: string, params: Record<string, string>) => {
6767
for (const key in params) {
6868
if (params.hasOwnProperty(key)) {
6969
path = path.replace(`{${key}}`, params[key]);

0 commit comments

Comments
 (0)