File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/serverless-offline-sqs/src
tests/serverless-plugins-integration Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 9
9
has,
10
10
isEmpty,
11
11
isUndefined,
12
+ lowerFirst,
12
13
map,
14
+ mapKeys,
13
15
mapValues,
14
16
omitBy,
15
17
pipe
@@ -146,7 +148,7 @@ class ServerlessOfflineSQS {
146
148
receiptHandle,
147
149
body,
148
150
attributes,
149
- messageAttributes,
151
+ messageAttributes : mapValues ( mapKeys ( lowerFirst ) , messageAttributes ) ,
150
152
md5OfBody,
151
153
eventSource : 'aws:sqs' ,
152
154
eventSourceARN,
Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ const sendMessages = () => {
16
16
client
17
17
. sendMessage ( {
18
18
QueueUrl : 'http://localhost:9324/queue/MyFirstQueue' ,
19
- MessageBody : 'MyFirstMessage'
19
+ MessageBody : 'MyFirstMessage' ,
20
+ MessageAttributes : {
21
+ myAttribute : { DataType : 'String' , StringValue : 'myAttribute' }
22
+ }
20
23
} )
21
24
. promise ( ) ,
22
25
client
You can’t perform that action at this time.
0 commit comments