MCPcopy Create free account
hub / github.com/middleapi/orpc / withTracking

Function withTracking

scripts/sync-sponsor.ts:51–62  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

49}
50
51function withTracking(url: string): string {
52 try {
53 const tracked = new URL(url)
54
55 tracked.searchParams.set('ref', 'orpc')
56
57 return tracked.toString()
58 }
59 catch {
60 return url
61 }
62}
63
64function escapeHtml(value: string): string {
65 return value

Callers 1

mainFunction · 0.85

Calls 2

setMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected