(resource: string, endpoint: string)
| 385 | }; |
| 386 | |
| 387 | const resourceMatchesEndpoint = (resource: string, endpoint: string): boolean => { |
| 388 | const actual = canonicalResource(resource); |
| 389 | const expected = canonicalResource(endpoint); |
| 390 | return ( |
| 391 | actual != null && expected != null && (actual === expected || expected.startsWith(`${actual}/`)) |
| 392 | ); |
| 393 | }; |
| 394 | |
| 395 | const protectedResourceMetadataUrls = (endpoint: string): readonly string[] => { |
| 396 | try { |
no test coverage detected