aws-v3-sdk 1.0.8 → 1.0.10

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/clients/sts.js CHANGED
@@ -1,12 +1,11 @@
1
1
  const { STSClient, AssumeRoleCommand } = require('@aws-sdk/client-sts')
2
2
 
3
3
  class STS {
4
- constructor (AWS_REGION) {
5
- this.client = new STSClient({ region: AWS_REGION })
4
+ constructor ({ region }) {
5
+ this.client = new STSClient({ region })
6
6
  }
7
7
 
8
8
  assumeRole (params, callback) {
9
- console.log('params', params)
10
9
  const command = new AssumeRoleCommand(params)
11
10
  this.client.send(command).then(role => {
12
11
  return callback(null, role)
@@ -44,6 +44,7 @@ exports.sendAuditsReqToES = async (method, index, type, id, data) => {
44
44
  const response = await client.index({
45
45
  id,
46
46
  index,
47
+ type,
47
48
  body: data,
48
49
  refresh: true
49
50
 
@@ -44,6 +44,7 @@ exports.sendReqToES = async (method, index, type, id, data) => {
44
44
  const response = await client.index({
45
45
  id,
46
46
  index,
47
+ type,
47
48
  body: data,
48
49
  refresh: true
49
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-v3-sdk",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "AWS v3 SDK Utils",
5
5
  "main": "index.js",
6
6
  "scripts": {