File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @hawk.so/javascript" ,
3- "version" : " 3.2.13 " ,
3+ "version" : " 3.2.14 " ,
44 "description" : " JavaScript errors tracking for Hawk.so" ,
55 "files" : [
66 " dist"
Original file line number Diff line number Diff line change @@ -403,6 +403,7 @@ export class BreadcrumbManager {
403403 data : {
404404 url,
405405 method,
406+ statusCode : 0 ,
406407 durationMs : duration ,
407408 error : error instanceof Error ? error . message : String ( error ) ,
408409 } ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function validateUser(user: AffectedUser): boolean {
3030 * @param context
3131 */
3232export function validateContext ( context : EventContext | undefined ) : boolean {
33- if ( ! context || ! Sanitizer . isObject ( context ) ) {
33+ if ( context && ! Sanitizer . isObject ( context ) ) {
3434 log ( 'validateContext: Context must be an object' , 'warn' ) ;
3535
3636 return false ;
You can’t perform that action at this time.
0 commit comments