MCPcopy
hub / github.com/LibreScore/dl-librescore / fetchData

Function fetchData

src/utils.ts:107–115  ·  view source on GitHub ↗
(
    url: string,
    init?: RequestInit
)

Source from the content-addressed store, hash-verified

105};
106
107export const fetchData = async (
108 url: string,
109 init?: RequestInit
110): Promise<Uint8Array> => {
111 const _fetch = getFetch();
112 const r = await _fetch(url, init);
113 const data = await r.arrayBuffer();
114 return new Uint8Array(data);
115};
116
117export const fetchBuffer = async (
118 url: string,

Callers 3

initFontsFunction · 0.90
loadSoundFontFunction · 0.90
fetchBufferFunction · 0.85

Calls 1

getFetchFunction · 0.85

Tested by

no test coverage detected