File tree Expand file tree Collapse file tree 1 file changed +6
-19
lines changed
packages/node/src/integrations/tracing/firebase/otel/patches Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -123,26 +123,13 @@ function unwrapMethods(
123
123
unwrap : typeof shimmerUnwrap ,
124
124
// eslint-disable-next-line @typescript-eslint/no-explicit-any
125
125
) : any {
126
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
127
- if ( isWrapped ( moduleExports . addDoc ) ) {
128
- unwrap ( moduleExports , 'addDoc' ) ;
129
- }
130
-
131
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
132
- if ( isWrapped ( moduleExports . getDocs ) ) {
133
- unwrap ( moduleExports , 'getDocs' ) ;
134
- }
135
-
136
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
137
- if ( isWrapped ( moduleExports . setDoc ) ) {
138
- unwrap ( moduleExports , 'setDoc' ) ;
139
- }
140
-
141
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
142
- if ( isWrapped ( moduleExports . deleteDoc ) ) {
143
- unwrap ( moduleExports , 'deleteDoc' ) ;
126
+ for ( const method of [ 'addDoc' , 'getDocs' , 'setDoc' , 'deleteDoc' ] ) {
127
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
128
+ if ( isWrapped ( moduleExports [ method ] ) ) {
129
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
130
+ unwrap ( moduleExports , method ) ;
131
+ }
144
132
}
145
-
146
133
return moduleExports ;
147
134
}
148
135
You can’t perform that action at this time.
0 commit comments