@firebase/storage 0.13.7-auth-redirect-credentials.b424e5897 → 0.13.7-canary.080a90dcc

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, isUsingEmulator?: boolean): Promise<void>;
36
+ send(url: string, method: string, isUsingEmulator: boolean, body?: ArrayBufferView | Blob | string | null, headers?: Headers): Promise<void>;
37
37
  getErrorCode(): ErrorCode;
38
38
  getStatus(): number;
39
39
  getResponse(): T;
@@ -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, isUsingEmulator?: boolean): Promise<void>;
29
+ send(url: string, method: string, isUsingEmulator: boolean, body?: ArrayBufferView | Blob | string, headers?: Headers): 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>, isUsingEmulator?: boolean): Promise<void>;
32
+ send(url: string, method: string, isUsingEmulator: boolean, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>): Promise<void>;
33
33
  getErrorCode(): ErrorCode;
34
34
  getStatus(): number;
35
35
  abstract getResponse(): T;
@@ -49,7 +49,7 @@ export declare class FetchBytesConnection extends FetchConnection<ArrayBuffer> {
49
49
  export declare function newBytesConnection(): Connection<ArrayBuffer>;
50
50
  export declare class FetchStreamConnection extends FetchConnection<ReadableStream<Uint8Array>> {
51
51
  private stream_;
52
- send(url: string, method: string, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>): Promise<void>;
52
+ send(url: string, method: string, isUsingEmulator: boolean, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>): Promise<void>;
53
53
  getResponse(): ReadableStream;
54
54
  }
55
55
  export declare function newStreamConnection(): Connection<ReadableStream<Uint8Array>>;
@@ -66,7 +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
+ _isUsingEmulator: boolean;
70
70
  _bucket: Location | null;
71
71
  /**
72
72
  * This string can be in the formats:
@@ -31,7 +31,7 @@ export declare class TestingConnection implements Connection<string> {
31
31
  private headers;
32
32
  private errorCode;
33
33
  constructor(sendHook: SendHook | null);
34
- send(url: string, method: string, body?: ArrayBufferView | Blob | string | null, headers?: Headers): Promise<void>;
34
+ send(url: string, method: string, _isUsingEmulator: boolean, body?: ArrayBufferView | Blob | string | null, headers?: Headers): Promise<void>;
35
35
  simulateResponse(status: number, body: string, headers: {
36
36
  [key: string]: string;
37
37
  }): void;
@@ -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, isUsingEmulator?: boolean): Promise<void>;
36
+ send(url: string, method: string, isUsingEmulator: boolean, body?: ArrayBufferView | Blob | string | null, headers?: Headers): Promise<void>;
37
37
  getErrorCode(): ErrorCode;
38
38
  getStatus(): number;
39
39
  getResponse(): T;
@@ -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, isUsingEmulator?: boolean): Promise<void>;
29
+ send(url: string, method: string, isUsingEmulator: boolean, body?: ArrayBufferView | Blob | string, headers?: Headers): 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>, isUsingEmulator?: boolean): Promise<void>;
32
+ send(url: string, method: string, isUsingEmulator: boolean, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>): Promise<void>;
33
33
  getErrorCode(): ErrorCode;
34
34
  getStatus(): number;
35
35
  abstract getResponse(): T;
@@ -49,7 +49,7 @@ export declare class FetchBytesConnection extends FetchConnection<ArrayBuffer> {
49
49
  export declare function newBytesConnection(): Connection<ArrayBuffer>;
50
50
  export declare class FetchStreamConnection extends FetchConnection<ReadableStream<Uint8Array>> {
51
51
  private stream_;
52
- send(url: string, method: string, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>): Promise<void>;
52
+ send(url: string, method: string, isUsingEmulator: boolean, body?: NodeJS.ArrayBufferView | Blob | string, headers?: Record<string, string>): Promise<void>;
53
53
  getResponse(): ReadableStream;
54
54
  }
55
55
  export declare function newStreamConnection(): Connection<ReadableStream<Uint8Array>>;
@@ -66,7 +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
+ _isUsingEmulator: boolean;
70
70
  _bucket: Location | null;
71
71
  /**
72
72
  * This string can be in the formats:
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, isUsingEmulator?: boolean): Promise<void>;
39
+ send(url: string, method: string, isUsingEmulator: boolean, body?: ArrayBufferView | Blob | string | null, headers?: Headers_2): Promise<void>;
40
40
  getErrorCode(): ErrorCode;
41
41
  getStatus(): number;
42
42
  getResponse(): T;
@@ -175,7 +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
+ _isUsingEmulator: boolean;
179
179
  _bucket: _Location | null;
180
180
  /**
181
181
  * This string can be in the formats:
@@ -31,7 +31,7 @@ export declare class TestingConnection implements Connection<string> {
31
31
  private headers;
32
32
  private errorCode;
33
33
  constructor(sendHook: SendHook | null);
34
- send(url: string, method: string, body?: ArrayBufferView | Blob | string | null, headers?: Headers): Promise<void>;
34
+ send(url: string, method: string, _isUsingEmulator: boolean, body?: ArrayBufferView | Blob | string | null, headers?: Headers): Promise<void>;
35
35
  simulateResponse(status: number, body: string, headers: {
36
36
  [key: string]: string;
37
37
  }): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/storage",
3
- "version": "0.13.7-auth-redirect-credentials.b424e5897",
3
+ "version": "0.13.7-canary.080a90dcc",
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.11.0-auth-redirect-credentials.b424e5897",
50
- "@firebase/component": "0.6.13-auth-redirect-credentials.b424e5897",
49
+ "@firebase/util": "1.11.0-canary.080a90dcc",
50
+ "@firebase/component": "0.6.13-canary.080a90dcc",
51
51
  "tslib": "^2.1.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@firebase/app": "0.11.4-auth-redirect-credentials.b424e5897"
54
+ "@firebase/app": "0.11.5-canary.080a90dcc"
55
55
  },
56
56
  "devDependencies": {
57
- "@firebase/app": "0.11.4-auth-redirect-credentials.b424e5897",
58
- "@firebase/auth": "1.10.0-auth-redirect-credentials.b424e5897",
57
+ "@firebase/app": "0.11.5-canary.080a90dcc",
58
+ "@firebase/auth": "1.10.1-canary.080a90dcc",
59
59
  "rollup": "2.79.2",
60
60
  "@rollup/plugin-alias": "5.1.1",
61
61
  "@rollup/plugin-json": "6.1.0",