hamzus-ui 0.0.229 → 0.0.230

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamzus-ui",
3
- "version": "0.0.229",
3
+ "version": "0.0.230",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -2,16 +2,19 @@ export let config = {
2
2
  url: "http://localhost:8000",// default url for api request
3
3
  sessionTokenName: "token", // cookie name where your token is stored
4
4
  requestWithCredentials: false, // whether to include credentials in the request
5
+ replayAfter401: false, // replay the request after the 401
5
6
  }
6
7
 
7
8
  export function init(options = {
8
9
  url : "http://localhost:8000",
9
10
  sessionTokenName : "token",
10
11
  requestWithCredentials : false,
11
- on401:null
12
+ on401:null,
13
+ replayAfter401:false
12
14
  }) {
13
15
  config.url = options.url || "http://localhost:8000";
14
16
  config.sessionTokenName = options.sessionTokenName || "token";
15
17
  config.requestWithCredentials = options.requestWithCredentials || false;
16
18
  config.on401 = options.on401 || null;
19
+ config.replayAfter401 = options.replayAfter401 || false;
17
20
  }