MCPcopy
hub / github.com/blitz-js/blitz / formatWithValidation

Function formatWithValidation

packages/blitz-auth/src/shared/url-utils.ts:18–30  ·  view source on GitHub ↗
(url: UrlObject)

Source from the content-addressed store, hash-verified

16]
17
18export function formatWithValidation(url: UrlObject): string {
19 if (process.env.NODE_ENV === "development") {
20 if (url !== null && typeof url === "object") {
21 Object.keys(url).forEach((key) => {
22 if (urlObjectKeys.indexOf(key) === -1) {
23 console.warn(`Unknown key passed via urlObject into url.format: ${key}`)
24 }
25 })
26 }
27 }
28
29 return formatUrl(url)
30}
31
32import {ParsedUrlQuery} from "querystring"
33

Callers 2

AuthRootFunction · 0.90

Calls 2

formatUrlFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected