triangle-utils 1.4.188 → 1.4.190

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.
@@ -5,7 +5,7 @@ export declare class UtilsCognito {
5
5
  admin_create_user(user_pool_id: string, username: string, user_id: string): Promise<Error | import("@aws-sdk/client-cognito-identity-provider").AdminCreateUserCommandOutput>;
6
6
  admin_reset_password(user_pool_id: string, username: string): Promise<Error | import("@aws-sdk/client-cognito-identity-provider").AdminCreateUserCommandOutput>;
7
7
  get_email(token: string): Promise<string | undefined>;
8
- get_user_id(token: string, options: {
8
+ get_user_id(token: string, options?: {
9
9
  is_verbose?: boolean;
10
10
  }): Promise<string | undefined>;
11
11
  get_new_token(client_id: string, client_secret: string, refresh_token: string): Promise<string | undefined>;
@@ -72,7 +72,7 @@ export class UtilsCognito {
72
72
  return undefined;
73
73
  }
74
74
  }
75
- async get_user_id(token, options) {
75
+ async get_user_id(token, options = {}) {
76
76
  const is_verbose = options.is_verbose || false;
77
77
  try {
78
78
  const user_info = await this.cognito.getUser({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.188",
3
+ "version": "1.4.190",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -76,7 +76,7 @@ export class UtilsCognito {
76
76
  }
77
77
  }
78
78
 
79
- async get_user_id(token : string, options : { is_verbose? : boolean }) : Promise<string | undefined> {
79
+ async get_user_id(token : string, options : { is_verbose? : boolean } = {}) : Promise<string | undefined> {
80
80
  const is_verbose = options.is_verbose || false
81
81
  try {
82
82
  const user_info = await this.cognito.getUser({