MCPcopy Index your code
hub / github.com/simstudioai/sim / assertGraphNextPageUrl

Function assertGraphNextPageUrl

apps/sim/tools/sharepoint/utils.ts:21–28  ·  view source on GitHub ↗
(nextPageUrl: string)

Source from the content-addressed store, hash-verified

19}
20
21export function assertGraphNextPageUrl(nextPageUrl: string): string {
22 const trimmed = nextPageUrl.trim()
23 const url = new URL(trimmed)
24 if (url.origin !== 'https://graph.microsoft.com') {
25 throw new Error('nextPageUrl must be a Microsoft Graph @odata.nextLink URL')
26 }
27 return url.toString()
28}
29
30function stripHtmlTags(html: string): string {
31 let text = html

Callers 15

get_list.tsFile · 0.90
read_page.tsFile · 0.90
list_sites.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected