Skip to content

Commit dbffc65

Browse files
committed
Making the linter happy
1 parent 59c8900 commit dbffc65

File tree

11 files changed

+29
-26
lines changed

11 files changed

+29
-26
lines changed

packages/firebase/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7879,7 +7879,7 @@ declare namespace firebase.firestore {
78797879
* buffer traffic indefinitely. Use of this option will cause some
78807880
* performance degradation though.
78817881
*
7882-
* This setting cannot be used with experimentalAutodetectLongPolling and
7882+
* This setting cannot be used with experimentalAutoDetectLongPolling and
78837883
* may be removed in a future release. If you find yourself using it to
78847884
* work around a specific network reliability issue, please tell us about
78857885
* it in https://github.com/firebase/firebase-js-sdk/issues/1674.
@@ -7898,7 +7898,7 @@ declare namespace firebase.firestore {
78987898
*
78997899
* @webonly
79007900
*/
7901-
experimentalAutodetectLongPolling?: boolean;
7901+
experimentalAutoDetectLongPolling?: boolean;
79027902

79037903
/**
79047904
* Whether to skip nested properties that are set to `undefined` during

packages/firestore-types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface Settings {
2929
timestampsInSnapshots?: boolean;
3030
cacheSizeBytes?: number;
3131
experimentalForceLongPolling?: boolean;
32-
experimentalAutodetectLongPolling?: boolean;
32+
experimentalAutoDetectLongPolling?: boolean;
3333
ignoreUndefinedProperties?: boolean;
3434
merge?: boolean;
3535
}

packages/firestore/exp/src/api/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class Firestore
116116
settings.host ?? DEFAULT_HOST,
117117
settings.ssl ?? DEFAULT_SSL,
118118
/* forceLongPolling= */ false,
119-
/* forceAutodetectLongPolling= */ false
119+
/* forceAutoDetectLongPolling= */ false
120120
);
121121
return {
122122
asyncQueue: this._queue,

packages/firestore/lite/src/api/components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function getDatastore(firestore: Firestore): Datastore {
6060
settings.host ?? DEFAULT_HOST,
6161
settings.ssl ?? DEFAULT_SSL,
6262
/* forceLongPolling= */ false,
63-
/* forceAutodetectLongPolling= */ false
63+
/* forceAutoDetectLongPolling= */ false
6464
);
6565

6666
const connection = newConnection(databaseInfo);

packages/firestore/src/api/database.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class FirestoreSettings {
193193

194194
readonly experimentalForceLongPolling: boolean;
195195

196-
readonly experimentalAutodetectLongPolling: boolean;
196+
readonly experimentalAutoDetectLongPolling: boolean;
197197

198198
readonly ignoreUndefinedProperties: boolean;
199199

@@ -225,7 +225,7 @@ class FirestoreSettings {
225225
'timestampsInSnapshots',
226226
'cacheSizeBytes',
227227
'experimentalForceLongPolling',
228-
'experimentalAutodetectLongPolling',
228+
'experimentalAutoDetectLongPolling',
229229
'ignoreUndefinedProperties'
230230
]);
231231

@@ -303,18 +303,18 @@ class FirestoreSettings {
303303
validateNamedOptionalType(
304304
'settings',
305305
'boolean',
306-
'experimentalAutodetectLongPolling',
307-
settings.experimentalAutodetectLongPolling
306+
'experimentalAutoDetectLongPolling',
307+
settings.experimentalAutoDetectLongPolling
308308
);
309-
this.experimentalAutodetectLongPolling =
310-
settings.experimentalAutodetectLongPolling ??
309+
this.experimentalAutoDetectLongPolling =
310+
settings.experimentalAutoDetectLongPolling ??
311311
DEFAULT_FORCE_AUTODETECT_LONG_POLLING;
312312

313313
validateIsNotUsedTogether(
314314
'experimentalForceLongPolling',
315315
settings.experimentalForceLongPolling,
316-
'experimentalAutodetectLongPolling',
317-
settings.experimentalAutodetectLongPolling
316+
'experimentalAutoDetectLongPolling',
317+
settings.experimentalAutoDetectLongPolling
318318
);
319319
}
320320

@@ -327,8 +327,8 @@ class FirestoreSettings {
327327
this.cacheSizeBytes === other.cacheSizeBytes &&
328328
this.experimentalForceLongPolling ===
329329
other.experimentalForceLongPolling &&
330-
this.experimentalAutodetectLongPolling ===
331-
other.experimentalAutodetectLongPolling &&
330+
this.experimentalAutoDetectLongPolling ===
331+
other.experimentalAutoDetectLongPolling &&
332332
this.ignoreUndefinedProperties === other.ignoreUndefinedProperties
333333
);
334334
}
@@ -577,7 +577,7 @@ export class Firestore implements PublicFirestore, FirebaseService {
577577
this._settings.host,
578578
this._settings.ssl,
579579
this._settings.experimentalForceLongPolling,
580-
this._settings.experimentalAutodetectLongPolling
580+
this._settings.experimentalAutoDetectLongPolling
581581
);
582582
}
583583

packages/firestore/src/core/database_info.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class DatabaseInfo {
2929
* @param ssl Whether to use SSL when connecting.
3030
* @param forceLongPolling Whether to use the forceLongPolling option
3131
* when using WebChannel as the network transport.
32-
* @param autodetectLongPolling Whether to use the autodetectLongPolling
32+
* @param autoDetectLongPolling Whether to use the autoDetectLongPolling
3333
* option when using WebChannel as the network transport.
3434
*/
3535
constructor(
@@ -38,7 +38,7 @@ export class DatabaseInfo {
3838
readonly host: string,
3939
readonly ssl: boolean,
4040
readonly forceLongPolling: boolean,
41-
readonly autodetectLongPolling: boolean
41+
readonly autoDetectLongPolling: boolean
4242
) {}
4343
}
4444

packages/firestore/src/platform/browser/webchannel_connection.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ const XHR_TIMEOUT_SECS = 15;
5757

5858
export class WebChannelConnection extends RestConnection {
5959
private readonly forceLongPolling: boolean;
60-
private readonly autodetectLongPolling: boolean;
60+
private readonly autoDetectLongPolling: boolean;
6161

6262
constructor(info: DatabaseInfo) {
6363
super(info);
6464
this.forceLongPolling = info.forceLongPolling;
65-
this.autodetectLongPolling = info.autodetectLongPolling;
65+
this.autoDetectLongPolling = info.autoDetectLongPolling;
6666
}
6767

6868
protected performRPCRequest<Req, Resp>(
@@ -186,7 +186,7 @@ export class WebChannelConnection extends RestConnection {
186186
forwardChannelRequestTimeoutMs: 10 * 60 * 1000
187187
},
188188
forceLongPolling: this.forceLongPolling,
189-
detectBufferingProxy: this.autodetectLongPolling
189+
detectBufferingProxy: this.autoDetectLongPolling
190190
};
191191

192192
this.modifyHeadersForRequest(request.initMessageHeaders!, token);

packages/firestore/test/integration/util/internal_helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function getDefaultDatabaseInfo(): DatabaseInfo {
4545
DEFAULT_SETTINGS.host!,
4646
!!DEFAULT_SETTINGS.ssl,
4747
!!DEFAULT_SETTINGS.experimentalForceLongPolling,
48-
!!DEFAULT_SETTINGS.experimentalAutodetectLongPolling
48+
!!DEFAULT_SETTINGS.experimentalAutoDetectLongPolling
4949
);
5050
}
5151

packages/firestore/test/integration/util/settings.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ export const USE_EMULATOR = !!EMULATOR_PORT;
3434

3535
const EMULATOR_FIRESTORE_SETTING = {
3636
host: `localhost:${EMULATOR_PORT}`,
37-
ssl: false
37+
ssl: false,
38+
experimentalAutoDetectLongPolling: true
3839
};
3940

4041
const PROD_FIRESTORE_SETTING = {
4142
host: 'firestore.googleapis.com',
42-
ssl: true
43+
ssl: true,
44+
experimentalAutoDetectLongPolling: true
4345
};
4446

4547
export const DEFAULT_SETTINGS = getDefaultSettings();

packages/firestore/test/unit/remote/rest_connection.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ describe('RestConnection', () => {
6060
'persistenceKey',
6161
'example.com',
6262
/*ssl=*/ false,
63-
/*forceLongPolling=*/ false
63+
/*forceLongPolling=*/ false,
64+
/*autoDetectLongPolling=*/ false
6465
);
6566
const connection = new TestRestConnection(testDatabaseInfo);
6667

packages/firestore/test/unit/specs/spec_test_runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ abstract class TestRunner {
232232
'host',
233233
/*ssl=*/ false,
234234
/*forceLongPolling=*/ false,
235-
/*autodetectLongPolling=*/ true
235+
/*autoDetectLongPolling=*/ true
236236
);
237237

238238
// TODO(mrschmidt): During client startup in `firestore_client`, we block

0 commit comments

Comments
 (0)