orderiom-api-package 0.4.88 → 0.4.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/common.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.4.88",
3
+ "version": "0.4.89",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/src/common.js CHANGED
@@ -113,10 +113,10 @@ export function formatTime(date){
113
113
  }
114
114
 
115
115
  export function isTokenExpired(token) {
116
- const base64Url = token.split(".")[1];
117
- const base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
118
-
119
116
  try{
117
+ const base64Url = token.split(".")[1];
118
+ const base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
119
+
120
120
  const jsonPayload = decodeURIComponent(
121
121
  atob(base64)
122
122
  .split("")