Skip to content

Commit 03b4f84

Browse files
committed
Update formatting
1 parent f9361ff commit 03b4f84

File tree

3 files changed

+47
-13
lines changed

3 files changed

+47
-13
lines changed

packages/analytics/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function registerAnalytics(): void {
8282
};
8383
} catch (e) {
8484
throw ERROR_FACTORY.create(AnalyticsError.INTEROP_COMPONENT_REG_FAILED, {
85-
reason: (e as Error)
85+
reason: e as Error
8686
});
8787
}
8888
}

packages/firestore-compat/src/api/database.ts

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,11 @@ export class Firestore
297297
collection(this._delegate, pathString)
298298
);
299299
} catch (e) {
300-
throw replaceFunctionName(e as Error, 'collection()', 'Firestore.collection()');
300+
throw replaceFunctionName(
301+
e as Error,
302+
'collection()',
303+
'Firestore.collection()'
304+
);
301305
}
302306
}
303307

@@ -314,7 +318,7 @@ export class Firestore
314318
return new Query(this, collectionGroup(this._delegate, collectionId));
315319
} catch (e) {
316320
throw replaceFunctionName(
317-
e as Error,
321+
e as Error,
318322
'collectionGroup()',
319323
'Firestore.collectionGroup()'
320324
);
@@ -718,7 +722,11 @@ export class DocumentReference<T = PublicDocumentData>
718722
return setDoc(this._delegate, value as WithFieldValue<T>);
719723
}
720724
} catch (e) {
721-
throw replaceFunctionName(e as Error, 'setDoc()', 'DocumentReference.set()');
725+
throw replaceFunctionName(
726+
e as Error,
727+
'setDoc()',
728+
'DocumentReference.set()'
729+
);
722730
}
723731
}
724732

@@ -745,7 +753,11 @@ export class DocumentReference<T = PublicDocumentData>
745753
);
746754
}
747755
} catch (e) {
748-
throw replaceFunctionName(e as Error, 'updateDoc()', 'DocumentReference.update()');
756+
throw replaceFunctionName(
757+
e as Error,
758+
'updateDoc()',
759+
'DocumentReference.update()'
760+
);
749761
}
750762
}
751763

@@ -991,7 +1003,11 @@ export class Query<T = PublicDocumentData>
9911003
query(this._delegate, where(fieldPath as string, opStr, value))
9921004
);
9931005
} catch (e) {
994-
throw replaceFunctionName(e as Error, /(orderBy|where)\(\)/, 'Query.$1()');
1006+
throw replaceFunctionName(
1007+
e as Error,
1008+
/(orderBy|where)\(\)/,
1009+
'Query.$1()'
1010+
);
9951011
}
9961012
}
9971013

@@ -1008,7 +1024,11 @@ export class Query<T = PublicDocumentData>
10081024
query(this._delegate, orderBy(fieldPath as string, directionStr))
10091025
);
10101026
} catch (e) {
1011-
throw replaceFunctionName(e as Error, /(orderBy|where)\(\)/, 'Query.$1()');
1027+
throw replaceFunctionName(
1028+
e as Error,
1029+
/(orderBy|where)\(\)/,
1030+
'Query.$1()'
1031+
);
10121032
}
10131033
}
10141034

@@ -1027,7 +1047,11 @@ export class Query<T = PublicDocumentData>
10271047
query(this._delegate, limitToLast(n))
10281048
);
10291049
} catch (e) {
1030-
throw replaceFunctionName(e as Error, 'limitToLast()', 'Query.limitToLast()');
1050+
throw replaceFunctionName(
1051+
e as Error,
1052+
'limitToLast()',
1053+
'Query.limitToLast()'
1054+
);
10311055
}
10321056
}
10331057

@@ -1046,7 +1070,11 @@ export class Query<T = PublicDocumentData>
10461070
query(this._delegate, startAfter(...args))
10471071
);
10481072
} catch (e) {
1049-
throw replaceFunctionName(e as Error, 'startAfter()', 'Query.startAfter()');
1073+
throw replaceFunctionName(
1074+
e as Error,
1075+
'startAfter()',
1076+
'Query.startAfter()'
1077+
);
10501078
}
10511079
}
10521080

@@ -1265,7 +1293,11 @@ export class CollectionReference<T = PublicDocumentData>
12651293
);
12661294
}
12671295
} catch (e) {
1268-
throw replaceFunctionName(e as Error, 'doc()', 'CollectionReference.doc()');
1296+
throw replaceFunctionName(
1297+
e as Error,
1298+
'doc()',
1299+
'CollectionReference.doc()'
1300+
);
12691301
}
12701302
}
12711303

repo-scripts/api-documenter/src/plugin/PluginLoader.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ export class PluginLoader {
124124
);
125125
} catch (e) {
126126
throw new Error(
127-
`Failed to construct feature subclass:\n` + (e as Error)?.toString()
127+
`Failed to construct feature subclass:\n` +
128+
(e as Error)?.toString()
128129
);
129130
}
130131
if (
@@ -140,7 +141,7 @@ export class PluginLoader {
140141
} catch (e) {
141142
throw new Error(
142143
'Error occurred during the onInitialized() event: ' +
143-
(e as Error)?.toString()
144+
(e as Error)?.toString()
144145
);
145146
}
146147

@@ -153,7 +154,8 @@ export class PluginLoader {
153154
}
154155
} catch (e) {
155156
throw new Error(
156-
`Error loading plugin ${configPlugin.packageName}: ` + (e as Error)?.message
157+
`Error loading plugin ${configPlugin.packageName}: ` +
158+
(e as Error)?.message
157159
);
158160
}
159161
}

0 commit comments

Comments
 (0)