Skip to content

Commit

Permalink
chore: update statics logic
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Dec 18, 2024
1 parent 02433f3 commit f253290
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/app/lib/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,18 +296,18 @@ export function createDeprecationProxy(instance) {
deprecationConsoleWarning('firestore', prop, 'FirestoreTimestamp', false);
}

if (
target &&
target.name === 'firebaseModuleWithApp' &&
(prop === 'Filter' ||
if (target && target.name === 'firebaseModuleWithApp') {
// statics
if (
prop === 'Filter' ||
prop === 'FieldValue' ||
prop === 'Timestamp' ||
prop === 'GeoPoint' ||
prop === 'Blob' ||
prop === 'FieldPath')
) {
// Firestore statics
deprecationConsoleWarning('firestore', prop, 'statics', false);
prop === 'FieldPath'
) {
deprecationConsoleWarning('firestore', prop, 'statics', false);
}
return target[prop];
}

Expand Down

0 comments on commit f253290

Please sign in to comment.