@ibertran/fortytwo-intra-client 3.1.0 → 3.1.2

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/dist/index.d.ts CHANGED
@@ -52,5 +52,5 @@ export declare class FortytwoIntraClient {
52
52
  state: string;
53
53
  };
54
54
  exchangeOAuthCode(code: string, redirect_uri?: string): Promise<any>;
55
- tokenInfos(options: Omit<inputOptions, "body" | "perPage" | "maxPage">): Promise<any>;
55
+ tokenInfos(options?: Omit<inputOptions, "body" | "perPage" | "maxPage">): Promise<any>;
56
56
  }
package/dist/index.js CHANGED
@@ -300,7 +300,7 @@ class FortytwoIntraClient {
300
300
  });
301
301
  return res?.data;
302
302
  }
303
- async tokenInfos(options) {
303
+ async tokenInfos(options = {}) {
304
304
  return this.get(this.token_info_url, options);
305
305
  }
306
306
  }
package/dist/lib/logs.js CHANGED
@@ -17,11 +17,10 @@ function getLogLine(res, options) {
17
17
  tokens.push(url.pathname);
18
18
  }
19
19
  // Add query parameters as object if they exist
20
- console.log(queryParams);
21
20
  if (Object.keys(queryParams).length > 0) {
22
21
  delete queryParams.per_page;
23
22
  delete queryParams.page;
24
- tokens.push(JSON.stringify(queryParams));
23
+ tokens.push(JSON.stringify(queryParams, null, 1));
25
24
  }
26
25
  if (options.currpage) {
27
26
  tokens.push(`| page: ${options.currpage}/${options.lastPage === Infinity ? "unknown" : options.lastPage}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibertran/fortytwo-intra-client",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {