@gandalan/weblibs 1.5.12 → 1.5.13

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/README.md +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,6 +8,7 @@ Example:
8
8
  import { fetchEnvConfig, fluentApi, fluentIdasAuthManager } from '@gandalan/weblibs';
9
9
 
10
10
  async function initializeAuthAndApi() {
11
+ const serviceName = 'myService'
11
12
  const appToken = 'your-app-token';
12
13
  const envConfig = await fetchEnvConfig('dev'); // Replace 'dev' with your desired environment
13
14
 
@@ -16,8 +17,8 @@ async function initializeAuthAndApi() {
16
17
  return; // init() has redirected to login.
17
18
  }
18
19
 
19
- globalThis.idas = fluentApi(envConfig.idas, authManager); // IDAS-API instance
20
- globalThis.api = fluentApi("/api/", authManager); // Local API instance
20
+ globalThis.idas = fluentApi(envConfig.idas, authManager, serviceName); // IDAS-API instance
21
+ globalThis.api = fluentApi("/api/", authManager, serviceName); // Local API instance
21
22
  }
22
23
  ```
23
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "1.5.12",
3
+ "version": "1.5.13",
4
4
  "description": "WebLibs for Gandalan JS/TS projects",
5
5
  "keywords": [
6
6
  "gandalan"