Skip to content

Commit

Permalink
Update jwt-decode to v3
Browse files Browse the repository at this point in the history
This also removes the @types/jwt-decode
which were incorrectly marked as prod deps
and which could pollute the typings of
consumer projects.

Change-type: patch
  • Loading branch information
thgreasi committed Feb 23, 2024
1 parent 10316af commit aaac9d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
* @module jwt
*/

import * as jwtDecode from 'jwt-decode';
import jwtDecode from 'jwt-decode';
import { Token, TokenType } from './token';

export interface JWTData {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@
"util": "^0.12.4"
},
"dependencies": {
"@types/jwt-decode": "^2.2.1",
"balena-errors": "^4.7.1",
"balena-settings-storage": "^8.1.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.1.2",
"tslib": "^2.0.0"
},
"husky": {
Expand Down

0 comments on commit aaac9d5

Please sign in to comment.