@@ -149,7 +149,7 @@ export class FunctionBuilder {
149149 */
150150 onRequest : (
151151 handler : ( req : https . Request , resp : express . Response ) => void
152- ) => https . _onRequestWithOpts ( handler , this . options ) ,
152+ ) => https . _onRequestWithOptions ( handler , this . options ) ,
153153 /**
154154 * Declares a callable method for clients to call using a Firebase SDK.
155155 * @param handler A method that takes a data and context and returns a value.
@@ -159,7 +159,7 @@ export class FunctionBuilder {
159159 data : any ,
160160 context : https . CallableContext
161161 ) => any | Promise < any >
162- ) => https . _onCallWithOpts ( handler , this . options ) ,
162+ ) => https . _onCallWithOptions ( handler , this . options ) ,
163163 } ;
164164 }
165165
@@ -171,7 +171,7 @@ export class FunctionBuilder {
171171 * @param instance The Realtime Database instance to use.
172172 */
173173 instance : ( instance : string ) =>
174- database . _instanceWithOpts ( instance , this . options ) ,
174+ database . _instanceWithOptions ( instance , this . options ) ,
175175 /**
176176 * Select Firebase Realtime Database Reference to listen to.
177177 *
@@ -195,7 +195,7 @@ export class FunctionBuilder {
195195 * about the user who triggered the Cloud Function.
196196 * @param ref Path of the database to listen to.
197197 */
198- ref : ( path : string ) => database . _refWithOpts ( path , this . options ) ,
198+ ref : ( path : string ) => database . _refWithOptions ( path , this . options ) ,
199199 } ;
200200 }
201201
@@ -209,13 +209,13 @@ export class FunctionBuilder {
209209 * path is "/users/Ada".
210210 */
211211 document : ( path : string ) =>
212- firestore . _documentWithOpts ( path , this . options ) ,
212+ firestore . _documentWithOptions ( path , this . options ) ,
213213 /** @internal */
214214 namespace : ( namespace : string ) =>
215- firestore . _namespaceWithOpts ( namespace , this . options ) ,
215+ firestore . _namespaceWithOptions ( namespace , this . options ) ,
216216 /** @internal */
217217 database : ( database : string ) =>
218- firestore . _databaseWithOpts ( database , this . options ) ,
218+ firestore . _databaseWithOptions ( database , this . options ) ,
219219 } ;
220220 }
221221
@@ -225,7 +225,7 @@ export class FunctionBuilder {
225225 * Handle events related to Crashlytics issues. An issue in Crashlytics is an
226226 * aggregation of crashes which have a shared root cause.
227227 */
228- issue : ( ) => crashlytics . _issueWithOpts ( this . options ) ,
228+ issue : ( ) => crashlytics . _issueWithOptions ( this . options ) ,
229229 } ;
230230 }
231231
@@ -236,7 +236,7 @@ export class FunctionBuilder {
236236 * @param analyticsEventType Name of the analytics event type.
237237 */
238238 event : ( analyticsEventType : string ) =>
239- analytics . _eventWithOpts ( analyticsEventType , this . options ) ,
239+ analytics . _eventWithOptions ( analyticsEventType , this . options ) ,
240240 } ;
241241 }
242242
@@ -254,9 +254,10 @@ export class FunctionBuilder {
254254 context : EventContext
255255 ) => PromiseLike < any > | any
256256 ) =>
257- remoteConfig . _onUpdateWithOpts ( handler , this . options ) as CloudFunction <
258- remoteConfig . TemplateVersion
259- > ,
257+ remoteConfig . _onUpdateWithOptions (
258+ handler ,
259+ this . options
260+ ) as CloudFunction < remoteConfig . TemplateVersion > ,
260261 } ;
261262 }
262263
@@ -269,12 +270,12 @@ export class FunctionBuilder {
269270 * @param bucket Name of the Google Cloud Storage bucket to listen to.
270271 */
271272 bucket : ( bucket ?: string ) =>
272- storage . _bucketWithOpts ( this . options , bucket ) ,
273+ storage . _bucketWithOptions ( this . options , bucket ) ,
273274
274275 /**
275276 * Handle events related to Cloud Storage objects.
276277 */
277- object : ( ) => storage . _objectWithOpts ( this . options ) ,
278+ object : ( ) => storage . _objectWithOptions ( this . options ) ,
278279 } ;
279280 }
280281
@@ -283,9 +284,9 @@ export class FunctionBuilder {
283284 /** Select Cloud Pub/Sub topic to listen to.
284285 * @param topic Name of Pub/Sub topic, must belong to the same project as the function.
285286 */
286- topic : ( topic : string ) => pubsub . _topicWithOpts ( topic , this . options ) ,
287+ topic : ( topic : string ) => pubsub . _topicWithOptions ( topic , this . options ) ,
287288 schedule : ( schedule : string ) =>
288- pubsub . _scheduleWithOpts ( schedule , this . options ) ,
289+ pubsub . _scheduleWithOptions ( schedule , this . options ) ,
289290 } ;
290291 }
291292
@@ -294,7 +295,7 @@ export class FunctionBuilder {
294295 /**
295296 * Handle events related to Firebase authentication users.
296297 */
297- user : ( ) => auth . _userWithOpts ( this . options ) ,
298+ user : ( ) => auth . _userWithOptions ( this . options ) ,
298299 } ;
299300 }
300301}
0 commit comments