idea-aws 3.10.2 → 3.10.3

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,9 @@ import { CognitoUser } from 'idea-toolbox';
5
5
  */
6
6
  export declare class Cognito {
7
7
  protected cognito: CognitoIdentityServiceProvider;
8
- constructor();
8
+ constructor(params?: {
9
+ region?: string;
10
+ });
9
11
  /**
10
12
  * Change the region in which to find the user pool.
11
13
  * Default: the runner's (e.g. Lambda function) region.
@@ -7,8 +7,8 @@ const idea_toolbox_1 = require("idea-toolbox");
7
7
  * A wrapper for AWS Cognito.
8
8
  */
9
9
  class Cognito {
10
- constructor() {
11
- this.cognito = new aws_sdk_1.CognitoIdentityServiceProvider({ apiVersion: '2016-04-18' });
10
+ constructor(params = {}) {
11
+ this.cognito = new aws_sdk_1.CognitoIdentityServiceProvider({ apiVersion: '2016-04-18', region: params.region });
12
12
  }
13
13
  /**
14
14
  * Change the region in which to find the user pool.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-aws",
3
- "version": "3.10.2",
3
+ "version": "3.10.3",
4
4
  "description": "AWS wrappers to use in IDEA's back-ends",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",