MCPcopy
hub / github.com/angular/angular / processNavigationUrls

Function processNavigationUrls

packages/service-worker/config/src/generator.ts:119–128  ·  view source on GitHub ↗
(
  baseHref: string,
  urls = DEFAULT_NAVIGATION_URLS,
)

Source from the content-addressed store, hash-verified

117}
118
119export function processNavigationUrls(
120 baseHref: string,
121 urls = DEFAULT_NAVIGATION_URLS,
122): {positive: boolean; regex: string}[] {
123 return urls.map((url) => {
124 const positive = !url.startsWith('!');
125 url = positive ? url : url.slice(1);
126 return {positive, regex: `^${urlToRegex(url, baseHref)}$`};
127 });
128}
129
130async function processInBatches<I, O>(
131 items: I[],

Callers 6

happy_spec.tsFile · 0.90
generateMockServerStateFunction · 0.90
generator_spec.tsFile · 0.90
processMethod · 0.85

Calls 2

urlToRegexFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…