19
19
* @fileoverview Defines the Firebase StorageReference class.
20
20
*/
21
21
22
- import { PassThrough , Transform , TransformOptions } from 'stream' ;
22
+ import { PassThrough , Transform , TransformOptions } from 'stream' ;
23
23
24
- import { FbsBlob } from './implementation/blob' ;
25
- import { Location } from './implementation/location' ;
26
- import { getMappings } from './implementation/metadata' ;
27
- import { child , lastComponent , parent } from './implementation/path' ;
24
+ import { FbsBlob } from './implementation/blob' ;
25
+ import { Location } from './implementation/location' ;
26
+ import { getMappings } from './implementation/metadata' ;
27
+ import { child , lastComponent , parent } from './implementation/path' ;
28
28
import {
29
29
deleteObject as requestsDeleteObject ,
30
30
getBytes ,
@@ -34,14 +34,14 @@ import {
34
34
multipartUpload ,
35
35
updateMetadata as requestsUpdateMetadata
36
36
} from './implementation/requests' ;
37
- import { ListOptions , UploadResult } from './public-types' ;
38
- import { dataFromString , StringFormat } from './implementation/string' ;
39
- import { Metadata } from './metadata' ;
40
- import { FirebaseStorageImpl } from './service' ;
41
- import { ListResult } from './list' ;
42
- import { UploadTask } from './task' ;
43
- import { invalidRootOperation , noDownloadURL } from './implementation/error' ;
44
- import { validateNumber } from './implementation/type' ;
37
+ import { ListOptions , UploadResult } from './public-types' ;
38
+ import { dataFromString , StringFormat } from './implementation/string' ;
39
+ import { Metadata } from './metadata' ;
40
+ import { FirebaseStorageImpl } from './service' ;
41
+ import { ListResult } from './list' ;
42
+ import { UploadTask } from './task' ;
43
+ import { invalidRootOperation , noDownloadURL } from './implementation/error' ;
44
+ import { validateNumber } from './implementation/type' ;
45
45
import {
46
46
newBlobConnection ,
47
47
newBytesConnection ,
@@ -184,7 +184,11 @@ export function getBlobInternal(
184
184
maxDownloadSizeBytes ?: number
185
185
) : Promise < Blob > {
186
186
ref . _throwIfRoot ( 'getBlob' ) ;
187
- const requestInfo = getBytes ( ref . storage , ref . _location , maxDownloadSizeBytes ) ;
187
+ const requestInfo = getBytes (
188
+ ref . storage ,
189
+ ref . _location ,
190
+ maxDownloadSizeBytes
191
+ ) ;
188
192
return ref . storage
189
193
. makeRequestWithTokens ( requestInfo , newBlobConnection )
190
194
. then ( blob =>
@@ -201,7 +205,11 @@ export function getStreamInternal(
201
205
maxDownloadSizeBytes ?: number
202
206
) : NodeJS . ReadableStream {
203
207
ref . _throwIfRoot ( 'getStream' ) ;
204
- const requestInfo = getBytes ( ref . storage , ref . _location , maxDownloadSizeBytes ) ;
208
+ const requestInfo = getBytes (
209
+ ref . storage ,
210
+ ref . _location ,
211
+ maxDownloadSizeBytes
212
+ ) ;
205
213
206
214
/** A transformer that passes through the first n bytes. */
207
215
const newMaxSizeTransform : ( n : number ) => TransformOptions = n => {
0 commit comments