@osimatic/helpers-js 1.1.46 → 1.1.47

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.
package/http_client.js CHANGED
@@ -371,7 +371,6 @@ class HTTPClient {
371
371
  // On exécute les completeCallback qui était en attente de la requete refresh token
372
372
  if (typeof HTTPClient.listCompleteCallbackAfterRefreshTokenFinished != 'undefined') {
373
373
  HTTPClient.listCompleteCallbackAfterRefreshTokenFinished.forEach(callback => typeof callback == 'function' ? callback() : null);
374
- HTTPClient.listCompleteCallbackAfterRefreshTokenFinished = [];
375
374
  }
376
375
  }
377
376
 
package/jwt.js CHANGED
@@ -136,6 +136,10 @@ class JwtSession {
136
136
  return JwtToken.getData(JwtSession.getToken(), key);
137
137
  }
138
138
 
139
+ static setData(key, value) {
140
+ localStorage.setItem(key, value);
141
+ }
142
+
139
143
  static isAnonymous() {
140
144
  return localStorage.getItem('access_token') == null;
141
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.1.46",
3
+ "version": "1.1.47",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"