MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / extendQueryParams

Function extendQueryParams

apps/webapp/app/db.server.ts:180–191  ·  view source on GitHub ↗
(hrefOrUrl: string | URL, queryParams: Record<string, string>)

Source from the content-addressed store, hash-verified

178}
179
180function extendQueryParams(hrefOrUrl: string | URL, queryParams: Record<string, string>) {
181 const url = new URL(hrefOrUrl);
182 const query = url.searchParams;
183
184 for (const [key, val] of Object.entries(queryParams)) {
185 query.set(key, val);
186 }
187
188 url.search = query.toString();
189
190 return url;
191}
192
193function redactUrlSecrets(hrefOrUrl: string | URL) {
194 const url = new URL(hrefOrUrl);

Callers 2

getClientFunction · 0.85
getReplicaClientFunction · 0.85

Calls 2

toStringMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…