MCPcopy Index your code
hub / github.com/angular/angularfire / blobOrBuffer

Function blobOrBuffer

src/compat/storage/storage.spec.ts:16–22  ·  view source on GitHub ↗
(data: string, options: unknown)

Source from the content-addressed store, hash-verified

14}
15
16const blobOrBuffer = (data: string, options: unknown) => {
17 if (typeof Blob === 'undefined') {
18 return Buffer.from(data, 'utf8');
19 } else {
20 return new Blob([JSON.stringify(data)], options);
21 }
22};
23
24describe('AngularFireStorage', () => {
25 let afStorage: AngularFireStorage;

Callers 1

storage.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected