File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ class Client extends EventEmitter {
107107
108108 Util . setFfmpegPath ( this . options . ffmpegPath ) ;
109109 }
110+
110111 /**
111112 * Injection logic
112113 * Private function
@@ -322,7 +323,7 @@ class Client extends EventEmitter {
322323 await webCache . persist ( this . currentIndexHtml , version ) ;
323324 }
324325
325- //Load util functions (serializers, helper functions)
326+ // Load util functions (serializers, helper functions)
326327 await this . pupPage . evaluate ( LoadUtils ) ;
327328
328329 let start = Date . now ( ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class BaseAuthStrategy {
88 setup ( client ) {
99 this . client = client ;
1010 }
11+
1112 async beforeBrowserInitialized ( ) { }
1213 async afterBrowserInitialized ( ) { }
1314 async onAuthenticationNeeded ( ) {
@@ -17,6 +18,7 @@ class BaseAuthStrategy {
1718 failureEventPayload : undefined ,
1819 } ;
1920 }
21+
2022 async getAuthEventPayload ( ) { }
2123 async afterAuthReady ( ) { }
2224 async disconnect ( ) { }
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class Label extends Base {
3737 */
3838 this . hexColor = labelData . hexColor ;
3939 }
40+
4041 /**
4142 * Get all chats that have been assigned this Label
4243 * @returns {Promise<Array<Chat>> }
Original file line number Diff line number Diff line change @@ -821,6 +821,7 @@ class Message extends Base {
821821 }
822822 return undefined ;
823823 }
824+
824825 /**
825826 * Gets the payment details associated with a given message
826827 * @return {Promise<Payment> }
@@ -1006,6 +1007,7 @@ class Message extends Base {
10061007
10071008 return edittedEventMsg && new Message ( this . client , edittedEventMsg ) ;
10081009 }
1010+
10091011 /**
10101012 * Returns the PollVote this poll message
10111013 * @returns {Promise<PollVote[]> }
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ exports.LoadUtils = () => {
361361 content = options . buttons . body ;
362362 caption = content ;
363363 } else {
364- caption = options . caption ? options . caption : ' ' ; //Caption can't be empty
364+ caption = options . caption ? options . caption : ' ' ; // Caption can't be empty
365365 }
366366 buttonOptions = {
367367 productHeaderImageRejected : false ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ class WebCache {
55 async resolve ( ) {
66 return null ;
77 }
8+
89 async persist ( ) { }
910}
1011
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ END:VCARD`;
351351 it ( 'can send multiple Contacts as a contact card message' , async function ( ) {
352352 const contact1 = await client . getContactById ( remoteId ) ;
353353 const contact2 =
354- await client . getContactById ( '5511942167462@c.us' ) ; //iFood
354+ await client . getContactById ( '5511942167462@c.us' ) ; // iFood
355355
356356 const msg = await client . sendMessage ( remoteId , [
357357 contact1 ,
You can’t perform that action at this time.
0 commit comments