Skip to content

Commit de25f91

Browse files
Cleanup
1 parent 2a8e78a commit de25f91

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

packages/firestore/rollup.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
// - In-memory Browser builds that support persistence in ES5 CJS and ES5 ESM
4040
// formats and ES2017 in ESM format.
4141
// - A NodeJS build that supports persistence (to be used with an IndexedDb
42-
// shim)
42+
// shim)
4343
// - A in-memory only NodeJS build
4444
//
4545
// The in-memory builds are roughly 130 KB smaller, but throw an exception
@@ -61,7 +61,7 @@ function resolveBrowserExterns(id) {
6161
return browserDeps.some(dep => id === dep || id.startsWith(`${dep}/`));
6262
}
6363

64-
/** Resolves the external dependencies for the NOde build. */
64+
/** Resolves the external dependencies for the Node build. */
6565
function resolveNodeExterns(id) {
6666
return nodeDeps.some(dep => id === dep || id.startsWith(`${dep}/`));
6767
}
@@ -96,7 +96,6 @@ export function resolveMemoryExterns(deps, externsId, referencedBy) {
9696
return deps.some(dep => externsId === dep || externsId.startsWith(`${dep}/`));
9797
}
9898

99-
10099
const es5BuildPlugins = [
101100
typescriptPlugin({
102101
typescript,

packages/firestore/src/api/database.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ export class Firestore implements firestore.FirebaseFirestore, FirebaseService {
317317
readonly _dataConverter: UserDataConverter;
318318

319319
// Note: We are using `MemoryPersistenceProvider` as a default
320-
// PersistenceProvider to not change the constructor in the existing console
321-
// build.
320+
// PersistenceProvider to ensure backwards compatibility with the format
321+
// expected by the console build.
322322
constructor(
323323
databaseIdOrApp: FirestoreDatabase | FirebaseApp,
324324
authProvider: Provider<FirebaseAuthInternalName>,

packages/firestore/src/core/firestore_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class FirestoreClient {
216216
* the persistenceResult and falls back on memory-only persistence.
217217
*
218218
* @param persistenceProvider The provider that provides either IndexedDb or
219-
* memory-backed persistence.
219+
* memory-backed persistence
220220
* @param persistenceSettings Settings object to configure offline persistence
221221
* @param user The initial user
222222
* @param persistenceResult A deferred result indicating the user-visible

packages/installations/src/util/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ interface ErrorParams {
4545
};
4646
[ErrorCode.REQUEST_FAILED]: {
4747
requestName: string;
48-
[index: string]: string | number; // to make Typescript 3.8 happy
48+
[index: string] : string | number; // to make Typescript 3.8 happy
4949
} & ServerErrorData;
5050
}
5151

0 commit comments

Comments
 (0)