idea-aws 3.13.1 → 3.13.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.
@@ -8,7 +8,9 @@ export declare class Comprehend {
8
8
  * The instance of Comprehend.
9
9
  */
10
10
  protected comprehend: AmazonComprehend;
11
- constructor();
11
+ constructor(params?: {
12
+ region?: string;
13
+ });
12
14
  /**
13
15
  * Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).
14
16
  */
@@ -6,8 +6,8 @@ const aws_sdk_1 = require("aws-sdk");
6
6
  * A wrapper for Amazon Comprehend.
7
7
  */
8
8
  class Comprehend {
9
- constructor() {
10
- this.comprehend = new aws_sdk_1.Comprehend({ apiVersion: '2017-11-27' });
9
+ constructor(params = {}) {
10
+ this.comprehend = new aws_sdk_1.Comprehend({ apiVersion: '2017-11-27', region: params.region });
11
11
  }
12
12
  /**
13
13
  * Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-aws",
3
- "version": "3.13.1",
3
+ "version": "3.13.2",
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",