MCPcopy
hub / github.com/angular/angular / makeNoCorsRequest

Function makeNoCorsRequest

packages/service-worker/worker/test/data_spec.ts:409–417  ·  view source on GitHub ↗
(
  scope: SwTestHarness,
  url: string,
  clientId?: string,
)

Source from the content-addressed store, hash-verified

407}
408
409function makeNoCorsRequest(
410 scope: SwTestHarness,
411 url: string,
412 clientId?: string,
413): Promise<string | null> {
414 const req = new MockRequest(url, {mode: 'no-cors'});
415 const [resTextPromise, done] = makePendingRequest(scope, req, clientId);
416 return done.then(() => resTextPromise);
417}
418
419function makePendingRequest(
420 scope: SwTestHarness,

Callers 1

data_spec.tsFile · 0.85

Calls 2

makePendingRequestFunction · 0.85
thenMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…