@firebase/storage 0.13.6 → 0.13.7-auth-redirect-credentials.82faa0828

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ export interface Connection<T extends ConnectionType> {
33
33
  * it sets an error code internally which can be accessed by calling
34
34
  * getErrorCode() by callers.
35
35
  */
36
- send(url: string, method: string, body?: ArrayBufferView | Blob | string | null, headers?: Headers): Promise<void>;
36
+ send(url: string, method: string, body?: ArrayBufferView | Blob | string | null, headers?: Headers, isUsingEmulator?: boolean): Promise<void>;
37
37
  getErrorCode(): ErrorCode;
38
38
  getStatus(): number;
39
39
  getResponse(): T;
@@ -44,4 +44,4 @@ export declare function addAuthHeader_(headers: Headers, authToken: string | nul
44
44
  export declare function addVersionHeader_(headers: Headers, firebaseVersion?: string): void;
45
45
  export declare function addGmpidHeader_(headers: Headers, appId: string | null): void;
46
46
  export declare function addAppCheckHeader_(headers: Headers, appCheckToken: string | null): void;
47
- export declare function makeRequest<I extends ConnectionType, O>(requestInfo: RequestInfo<I, O>, appId: string | null, authToken: string | null, appCheckToken: string | null, requestFactory: () => Connection<I>, firebaseVersion?: string, retry?: boolean): Request<O>;
47
+ export declare function makeRequest<I extends ConnectionType, O>(requestInfo: RequestInfo<I, O>, appId: string | null, authToken: string | null, appCheckToken: string | null, requestFactory: () => Connection<I>, firebaseVersion?: string, retry?: boolean, isUsingEmulator?: boolean): Request<O>;
@@ -26,7 +26,7 @@ declare abstract class XhrConnection<T extends ConnectionType> implements Connec
26
26
  protected sent_: boolean;
27
27
  constructor();
28
28
  abstract initXhr(): void;
29
- send(url: string, method: string, body?: ArrayBufferView | Blob | string, headers?: Headers): Promise<void>;
29
+ send(url: string, method: string, body?: ArrayBufferView | Blob | string, headers?: Headers, isUsingEmulator?: boolean): Promise<void>;
30
30
  getErrorCode(): ErrorCode;
31
31
  getStatus(): number;
32
32
  getResponse(): T;
@@ -29,7 +29,7 @@ declare abstract class FetchConnection<T extends ConnectionType> implements Conn
29
29
  protected headers_: Headers | undefined;
30
30
  protected sent_: boolean;
31
31
  constructor();
32
- send(url: string, method: string, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>): Promise<void>;
32
+ send(url: string, method: string, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>, isUsingEmulator?: boolean): Promise<void>;
33
33
  getErrorCode(): ErrorCode;
34
34
  getStatus(): number;
35
35
  abstract getResponse(): T;
@@ -66,6 +66,7 @@ export declare class FirebaseStorageImpl implements FirebaseStorage {
66
66
  */
67
67
  readonly _url?: string | undefined;
68
68
  readonly _firebaseVersion?: string | undefined;
69
+ readonly _isUsingEmulator: boolean;
69
70
  _bucket: Location | null;
70
71
  /**
71
72
  * This string can be in the formats:
@@ -92,7 +93,7 @@ export declare class FirebaseStorageImpl implements FirebaseStorage {
92
93
  /**
93
94
  * @internal
94
95
  */
95
- _url?: string | undefined, _firebaseVersion?: string | undefined);
96
+ _url?: string | undefined, _firebaseVersion?: string | undefined, _isUsingEmulator?: boolean);
96
97
  /**
97
98
  * The host string for this service, in the form of `host` or
98
99
  * `host:port`.
@@ -33,7 +33,7 @@ export interface Connection<T extends ConnectionType> {
33
33
  * it sets an error code internally which can be accessed by calling
34
34
  * getErrorCode() by callers.
35
35
  */
36
- send(url: string, method: string, body?: ArrayBufferView | Blob | string | null, headers?: Headers): Promise<void>;
36
+ send(url: string, method: string, body?: ArrayBufferView | Blob | string | null, headers?: Headers, isUsingEmulator?: boolean): Promise<void>;
37
37
  getErrorCode(): ErrorCode;
38
38
  getStatus(): number;
39
39
  getResponse(): T;
@@ -44,4 +44,4 @@ export declare function addAuthHeader_(headers: Headers, authToken: string | nul
44
44
  export declare function addVersionHeader_(headers: Headers, firebaseVersion?: string): void;
45
45
  export declare function addGmpidHeader_(headers: Headers, appId: string | null): void;
46
46
  export declare function addAppCheckHeader_(headers: Headers, appCheckToken: string | null): void;
47
- export declare function makeRequest<I extends ConnectionType, O>(requestInfo: RequestInfo<I, O>, appId: string | null, authToken: string | null, appCheckToken: string | null, requestFactory: () => Connection<I>, firebaseVersion?: string, retry?: boolean): Request<O>;
47
+ export declare function makeRequest<I extends ConnectionType, O>(requestInfo: RequestInfo<I, O>, appId: string | null, authToken: string | null, appCheckToken: string | null, requestFactory: () => Connection<I>, firebaseVersion?: string, retry?: boolean, isUsingEmulator?: boolean): Request<O>;
@@ -26,7 +26,7 @@ declare abstract class XhrConnection<T extends ConnectionType> implements Connec
26
26
  protected sent_: boolean;
27
27
  constructor();
28
28
  abstract initXhr(): void;
29
- send(url: string, method: string, body?: ArrayBufferView | Blob | string, headers?: Headers): Promise<void>;
29
+ send(url: string, method: string, body?: ArrayBufferView | Blob | string, headers?: Headers, isUsingEmulator?: boolean): Promise<void>;
30
30
  getErrorCode(): ErrorCode;
31
31
  getStatus(): number;
32
32
  getResponse(): T;
@@ -29,7 +29,7 @@ declare abstract class FetchConnection<T extends ConnectionType> implements Conn
29
29
  protected headers_: Headers | undefined;
30
30
  protected sent_: boolean;
31
31
  constructor();
32
- send(url: string, method: string, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>): Promise<void>;
32
+ send(url: string, method: string, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>, isUsingEmulator?: boolean): Promise<void>;
33
33
  getErrorCode(): ErrorCode;
34
34
  getStatus(): number;
35
35
  abstract getResponse(): T;
@@ -66,6 +66,7 @@ export declare class FirebaseStorageImpl implements FirebaseStorage {
66
66
  */
67
67
  readonly _url?: string | undefined;
68
68
  readonly _firebaseVersion?: string | undefined;
69
+ readonly _isUsingEmulator: boolean;
69
70
  _bucket: Location | null;
70
71
  /**
71
72
  * This string can be in the formats:
@@ -92,7 +93,7 @@ export declare class FirebaseStorageImpl implements FirebaseStorage {
92
93
  /**
93
94
  * @internal
94
95
  */
95
- _url?: string | undefined, _firebaseVersion?: string | undefined);
96
+ _url?: string | undefined, _firebaseVersion?: string | undefined, _isUsingEmulator?: boolean);
96
97
  /**
97
98
  * The host string for this service, in the form of `host` or
98
99
  * `host:port`.
package/dist/storage.d.ts CHANGED
@@ -36,7 +36,7 @@ declare interface Connection<T extends ConnectionType> {
36
36
  * it sets an error code internally which can be accessed by calling
37
37
  * getErrorCode() by callers.
38
38
  */
39
- send(url: string, method: string, body?: ArrayBufferView | Blob | string | null, headers?: Headers_2): Promise<void>;
39
+ send(url: string, method: string, body?: ArrayBufferView | Blob | string | null, headers?: Headers_2, isUsingEmulator?: boolean): Promise<void>;
40
40
  getErrorCode(): ErrorCode;
41
41
  getStatus(): number;
42
42
  getResponse(): T;
@@ -175,6 +175,7 @@ export declare class _FirebaseStorageImpl implements FirebaseStorage {
175
175
  */
176
176
  readonly _url?: string | undefined;
177
177
  readonly _firebaseVersion?: string | undefined;
178
+ readonly _isUsingEmulator: boolean;
178
179
  _bucket: _Location | null;
179
180
  /**
180
181
  * This string can be in the formats:
@@ -201,7 +202,7 @@ export declare class _FirebaseStorageImpl implements FirebaseStorage {
201
202
  /**
202
203
  * @internal
203
204
  */
204
- _url?: string | undefined, _firebaseVersion?: string | undefined);
205
+ _url?: string | undefined, _firebaseVersion?: string | undefined, _isUsingEmulator?: boolean);
205
206
  /**
206
207
  * The host string for this service, in the form of `host` or
207
208
  * `host:port`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/storage",
3
- "version": "0.13.6",
3
+ "version": "0.13.7-auth-redirect-credentials.82faa0828",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",
@@ -46,16 +46,16 @@
46
46
  },
47
47
  "license": "Apache-2.0",
48
48
  "dependencies": {
49
- "@firebase/util": "1.10.3",
50
- "@firebase/component": "0.6.12",
49
+ "@firebase/util": "1.11.0-auth-redirect-credentials.82faa0828",
50
+ "@firebase/component": "0.6.13-auth-redirect-credentials.82faa0828",
51
51
  "tslib": "^2.1.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@firebase/app": "0.x"
54
+ "@firebase/app": "0.11.4-auth-redirect-credentials.82faa0828"
55
55
  },
56
56
  "devDependencies": {
57
- "@firebase/app": "0.11.0",
58
- "@firebase/auth": "1.9.0",
57
+ "@firebase/app": "0.11.4-auth-redirect-credentials.82faa0828",
58
+ "@firebase/auth": "1.10.0-auth-redirect-credentials.82faa0828",
59
59
  "rollup": "2.79.2",
60
60
  "@rollup/plugin-alias": "5.1.1",
61
61
  "@rollup/plugin-json": "6.1.0",