aws-v3-sdk 1.0.7 → 1.0.9
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/lambda.js +0 -5
- package/clients/sts.js +2 -3
- package/package.json +1 -1
package/clients/lambda.js
CHANGED
|
@@ -11,11 +11,6 @@ class Lambda {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
async invoke (params, callback) {
|
|
14
|
-
if (params.Payload) {
|
|
15
|
-
params.InvokeArgs = fromUtf8(params.Payload)
|
|
16
|
-
delete params.Payload
|
|
17
|
-
}
|
|
18
|
-
|
|
19
14
|
const command = new InvokeCommand(params)
|
|
20
15
|
this.client.send(command).then(response => {
|
|
21
16
|
response.Payload = toUtf8(response.Payload)
|
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 (
|
|
5
|
-
this.client = new STSClient({ 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)
|