aws-v3-sdk 1.0.1 → 1.0.4
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/lib/clients/lambda.js +6 -4
- package/package.json +1 -1
package/lib/clients/lambda.js
CHANGED
|
@@ -5,10 +5,12 @@ class Lambda {
|
|
|
5
5
|
async invoke (params, callback) {
|
|
6
6
|
const client = new LambdaClient()
|
|
7
7
|
const command = new InvokeCommand(params)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
client.send(command).then(response => {
|
|
9
|
+
response.Payload = toUtf8(response.Payload)
|
|
10
|
+
callback(null, response)
|
|
11
|
+
}).catch(err => {
|
|
12
|
+
callback(err)
|
|
13
|
+
})
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
16
|
|