File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " wa-multi-session" ,
3
- "version" : " 3.2.0 " ,
3
+ "version" : " 3.2.1 " ,
4
4
"description" : " Multi Session Whatsapp Library" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ whatsapp.setCredentialsDir("my_custom_dir");
211
211
212
212
## Change Log
213
213
214
- v3.2.0 July 2023 (LATEST)
214
+ v3.2.1 July 2023 (LATEST)
215
215
216
216
- Add error class named: WhatsappError
217
217
Original file line number Diff line number Diff line change 1
1
export class WhatsappError extends Error {
2
2
constructor ( message : string ) {
3
3
super ( message ) ;
4
+ this . name = "WhatsappError" ;
5
+ Object . setPrototypeOf ( this , WhatsappError . prototype ) ;
6
+ }
7
+
8
+ static isWhatsappError ( error : any ) : error is WhatsappError {
9
+ return error instanceof WhatsappError || error instanceof Error ;
4
10
}
5
11
}
You can’t perform that action at this time.
0 commit comments