Skip to content

Commit 95d392b

Browse files
author
Sachin Maheshwari
committed
fixing lodash lib issue
1 parent a24044c commit 95d392b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/token.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fromPairs = require('lodash/fromPairs')
1+
const _ = require('lodash')
22

33

44
export function getToken(key) {
@@ -82,7 +82,7 @@ function getTokenExpirationDate(token) {
8282
}
8383

8484
function parseCookie(cookie) {
85-
return fromPairs(cookie.split(';').map((pair) => pair.split('=').map((part) => part.trim())))
85+
return _.fromPairs(cookie.split(';').map((pair) => pair.split('=').map((part) => part.trim())))
8686
}
8787

8888
function readCookie(name) {

0 commit comments

Comments
 (0)