Skip to content

Commit b9e5539

Browse files
committed
feat: convert release to string
1 parent 303502b commit b9e5539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/catcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default class Catcher {
112112

113113
this.token = settings.token;
114114
this.debug = settings.debug || false;
115-
this.release = settings.release;
115+
this.release = settings.release !== undefined ? String(settings.release) : undefined;
116116
this.setUser(settings.user || Catcher.getGeneratedUser());
117117
this.setContext(settings.context || undefined);
118118
this.beforeSend = settings.beforeSend;
@@ -445,7 +445,7 @@ export default class Catcher {
445445
* Release version
446446
*/
447447
private getRelease(): HawkJavaScriptEvent['release'] {
448-
return this.release || null;
448+
return this.release !== undefined ? String(this.release) : null;
449449
}
450450

451451
/**

0 commit comments

Comments
 (0)