2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5
5
6
6
## [ Unreleased]
7
7
8
+ ### Changes
9
+
10
+ - ` MermaidChart#resetAccessToken() ` no longer returns a ` Promise ` .
11
+
8
12
## [ 0.2.0] - 2024-04-11
9
13
10
14
### Added
Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ export class MermaidChart {
57
57
this . axios . interceptors . response . use ( ( res : AxiosResponse ) => {
58
58
// Reset token if a 401 is thrown
59
59
if ( res . status === 401 ) {
60
- // don't care if this function rejects/resolves
61
- void this . resetAccessToken ( ) ;
60
+ this . resetAccessToken ( ) ;
62
61
}
63
62
return res ;
64
63
} ) ;
@@ -153,7 +152,7 @@ export class MermaidChart {
153
152
this . accessToken = accessToken ;
154
153
}
155
154
156
- public async resetAccessToken ( ) : Promise < void > {
155
+ public resetAccessToken ( ) : void {
157
156
this . accessToken = undefined ;
158
157
this . axios . defaults . headers . common [ 'Authorization' ] = `Bearer none` ;
159
158
}
0 commit comments