Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-lambda-helper

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-lambda-helper - npm Package Compare versions

Comparing version 2.14.0 to 2.15.0

test/lib/pushToSNSTopic.test.js

2

coverage/coverage.json

@@ -1,1 +0,1 @@

{"/Users/Admin/work/aws-lambda-helper/lib/index.js":{"path":"/Users/Admin/work/aws-lambda-helper/lib/index.js","s":{"1":1,"2":1,"3":1,"4":1,"5":31,"6":31,"7":31,"8":31,"9":31,"10":31,"11":30,"12":30,"13":30,"14":1,"15":33,"16":1,"17":32,"18":32,"19":4,"20":4,"21":4,"22":4,"23":4,"24":28,"25":26,"26":26,"27":26,"28":26,"29":2,"30":1,"31":44,"32":44,"33":44,"34":8,"35":36,"36":3,"37":3,"38":3,"39":2,"40":34,"41":3,"42":3,"43":3,"44":2,"45":2,"46":2,"47":2,"48":32,"49":1,"50":2,"51":1,"52":6,"53":1,"54":5,"55":4,"56":5,"57":5,"58":1,"59":5,"60":5,"61":5,"62":5,"63":1,"64":4,"65":4,"66":1,"67":3,"68":1,"69":6,"70":1,"71":4,"72":1,"73":3,"74":1,"75":3,"76":3,"77":3,"78":3,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":3,"86":1,"87":4,"88":1,"89":2,"90":2,"91":2,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":2,"102":2,"103":1,"104":1,"105":5,"106":1,"107":2,"108":1,"109":1,"110":1,"111":2,"112":1,"113":36,"114":36,"115":36,"116":36,"117":36,"118":1,"119":0,"120":0,"121":0,"122":0,"123":0,"124":1,"125":1,"126":1,"127":8,"128":1,"129":8,"130":8,"131":7,"132":7,"133":7,"134":59,"135":7,"136":3,"137":3,"138":2,"139":1,"140":4,"141":3,"142":1,"143":8,"144":1,"145":1,"146":1,"147":8,"148":4,"149":8,"150":1,"151":1,"152":4,"153":4,"154":1,"155":1,"156":1,"157":2,"158":2,"159":2,"160":4,"161":4,"162":4,"163":4,"164":4,"165":2,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":1,"176":2,"177":2,"178":1,"179":1,"180":1,"181":1,"182":1},"b":{"1":[1,32],"2":[4,28],"3":[26,2],"4":[44,31],"5":[8,36],"6":[3,33],"7":[36,5,5],"8":[2,1],"9":[3,3],"10":[3,31],"11":[34,3],"12":[2,1],"13":[3,2],"14":[1,5],"15":[6,5],"16":[4,1],"17":[1,4],"18":[5,5],"19":[5,5],"20":[5,5],"21":[1,4],"22":[1,3],"23":[6,2],"24":[1,3],"25":[4,3],"26":[1,2],"27":[3,3],"28":[1,2],"29":[4,1],"30":[5,1],"31":[1,1],"32":[36,31],"33":[36,0],"34":[36,24,0],"35":[36,36,36],"36":[36,26],"37":[35,1],"38":[0,0],"39":[2,6],"40":[8,2],"41":[8,4],"42":[3,4],"43":[7,4],"44":[3,1],"45":[4,4],"46":[2,2],"47":[1,1]},"f":{"1":31,"2":33,"3":44,"4":2,"5":2,"6":6,"7":5,"8":6,"9":4,"10":4,"11":2,"12":1,"13":1,"14":2,"15":5,"16":2,"17":2,"18":36,"19":0,"20":8,"21":8,"22":7,"23":59,"24":7,"25":1,"26":4,"27":2,"28":4,"29":4,"30":1,"31":1,"32":2,"33":2},"fnMap":{"1":{"name":"init","line":23,"loc":{"start":{"line":23,"column":0},"end":{"line":23,"column":31}}},"2":{"name":"(anonymous_2)","line":35,"loc":{"start":{"line":35,"column":37},"end":{"line":35,"column":67}}},"3":{"name":"(anonymous_3)","line":59,"loc":{"start":{"line":59,"column":29},"end":{"line":59,"column":41}}},"4":{"name":"(anonymous_4)","line":83,"loc":{"start":{"line":83,"column":29},"end":{"line":83,"column":44}}},"5":{"name":"(anonymous_5)","line":96,"loc":{"start":{"line":96,"column":27},"end":{"line":96,"column":46}}},"6":{"name":"(anonymous_6)","line":105,"loc":{"start":{"line":105,"column":26},"end":{"line":105,"column":48}}},"7":{"name":"(anonymous_7)","line":143,"loc":{"start":{"line":143,"column":37},"end":{"line":143,"column":58}}},"8":{"name":"(anonymous_8)","line":151,"loc":{"start":{"line":151,"column":30},"end":{"line":151,"column":42}}},"9":{"name":"(anonymous_9)","line":161,"loc":{"start":{"line":161,"column":24},"end":{"line":161,"column":46}}},"10":{"name":"(anonymous_10)","line":198,"loc":{"start":{"line":198,"column":27},"end":{"line":198,"column":39}}},"11":{"name":"(anonymous_11)","line":207,"loc":{"start":{"line":207,"column":29},"end":{"line":207,"column":51}}},"12":{"name":"(anonymous_12)","line":218,"loc":{"start":{"line":218,"column":27},"end":{"line":218,"column":49}}},"13":{"name":"(anonymous_13)","line":227,"loc":{"start":{"line":227,"column":34},"end":{"line":227,"column":56}}},"14":{"name":"(anonymous_14)","line":231,"loc":{"start":{"line":231,"column":34},"end":{"line":231,"column":51}}},"15":{"name":"(anonymous_15)","line":239,"loc":{"start":{"line":239,"column":32},"end":{"line":239,"column":44}}},"16":{"name":"(anonymous_16)","line":254,"loc":{"start":{"line":254,"column":24},"end":{"line":254,"column":55}}},"17":{"name":"clone","line":259,"loc":{"start":{"line":259,"column":0},"end":{"line":259,"column":21}}},"18":{"name":"(anonymous_18)","line":263,"loc":{"start":{"line":263,"column":19},"end":{"line":263,"column":35}}},"19":{"name":"(anonymous_19)","line":282,"loc":{"start":{"line":282,"column":32},"end":{"line":282,"column":47}},"skip":true},"20":{"name":"proto","line":294,"loc":{"start":{"line":294,"column":0},"end":{"line":294,"column":25}}},"21":{"name":"httpRequest","line":307,"loc":{"start":{"line":307,"column":0},"end":{"line":307,"column":41}}},"22":{"name":"(anonymous_22)","line":309,"loc":{"start":{"line":309,"column":44},"end":{"line":309,"column":59}}},"23":{"name":"(anonymous_23)","line":312,"loc":{"start":{"line":312,"column":19},"end":{"line":312,"column":36}}},"24":{"name":"(anonymous_24)","line":315,"loc":{"start":{"line":315,"column":17},"end":{"line":315,"column":29}}},"25":{"name":"(anonymous_25)","line":332,"loc":{"start":{"line":332,"column":18},"end":{"line":332,"column":31}}},"26":{"name":"pushToSocketServer","line":358,"loc":{"start":{"line":358,"column":0},"end":{"line":358,"column":47}}},"27":{"name":"saveRecord","line":378,"loc":{"start":{"line":378,"column":0},"end":{"line":378,"column":39}}},"28":{"name":"(anonymous_28)","line":381,"loc":{"start":{"line":381,"column":23},"end":{"line":381,"column":39}}},"29":{"name":"(anonymous_29)","line":393,"loc":{"start":{"line":393,"column":34},"end":{"line":393,"column":55}}},"30":{"name":"getRecord","line":407,"loc":{"start":{"line":407,"column":0},"end":{"line":407,"column":38}}},"31":{"name":"(anonymous_31)","line":416,"loc":{"start":{"line":416,"column":35},"end":{"line":416,"column":56}}},"32":{"name":"(anonymous_32)","line":432,"loc":{"start":{"line":432,"column":31},"end":{"line":432,"column":59}}},"33":{"name":"(anonymous_33)","line":434,"loc":{"start":{"line":434,"column":29},"end":{"line":434,"column":50}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":29}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":31}},"3":{"start":{"line":6,"column":0},"end":{"line":20,"column":2}},"4":{"start":{"line":23,"column":0},"end":{"line":33,"column":1}},"5":{"start":{"line":24,"column":2},"end":{"line":24,"column":31}},"6":{"start":{"line":25,"column":2},"end":{"line":25,"column":27}},"7":{"start":{"line":26,"column":2},"end":{"line":26,"column":27}},"8":{"start":{"line":27,"column":2},"end":{"line":27,"column":24}},"9":{"start":{"line":28,"column":2},"end":{"line":28,"column":29}},"10":{"start":{"line":29,"column":2},"end":{"line":29,"column":65}},"11":{"start":{"line":30,"column":2},"end":{"line":30,"column":50}},"12":{"start":{"line":31,"column":2},"end":{"line":31,"column":37}},"13":{"start":{"line":32,"column":2},"end":{"line":32,"column":19}},"14":{"start":{"line":35,"column":0},"end":{"line":54,"column":2}},"15":{"start":{"line":36,"column":2},"end":{"line":36,"column":109}},"16":{"start":{"line":36,"column":27},"end":{"line":36,"column":109}},"17":{"start":{"line":37,"column":2},"end":{"line":37,"column":62}},"18":{"start":{"line":39,"column":2},"end":{"line":45,"column":3}},"19":{"start":{"line":40,"column":4},"end":{"line":40,"column":50}},"20":{"start":{"line":41,"column":4},"end":{"line":41,"column":51}},"21":{"start":{"line":42,"column":4},"end":{"line":42,"column":34}},"22":{"start":{"line":43,"column":4},"end":{"line":43,"column":25}},"23":{"start":{"line":44,"column":4},"end":{"line":44,"column":21}},"24":{"start":{"line":47,"column":2},"end":{"line":52,"column":3}},"25":{"start":{"line":48,"column":4},"end":{"line":48,"column":50}},"26":{"start":{"line":49,"column":4},"end":{"line":49,"column":51}},"27":{"start":{"line":50,"column":4},"end":{"line":50,"column":67}},"28":{"start":{"line":51,"column":4},"end":{"line":51,"column":21}},"29":{"start":{"line":53,"column":2},"end":{"line":53,"column":81}},"30":{"start":{"line":59,"column":0},"end":{"line":92,"column":2}},"31":{"start":{"line":60,"column":2},"end":{"line":60,"column":37}},"32":{"start":{"line":63,"column":2},"end":{"line":63,"column":30}},"33":{"start":{"line":64,"column":2},"end":{"line":66,"column":3}},"34":{"start":{"line":65,"column":4},"end":{"line":65,"column":19}},"35":{"start":{"line":68,"column":2},"end":{"line":76,"column":3}},"36":{"start":{"line":69,"column":4},"end":{"line":75,"column":5}},"37":{"start":{"line":70,"column":6},"end":{"line":70,"column":57}},"38":{"start":{"line":71,"column":6},"end":{"line":73,"column":7}},"39":{"start":{"line":72,"column":8},"end":{"line":72,"column":27}},"40":{"start":{"line":78,"column":2},"end":{"line":88,"column":3}},"41":{"start":{"line":79,"column":4},"end":{"line":79,"column":34}},"42":{"start":{"line":80,"column":4},"end":{"line":80,"column":45}},"43":{"start":{"line":81,"column":4},"end":{"line":87,"column":5}},"44":{"start":{"line":82,"column":6},"end":{"line":82,"column":19}},"45":{"start":{"line":83,"column":6},"end":{"line":85,"column":9}},"46":{"start":{"line":84,"column":8},"end":{"line":84,"column":40}},"47":{"start":{"line":86,"column":6},"end":{"line":86,"column":21}},"48":{"start":{"line":91,"column":2},"end":{"line":91,"column":12}},"49":{"start":{"line":96,"column":0},"end":{"line":98,"column":2}},"50":{"start":{"line":97,"column":2},"end":{"line":97,"column":27}},"51":{"start":{"line":105,"column":0},"end":{"line":149,"column":2}},"52":{"start":{"line":106,"column":2},"end":{"line":108,"column":3}},"53":{"start":{"line":107,"column":4},"end":{"line":107,"column":55}},"54":{"start":{"line":111,"column":2},"end":{"line":113,"column":3}},"55":{"start":{"line":112,"column":4},"end":{"line":112,"column":72}},"56":{"start":{"line":128,"column":2},"end":{"line":128,"column":45}},"57":{"start":{"line":129,"column":2},"end":{"line":131,"column":3}},"58":{"start":{"line":130,"column":4},"end":{"line":130,"column":37}},"59":{"start":{"line":133,"column":2},"end":{"line":133,"column":32}},"60":{"start":{"line":135,"column":2},"end":{"line":141,"column":4}},"61":{"start":{"line":143,"column":2},"end":{"line":148,"column":5}},"62":{"start":{"line":144,"column":4},"end":{"line":144,"column":28}},"63":{"start":{"line":144,"column":13},"end":{"line":144,"column":28}},"64":{"start":{"line":145,"column":4},"end":{"line":145,"column":43}},"65":{"start":{"line":146,"column":4},"end":{"line":146,"column":49}},"66":{"start":{"line":146,"column":30},"end":{"line":146,"column":49}},"67":{"start":{"line":147,"column":4},"end":{"line":147,"column":29}},"68":{"start":{"line":151,"column":0},"end":{"line":153,"column":2}},"69":{"start":{"line":152,"column":2},"end":{"line":152,"column":71}},"70":{"start":{"line":161,"column":0},"end":{"line":196,"column":2}},"71":{"start":{"line":162,"column":2},"end":{"line":164,"column":3}},"72":{"start":{"line":163,"column":4},"end":{"line":163,"column":51}},"73":{"start":{"line":167,"column":2},"end":{"line":169,"column":3}},"74":{"start":{"line":168,"column":4},"end":{"line":168,"column":128}},"75":{"start":{"line":171,"column":2},"end":{"line":171,"column":29}},"76":{"start":{"line":173,"column":2},"end":{"line":173,"column":45}},"77":{"start":{"line":175,"column":2},"end":{"line":179,"column":4}},"78":{"start":{"line":181,"column":2},"end":{"line":193,"column":3}},"79":{"start":{"line":182,"column":4},"end":{"line":182,"column":16}},"80":{"start":{"line":184,"column":4},"end":{"line":192,"column":5}},"81":{"start":{"line":185,"column":6},"end":{"line":185,"column":51}},"82":{"start":{"line":186,"column":6},"end":{"line":186,"column":36}},"83":{"start":{"line":187,"column":6},"end":{"line":187,"column":32}},"84":{"start":{"line":188,"column":6},"end":{"line":190,"column":9}},"85":{"start":{"line":195,"column":2},"end":{"line":195,"column":39}},"86":{"start":{"line":198,"column":0},"end":{"line":200,"column":2}},"87":{"start":{"line":199,"column":2},"end":{"line":199,"column":62}},"88":{"start":{"line":207,"column":0},"end":{"line":216,"column":2}},"89":{"start":{"line":208,"column":2},"end":{"line":208,"column":34}},"90":{"start":{"line":210,"column":2},"end":{"line":213,"column":4}},"91":{"start":{"line":215,"column":2},"end":{"line":215,"column":44}},"92":{"start":{"line":218,"column":0},"end":{"line":225,"column":2}},"93":{"start":{"line":219,"column":2},"end":{"line":219,"column":34}},"94":{"start":{"line":221,"column":2},"end":{"line":221,"column":24}},"95":{"start":{"line":222,"column":2},"end":{"line":222,"column":55}},"96":{"start":{"line":224,"column":2},"end":{"line":224,"column":42}},"97":{"start":{"line":227,"column":0},"end":{"line":237,"column":2}},"98":{"start":{"line":228,"column":2},"end":{"line":228,"column":34}},"99":{"start":{"line":230,"column":2},"end":{"line":230,"column":24}},"100":{"start":{"line":231,"column":2},"end":{"line":234,"column":5}},"101":{"start":{"line":232,"column":4},"end":{"line":232,"column":72}},"102":{"start":{"line":233,"column":4},"end":{"line":233,"column":33}},"103":{"start":{"line":236,"column":2},"end":{"line":236,"column":49}},"104":{"start":{"line":239,"column":0},"end":{"line":241,"column":2}},"105":{"start":{"line":240,"column":2},"end":{"line":240,"column":77}},"106":{"start":{"line":254,"column":0},"end":{"line":257,"column":2}},"107":{"start":{"line":255,"column":2},"end":{"line":255,"column":19}},"108":{"start":{"line":255,"column":12},"end":{"line":255,"column":19}},"109":{"start":{"line":256,"column":2},"end":{"line":256,"column":27}},"110":{"start":{"line":259,"column":0},"end":{"line":261,"column":1}},"111":{"start":{"line":260,"column":2},"end":{"line":260,"column":41}},"112":{"start":{"line":263,"column":0},"end":{"line":279,"column":2}},"113":{"start":{"line":264,"column":2},"end":{"line":264,"column":20}},"114":{"start":{"line":266,"column":2},"end":{"line":266,"column":41},"skip":true},"115":{"start":{"line":267,"column":2},"end":{"line":267,"column":45}},"116":{"start":{"line":269,"column":2},"end":{"line":277,"column":5},"skip":true},"117":{"start":{"line":278,"column":2},"end":{"line":278,"column":13}},"118":{"start":{"line":282,"column":0},"end":{"line":289,"column":3},"skip":true},"119":{"start":{"line":283,"column":2},"end":{"line":283,"column":26},"skip":true},"120":{"start":{"line":284,"column":2},"end":{"line":286,"column":3},"skip":true},"121":{"start":{"line":285,"column":4},"end":{"line":285,"column":40},"skip":true},"122":{"start":{"line":287,"column":2},"end":{"line":287,"column":64},"skip":true},"123":{"start":{"line":288,"column":2},"end":{"line":288,"column":12},"skip":true},"124":{"start":{"line":291,"column":0},"end":{"line":291,"column":29}},"125":{"start":{"line":292,"column":0},"end":{"line":292,"column":27}},"126":{"start":{"line":294,"column":0},"end":{"line":296,"column":1}},"127":{"start":{"line":295,"column":2},"end":{"line":295,"column":63}},"128":{"start":{"line":307,"column":0},"end":{"line":342,"column":1}},"129":{"start":{"line":308,"column":2},"end":{"line":308,"column":76}},"130":{"start":{"line":309,"column":2},"end":{"line":331,"column":5}},"131":{"start":{"line":310,"column":4},"end":{"line":310,"column":28}},"132":{"start":{"line":311,"column":4},"end":{"line":311,"column":20}},"133":{"start":{"line":312,"column":4},"end":{"line":330,"column":7}},"134":{"start":{"line":314,"column":6},"end":{"line":314,"column":22}},"135":{"start":{"line":316,"column":6},"end":{"line":329,"column":7}},"136":{"start":{"line":317,"column":8},"end":{"line":322,"column":9}},"137":{"start":{"line":318,"column":10},"end":{"line":318,"column":40}},"138":{"start":{"line":319,"column":10},"end":{"line":319,"column":38}},"139":{"start":{"line":321,"column":10},"end":{"line":321,"column":29}},"140":{"start":{"line":324,"column":8},"end":{"line":328,"column":9}},"141":{"start":{"line":325,"column":10},"end":{"line":325,"column":37}},"142":{"start":{"line":327,"column":10},"end":{"line":327,"column":50}},"143":{"start":{"line":332,"column":2},"end":{"line":336,"column":5}},"144":{"start":{"line":333,"column":4},"end":{"line":333,"column":55}},"145":{"start":{"line":334,"column":4},"end":{"line":334,"column":70}},"146":{"start":{"line":335,"column":4},"end":{"line":335,"column":23}},"147":{"start":{"line":338,"column":2},"end":{"line":340,"column":3}},"148":{"start":{"line":339,"column":4},"end":{"line":339,"column":44}},"149":{"start":{"line":341,"column":2},"end":{"line":341,"column":12}},"150":{"start":{"line":343,"column":0},"end":{"line":343,"column":36}},"151":{"start":{"line":358,"column":0},"end":{"line":370,"column":1}},"152":{"start":{"line":359,"column":2},"end":{"line":367,"column":4}},"153":{"start":{"line":369,"column":2},"end":{"line":369,"column":33}},"154":{"start":{"line":371,"column":0},"end":{"line":371,"column":50}},"155":{"start":{"line":373,"column":0},"end":{"line":373,"column":91}},"156":{"start":{"line":378,"column":0},"end":{"line":399,"column":1}},"157":{"start":{"line":379,"column":2},"end":{"line":379,"column":38}},"158":{"start":{"line":380,"column":2},"end":{"line":380,"column":28}},"159":{"start":{"line":381,"column":2},"end":{"line":398,"column":5}},"160":{"start":{"line":383,"column":4},"end":{"line":383,"column":77}},"161":{"start":{"line":384,"column":4},"end":{"line":384,"column":28}},"162":{"start":{"line":385,"column":4},"end":{"line":391,"column":6}},"163":{"start":{"line":393,"column":4},"end":{"line":397,"column":7}},"164":{"start":{"line":394,"column":6},"end":{"line":396,"column":7}},"165":{"start":{"line":395,"column":8},"end":{"line":395,"column":35}},"166":{"start":{"line":401,"column":0},"end":{"line":401,"column":38}},"167":{"start":{"line":407,"column":0},"end":{"line":420,"column":1}},"168":{"start":{"line":409,"column":2},"end":{"line":409,"column":88}},"169":{"start":{"line":410,"column":2},"end":{"line":410,"column":26}},"170":{"start":{"line":411,"column":2},"end":{"line":414,"column":4}},"171":{"start":{"line":415,"column":2},"end":{"line":415,"column":24}},"172":{"start":{"line":416,"column":2},"end":{"line":419,"column":5}},"173":{"start":{"line":418,"column":4},"end":{"line":418,"column":59}},"174":{"start":{"line":422,"column":0},"end":{"line":422,"column":38}},"175":{"start":{"line":432,"column":0},"end":{"line":442,"column":2}},"176":{"start":{"line":434,"column":2},"end":{"line":441,"column":5}},"177":{"start":{"line":435,"column":4},"end":{"line":440,"column":5}},"178":{"start":{"line":436,"column":6},"end":{"line":436,"column":86}},"179":{"start":{"line":437,"column":6},"end":{"line":437,"column":33}},"180":{"start":{"line":439,"column":6},"end":{"line":439,"column":42}},"181":{"start":{"line":444,"column":0},"end":{"line":444,"column":27}},"182":{"start":{"line":445,"column":0},"end":{"line":445,"column":57}}},"branchMap":{"1":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":2},"end":{"line":36,"column":2}},{"start":{"line":36,"column":2},"end":{"line":36,"column":2}}]},"2":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":2},"end":{"line":39,"column":2}},{"start":{"line":39,"column":2},"end":{"line":39,"column":2}}]},"3":{"line":47,"type":"if","locations":[{"start":{"line":47,"column":2},"end":{"line":47,"column":2}},{"start":{"line":47,"column":2},"end":{"line":47,"column":2}}]},"4":{"line":60,"type":"binary-expr","locations":[{"start":{"line":60,"column":14},"end":{"line":60,"column":30}},{"start":{"line":60,"column":34},"end":{"line":60,"column":36}}]},"5":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":2},"end":{"line":64,"column":2}},{"start":{"line":64,"column":2},"end":{"line":64,"column":2}}]},"6":{"line":68,"type":"if","locations":[{"start":{"line":68,"column":2},"end":{"line":68,"column":2}},{"start":{"line":68,"column":2},"end":{"line":68,"column":2}}]},"7":{"line":68,"type":"binary-expr","locations":[{"start":{"line":68,"column":6},"end":{"line":68,"column":19}},{"start":{"line":68,"column":23},"end":{"line":68,"column":39}},{"start":{"line":68,"column":43},"end":{"line":68,"column":71}}]},"8":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":6},"end":{"line":71,"column":6}},{"start":{"line":71,"column":6},"end":{"line":71,"column":6}}]},"9":{"line":71,"type":"binary-expr","locations":[{"start":{"line":71,"column":10},"end":{"line":71,"column":13}},{"start":{"line":71,"column":17},"end":{"line":71,"column":28}}]},"10":{"line":78,"type":"if","locations":[{"start":{"line":78,"column":2},"end":{"line":78,"column":2}},{"start":{"line":78,"column":2},"end":{"line":78,"column":2}}]},"11":{"line":78,"type":"binary-expr","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":19}},{"start":{"line":78,"column":23},"end":{"line":78,"column":39}}]},"12":{"line":81,"type":"if","locations":[{"start":{"line":81,"column":4},"end":{"line":81,"column":4}},{"start":{"line":81,"column":4},"end":{"line":81,"column":4}}]},"13":{"line":81,"type":"binary-expr","locations":[{"start":{"line":81,"column":8},"end":{"line":81,"column":13}},{"start":{"line":81,"column":17},"end":{"line":81,"column":46}}]},"14":{"line":106,"type":"if","locations":[{"start":{"line":106,"column":2},"end":{"line":106,"column":2}},{"start":{"line":106,"column":2},"end":{"line":106,"column":2}}]},"15":{"line":106,"type":"binary-expr","locations":[{"start":{"line":106,"column":6},"end":{"line":106,"column":13}},{"start":{"line":106,"column":17},"end":{"line":106,"column":37}}]},"16":{"line":111,"type":"if","locations":[{"start":{"line":111,"column":2},"end":{"line":111,"column":2}},{"start":{"line":111,"column":2},"end":{"line":111,"column":2}}]},"17":{"line":129,"type":"if","locations":[{"start":{"line":129,"column":2},"end":{"line":129,"column":2}},{"start":{"line":129,"column":2},"end":{"line":129,"column":2}}]},"18":{"line":137,"type":"binary-expr","locations":[{"start":{"line":137,"column":20},"end":{"line":137,"column":41}},{"start":{"line":137,"column":45},"end":{"line":137,"column":62}}]},"19":{"line":139,"type":"binary-expr","locations":[{"start":{"line":139,"column":15},"end":{"line":139,"column":31}},{"start":{"line":139,"column":35},"end":{"line":139,"column":52}}]},"20":{"line":140,"type":"binary-expr","locations":[{"start":{"line":140,"column":13},"end":{"line":140,"column":27}},{"start":{"line":140,"column":31},"end":{"line":140,"column":37}}]},"21":{"line":144,"type":"if","locations":[{"start":{"line":144,"column":4},"end":{"line":144,"column":4}},{"start":{"line":144,"column":4},"end":{"line":144,"column":4}}]},"22":{"line":146,"type":"if","locations":[{"start":{"line":146,"column":4},"end":{"line":146,"column":4}},{"start":{"line":146,"column":4},"end":{"line":146,"column":4}}]},"23":{"line":152,"type":"binary-expr","locations":[{"start":{"line":152,"column":22},"end":{"line":152,"column":39}},{"start":{"line":152,"column":43},"end":{"line":152,"column":70}}]},"24":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":2},"end":{"line":162,"column":2}},{"start":{"line":162,"column":2},"end":{"line":162,"column":2}}]},"25":{"line":162,"type":"binary-expr","locations":[{"start":{"line":162,"column":6},"end":{"line":162,"column":13}},{"start":{"line":162,"column":17},"end":{"line":162,"column":33}}]},"26":{"line":167,"type":"if","locations":[{"start":{"line":167,"column":2},"end":{"line":167,"column":2}},{"start":{"line":167,"column":2},"end":{"line":167,"column":2}}]},"27":{"line":177,"type":"binary-expr","locations":[{"start":{"line":177,"column":22},"end":{"line":177,"column":45}},{"start":{"line":177,"column":49},"end":{"line":177,"column":55}}]},"28":{"line":181,"type":"if","locations":[{"start":{"line":181,"column":2},"end":{"line":181,"column":2}},{"start":{"line":181,"column":2},"end":{"line":181,"column":2}}]},"29":{"line":199,"type":"binary-expr","locations":[{"start":{"line":199,"column":19},"end":{"line":199,"column":33}},{"start":{"line":199,"column":37},"end":{"line":199,"column":61}}]},"30":{"line":240,"type":"binary-expr","locations":[{"start":{"line":240,"column":24},"end":{"line":240,"column":43}},{"start":{"line":240,"column":47},"end":{"line":240,"column":76}}]},"31":{"line":255,"type":"if","locations":[{"start":{"line":255,"column":2},"end":{"line":255,"column":2}},{"start":{"line":255,"column":2},"end":{"line":255,"column":2}}]},"32":{"line":264,"type":"binary-expr","locations":[{"start":{"line":264,"column":9},"end":{"line":264,"column":13}},{"start":{"line":264,"column":17},"end":{"line":264,"column":19}}]},"33":{"line":266,"type":"binary-expr","locations":[{"start":{"line":266,"column":16},"end":{"line":266,"column":34},"skip":true},{"start":{"line":266,"column":38},"end":{"line":266,"column":40},"skip":true}]},"34":{"line":270,"type":"binary-expr","locations":[{"start":{"line":270,"column":10},"end":{"line":270,"column":30},"skip":true},{"start":{"line":270,"column":34},"end":{"line":270,"column":60},"skip":true},{"start":{"line":270,"column":64},"end":{"line":270,"column":73},"skip":true}]},"35":{"line":271,"type":"binary-expr","locations":[{"start":{"line":271,"column":11},"end":{"line":271,"column":39},"skip":true},{"start":{"line":271,"column":43},"end":{"line":271,"column":64},"skip":true},{"start":{"line":271,"column":68},"end":{"line":271,"column":74},"skip":true}]},"36":{"line":274,"type":"binary-expr","locations":[{"start":{"line":274,"column":20},"end":{"line":274,"column":47},"skip":true},{"start":{"line":274,"column":51},"end":{"line":274,"column":53},"skip":true}]},"37":{"line":275,"type":"cond-expr","locations":[{"start":{"line":275,"column":32},"end":{"line":275,"column":36},"skip":true},{"start":{"line":275,"column":39},"end":{"line":275,"column":45},"skip":true}]},"38":{"line":284,"type":"if","locations":[{"start":{"line":284,"column":2},"end":{"line":284,"column":2},"skip":true},{"start":{"line":284,"column":2},"end":{"line":284,"column":2},"skip":true}]},"39":{"line":295,"type":"cond-expr","locations":[{"start":{"line":295,"column":50},"end":{"line":295,"column":55}},{"start":{"line":295,"column":58},"end":{"line":295,"column":62}}]},"40":{"line":295,"type":"binary-expr","locations":[{"start":{"line":295,"column":10},"end":{"line":295,"column":22}},{"start":{"line":295,"column":26},"end":{"line":295,"column":46}}]},"41":{"line":308,"type":"binary-expr","locations":[{"start":{"line":308,"column":20},"end":{"line":308,"column":35}},{"start":{"line":308,"column":39},"end":{"line":308,"column":75}}]},"42":{"line":316,"type":"if","locations":[{"start":{"line":316,"column":6},"end":{"line":316,"column":6}},{"start":{"line":316,"column":6},"end":{"line":316,"column":6}}]},"43":{"line":316,"type":"binary-expr","locations":[{"start":{"line":316,"column":10},"end":{"line":316,"column":27}},{"start":{"line":316,"column":31},"end":{"line":316,"column":53}}]},"44":{"line":324,"type":"if","locations":[{"start":{"line":324,"column":8},"end":{"line":324,"column":8}},{"start":{"line":324,"column":8},"end":{"line":324,"column":8}}]},"45":{"line":338,"type":"if","locations":[{"start":{"line":338,"column":2},"end":{"line":338,"column":2}},{"start":{"line":338,"column":2},"end":{"line":338,"column":2}}]},"46":{"line":394,"type":"if","locations":[{"start":{"line":394,"column":6},"end":{"line":394,"column":6}},{"start":{"line":394,"column":6},"end":{"line":394,"column":6}}]},"47":{"line":435,"type":"if","locations":[{"start":{"line":435,"column":4},"end":{"line":435,"column":4}},{"start":{"line":435,"column":4},"end":{"line":435,"column":4}}]}}}}
{"/Users/Admin/work/aws-lambda-helper/lib/index.js":{"path":"/Users/Admin/work/aws-lambda-helper/lib/index.js","s":{"1":1,"2":1,"3":1,"4":1,"5":31,"6":31,"7":31,"8":31,"9":31,"10":31,"11":30,"12":30,"13":30,"14":1,"15":33,"16":1,"17":32,"18":32,"19":4,"20":4,"21":4,"22":4,"23":4,"24":28,"25":26,"26":26,"27":26,"28":26,"29":2,"30":1,"31":49,"32":49,"33":49,"34":8,"35":41,"36":3,"37":3,"38":3,"39":2,"40":39,"41":3,"42":3,"43":3,"44":2,"45":2,"46":2,"47":2,"48":37,"49":1,"50":2,"51":1,"52":6,"53":1,"54":5,"55":4,"56":5,"57":5,"58":1,"59":5,"60":5,"61":5,"62":5,"63":1,"64":4,"65":4,"66":1,"67":3,"68":1,"69":6,"70":1,"71":9,"72":1,"73":8,"74":1,"75":8,"76":8,"77":8,"78":8,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":8,"86":1,"87":9,"88":1,"89":2,"90":2,"91":2,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":2,"102":2,"103":1,"104":1,"105":5,"106":1,"107":2,"108":1,"109":1,"110":1,"111":2,"112":1,"113":36,"114":36,"115":36,"116":36,"117":36,"118":1,"119":0,"120":0,"121":0,"122":0,"123":0,"124":1,"125":1,"126":1,"127":9,"128":1,"129":9,"130":9,"131":8,"132":8,"133":8,"134":58,"135":8,"136":3,"137":3,"138":2,"139":1,"140":5,"141":4,"142":1,"143":9,"144":1,"145":1,"146":1,"147":9,"148":5,"149":9,"150":1,"151":1,"152":5,"153":5,"154":5,"155":5,"156":5,"157":1,"158":1,"159":6,"160":1,"161":5,"162":1,"163":1,"164":1,"165":3,"166":3,"167":3,"168":7,"169":7,"170":7,"171":7,"172":7,"173":3,"174":1,"175":1,"176":1,"177":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":3,"185":3,"186":1,"187":1,"188":2,"189":1,"190":1},"b":{"1":[1,32],"2":[4,28],"3":[26,2],"4":[49,36],"5":[8,41],"6":[3,38],"7":[41,5,5],"8":[2,1],"9":[3,3],"10":[3,36],"11":[39,3],"12":[2,1],"13":[3,2],"14":[1,5],"15":[6,5],"16":[4,1],"17":[1,4],"18":[5,5],"19":[5,5],"20":[5,5],"21":[1,4],"22":[1,3],"23":[6,2],"24":[1,8],"25":[9,8],"26":[1,7],"27":[8,3],"28":[1,7],"29":[9,2],"30":[5,1],"31":[1,1],"32":[36,31],"33":[36,0],"34":[36,24,0],"35":[36,36,36],"36":[36,26],"37":[35,1],"38":[0,0],"39":[2,7],"40":[9,2],"41":[9,4],"42":[3,5],"43":[8,4],"44":[4,1],"45":[5,4],"46":[5,0],"47":[1,5],"48":[3,4],"49":[1,2]},"f":{"1":31,"2":33,"3":49,"4":2,"5":2,"6":6,"7":5,"8":6,"9":9,"10":9,"11":2,"12":1,"13":1,"14":2,"15":5,"16":2,"17":2,"18":36,"19":0,"20":9,"21":9,"22":8,"23":58,"24":8,"25":1,"26":5,"27":6,"28":3,"29":7,"30":7,"31":1,"32":1,"33":3,"34":3},"fnMap":{"1":{"name":"init","line":23,"loc":{"start":{"line":23,"column":0},"end":{"line":23,"column":31}}},"2":{"name":"(anonymous_2)","line":35,"loc":{"start":{"line":35,"column":37},"end":{"line":35,"column":67}}},"3":{"name":"(anonymous_3)","line":59,"loc":{"start":{"line":59,"column":29},"end":{"line":59,"column":41}}},"4":{"name":"(anonymous_4)","line":83,"loc":{"start":{"line":83,"column":29},"end":{"line":83,"column":44}}},"5":{"name":"(anonymous_5)","line":96,"loc":{"start":{"line":96,"column":27},"end":{"line":96,"column":46}}},"6":{"name":"(anonymous_6)","line":105,"loc":{"start":{"line":105,"column":26},"end":{"line":105,"column":48}}},"7":{"name":"(anonymous_7)","line":143,"loc":{"start":{"line":143,"column":37},"end":{"line":143,"column":58}}},"8":{"name":"(anonymous_8)","line":151,"loc":{"start":{"line":151,"column":30},"end":{"line":151,"column":42}}},"9":{"name":"(anonymous_9)","line":161,"loc":{"start":{"line":161,"column":24},"end":{"line":161,"column":46}}},"10":{"name":"(anonymous_10)","line":198,"loc":{"start":{"line":198,"column":27},"end":{"line":198,"column":39}}},"11":{"name":"(anonymous_11)","line":207,"loc":{"start":{"line":207,"column":29},"end":{"line":207,"column":51}}},"12":{"name":"(anonymous_12)","line":218,"loc":{"start":{"line":218,"column":27},"end":{"line":218,"column":49}}},"13":{"name":"(anonymous_13)","line":227,"loc":{"start":{"line":227,"column":34},"end":{"line":227,"column":56}}},"14":{"name":"(anonymous_14)","line":231,"loc":{"start":{"line":231,"column":34},"end":{"line":231,"column":51}}},"15":{"name":"(anonymous_15)","line":239,"loc":{"start":{"line":239,"column":32},"end":{"line":239,"column":44}}},"16":{"name":"(anonymous_16)","line":254,"loc":{"start":{"line":254,"column":24},"end":{"line":254,"column":55}}},"17":{"name":"clone","line":259,"loc":{"start":{"line":259,"column":0},"end":{"line":259,"column":21}}},"18":{"name":"(anonymous_18)","line":263,"loc":{"start":{"line":263,"column":19},"end":{"line":263,"column":35}}},"19":{"name":"(anonymous_19)","line":282,"loc":{"start":{"line":282,"column":32},"end":{"line":282,"column":47}},"skip":true},"20":{"name":"proto","line":294,"loc":{"start":{"line":294,"column":0},"end":{"line":294,"column":25}}},"21":{"name":"httpRequest","line":307,"loc":{"start":{"line":307,"column":0},"end":{"line":307,"column":41}}},"22":{"name":"(anonymous_22)","line":309,"loc":{"start":{"line":309,"column":44},"end":{"line":309,"column":59}}},"23":{"name":"(anonymous_23)","line":312,"loc":{"start":{"line":312,"column":19},"end":{"line":312,"column":36}}},"24":{"name":"(anonymous_24)","line":315,"loc":{"start":{"line":315,"column":17},"end":{"line":315,"column":29}}},"25":{"name":"(anonymous_25)","line":332,"loc":{"start":{"line":332,"column":18},"end":{"line":332,"column":31}}},"26":{"name":"pushToSocketServer","line":358,"loc":{"start":{"line":358,"column":0},"end":{"line":358,"column":47}}},"27":{"name":"pushToSNSTopic","line":390,"loc":{"start":{"line":390,"column":0},"end":{"line":390,"column":43}}},"28":{"name":"saveRecord","line":411,"loc":{"start":{"line":411,"column":0},"end":{"line":411,"column":39}}},"29":{"name":"(anonymous_29)","line":414,"loc":{"start":{"line":414,"column":23},"end":{"line":414,"column":39}}},"30":{"name":"(anonymous_30)","line":426,"loc":{"start":{"line":426,"column":34},"end":{"line":426,"column":55}}},"31":{"name":"getRecord","line":440,"loc":{"start":{"line":440,"column":0},"end":{"line":440,"column":38}}},"32":{"name":"(anonymous_32)","line":449,"loc":{"start":{"line":449,"column":35},"end":{"line":449,"column":56}}},"33":{"name":"(anonymous_33)","line":465,"loc":{"start":{"line":465,"column":31},"end":{"line":465,"column":59}}},"34":{"name":"(anonymous_34)","line":467,"loc":{"start":{"line":467,"column":29},"end":{"line":467,"column":50}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":29}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":31}},"3":{"start":{"line":6,"column":0},"end":{"line":20,"column":2}},"4":{"start":{"line":23,"column":0},"end":{"line":33,"column":1}},"5":{"start":{"line":24,"column":2},"end":{"line":24,"column":31}},"6":{"start":{"line":25,"column":2},"end":{"line":25,"column":27}},"7":{"start":{"line":26,"column":2},"end":{"line":26,"column":27}},"8":{"start":{"line":27,"column":2},"end":{"line":27,"column":24}},"9":{"start":{"line":28,"column":2},"end":{"line":28,"column":29}},"10":{"start":{"line":29,"column":2},"end":{"line":29,"column":65}},"11":{"start":{"line":30,"column":2},"end":{"line":30,"column":50}},"12":{"start":{"line":31,"column":2},"end":{"line":31,"column":37}},"13":{"start":{"line":32,"column":2},"end":{"line":32,"column":19}},"14":{"start":{"line":35,"column":0},"end":{"line":54,"column":2}},"15":{"start":{"line":36,"column":2},"end":{"line":36,"column":109}},"16":{"start":{"line":36,"column":27},"end":{"line":36,"column":109}},"17":{"start":{"line":37,"column":2},"end":{"line":37,"column":62}},"18":{"start":{"line":39,"column":2},"end":{"line":45,"column":3}},"19":{"start":{"line":40,"column":4},"end":{"line":40,"column":50}},"20":{"start":{"line":41,"column":4},"end":{"line":41,"column":51}},"21":{"start":{"line":42,"column":4},"end":{"line":42,"column":34}},"22":{"start":{"line":43,"column":4},"end":{"line":43,"column":25}},"23":{"start":{"line":44,"column":4},"end":{"line":44,"column":21}},"24":{"start":{"line":47,"column":2},"end":{"line":52,"column":3}},"25":{"start":{"line":48,"column":4},"end":{"line":48,"column":50}},"26":{"start":{"line":49,"column":4},"end":{"line":49,"column":51}},"27":{"start":{"line":50,"column":4},"end":{"line":50,"column":67}},"28":{"start":{"line":51,"column":4},"end":{"line":51,"column":21}},"29":{"start":{"line":53,"column":2},"end":{"line":53,"column":81}},"30":{"start":{"line":59,"column":0},"end":{"line":92,"column":2}},"31":{"start":{"line":60,"column":2},"end":{"line":60,"column":37}},"32":{"start":{"line":63,"column":2},"end":{"line":63,"column":30}},"33":{"start":{"line":64,"column":2},"end":{"line":66,"column":3}},"34":{"start":{"line":65,"column":4},"end":{"line":65,"column":19}},"35":{"start":{"line":68,"column":2},"end":{"line":76,"column":3}},"36":{"start":{"line":69,"column":4},"end":{"line":75,"column":5}},"37":{"start":{"line":70,"column":6},"end":{"line":70,"column":57}},"38":{"start":{"line":71,"column":6},"end":{"line":73,"column":7}},"39":{"start":{"line":72,"column":8},"end":{"line":72,"column":27}},"40":{"start":{"line":78,"column":2},"end":{"line":88,"column":3}},"41":{"start":{"line":79,"column":4},"end":{"line":79,"column":34}},"42":{"start":{"line":80,"column":4},"end":{"line":80,"column":45}},"43":{"start":{"line":81,"column":4},"end":{"line":87,"column":5}},"44":{"start":{"line":82,"column":6},"end":{"line":82,"column":19}},"45":{"start":{"line":83,"column":6},"end":{"line":85,"column":9}},"46":{"start":{"line":84,"column":8},"end":{"line":84,"column":40}},"47":{"start":{"line":86,"column":6},"end":{"line":86,"column":21}},"48":{"start":{"line":91,"column":2},"end":{"line":91,"column":12}},"49":{"start":{"line":96,"column":0},"end":{"line":98,"column":2}},"50":{"start":{"line":97,"column":2},"end":{"line":97,"column":27}},"51":{"start":{"line":105,"column":0},"end":{"line":149,"column":2}},"52":{"start":{"line":106,"column":2},"end":{"line":108,"column":3}},"53":{"start":{"line":107,"column":4},"end":{"line":107,"column":55}},"54":{"start":{"line":111,"column":2},"end":{"line":113,"column":3}},"55":{"start":{"line":112,"column":4},"end":{"line":112,"column":72}},"56":{"start":{"line":128,"column":2},"end":{"line":128,"column":45}},"57":{"start":{"line":129,"column":2},"end":{"line":131,"column":3}},"58":{"start":{"line":130,"column":4},"end":{"line":130,"column":37}},"59":{"start":{"line":133,"column":2},"end":{"line":133,"column":32}},"60":{"start":{"line":135,"column":2},"end":{"line":141,"column":4}},"61":{"start":{"line":143,"column":2},"end":{"line":148,"column":5}},"62":{"start":{"line":144,"column":4},"end":{"line":144,"column":28}},"63":{"start":{"line":144,"column":13},"end":{"line":144,"column":28}},"64":{"start":{"line":145,"column":4},"end":{"line":145,"column":43}},"65":{"start":{"line":146,"column":4},"end":{"line":146,"column":49}},"66":{"start":{"line":146,"column":30},"end":{"line":146,"column":49}},"67":{"start":{"line":147,"column":4},"end":{"line":147,"column":29}},"68":{"start":{"line":151,"column":0},"end":{"line":153,"column":2}},"69":{"start":{"line":152,"column":2},"end":{"line":152,"column":71}},"70":{"start":{"line":161,"column":0},"end":{"line":196,"column":2}},"71":{"start":{"line":162,"column":2},"end":{"line":164,"column":3}},"72":{"start":{"line":163,"column":4},"end":{"line":163,"column":51}},"73":{"start":{"line":167,"column":2},"end":{"line":169,"column":3}},"74":{"start":{"line":168,"column":4},"end":{"line":168,"column":128}},"75":{"start":{"line":171,"column":2},"end":{"line":171,"column":29}},"76":{"start":{"line":173,"column":2},"end":{"line":173,"column":45}},"77":{"start":{"line":175,"column":2},"end":{"line":179,"column":4}},"78":{"start":{"line":181,"column":2},"end":{"line":193,"column":3}},"79":{"start":{"line":182,"column":4},"end":{"line":182,"column":16}},"80":{"start":{"line":184,"column":4},"end":{"line":192,"column":5}},"81":{"start":{"line":185,"column":6},"end":{"line":185,"column":51}},"82":{"start":{"line":186,"column":6},"end":{"line":186,"column":36}},"83":{"start":{"line":187,"column":6},"end":{"line":187,"column":32}},"84":{"start":{"line":188,"column":6},"end":{"line":190,"column":9}},"85":{"start":{"line":195,"column":2},"end":{"line":195,"column":39}},"86":{"start":{"line":198,"column":0},"end":{"line":200,"column":2}},"87":{"start":{"line":199,"column":2},"end":{"line":199,"column":62}},"88":{"start":{"line":207,"column":0},"end":{"line":216,"column":2}},"89":{"start":{"line":208,"column":2},"end":{"line":208,"column":34}},"90":{"start":{"line":210,"column":2},"end":{"line":213,"column":4}},"91":{"start":{"line":215,"column":2},"end":{"line":215,"column":44}},"92":{"start":{"line":218,"column":0},"end":{"line":225,"column":2}},"93":{"start":{"line":219,"column":2},"end":{"line":219,"column":34}},"94":{"start":{"line":221,"column":2},"end":{"line":221,"column":24}},"95":{"start":{"line":222,"column":2},"end":{"line":222,"column":55}},"96":{"start":{"line":224,"column":2},"end":{"line":224,"column":42}},"97":{"start":{"line":227,"column":0},"end":{"line":237,"column":2}},"98":{"start":{"line":228,"column":2},"end":{"line":228,"column":34}},"99":{"start":{"line":230,"column":2},"end":{"line":230,"column":24}},"100":{"start":{"line":231,"column":2},"end":{"line":234,"column":5}},"101":{"start":{"line":232,"column":4},"end":{"line":232,"column":72}},"102":{"start":{"line":233,"column":4},"end":{"line":233,"column":33}},"103":{"start":{"line":236,"column":2},"end":{"line":236,"column":49}},"104":{"start":{"line":239,"column":0},"end":{"line":241,"column":2}},"105":{"start":{"line":240,"column":2},"end":{"line":240,"column":77}},"106":{"start":{"line":254,"column":0},"end":{"line":257,"column":2}},"107":{"start":{"line":255,"column":2},"end":{"line":255,"column":19}},"108":{"start":{"line":255,"column":12},"end":{"line":255,"column":19}},"109":{"start":{"line":256,"column":2},"end":{"line":256,"column":27}},"110":{"start":{"line":259,"column":0},"end":{"line":261,"column":1}},"111":{"start":{"line":260,"column":2},"end":{"line":260,"column":41}},"112":{"start":{"line":263,"column":0},"end":{"line":279,"column":2}},"113":{"start":{"line":264,"column":2},"end":{"line":264,"column":20}},"114":{"start":{"line":266,"column":2},"end":{"line":266,"column":41},"skip":true},"115":{"start":{"line":267,"column":2},"end":{"line":267,"column":45}},"116":{"start":{"line":269,"column":2},"end":{"line":277,"column":5},"skip":true},"117":{"start":{"line":278,"column":2},"end":{"line":278,"column":13}},"118":{"start":{"line":282,"column":0},"end":{"line":289,"column":3},"skip":true},"119":{"start":{"line":283,"column":2},"end":{"line":283,"column":26},"skip":true},"120":{"start":{"line":284,"column":2},"end":{"line":286,"column":3},"skip":true},"121":{"start":{"line":285,"column":4},"end":{"line":285,"column":40},"skip":true},"122":{"start":{"line":287,"column":2},"end":{"line":287,"column":64},"skip":true},"123":{"start":{"line":288,"column":2},"end":{"line":288,"column":12},"skip":true},"124":{"start":{"line":291,"column":0},"end":{"line":291,"column":29}},"125":{"start":{"line":292,"column":0},"end":{"line":292,"column":27}},"126":{"start":{"line":294,"column":0},"end":{"line":296,"column":1}},"127":{"start":{"line":295,"column":2},"end":{"line":295,"column":63}},"128":{"start":{"line":307,"column":0},"end":{"line":342,"column":1}},"129":{"start":{"line":308,"column":2},"end":{"line":308,"column":76}},"130":{"start":{"line":309,"column":2},"end":{"line":331,"column":5}},"131":{"start":{"line":310,"column":4},"end":{"line":310,"column":28}},"132":{"start":{"line":311,"column":4},"end":{"line":311,"column":20}},"133":{"start":{"line":312,"column":4},"end":{"line":330,"column":7}},"134":{"start":{"line":314,"column":6},"end":{"line":314,"column":22}},"135":{"start":{"line":316,"column":6},"end":{"line":329,"column":7}},"136":{"start":{"line":317,"column":8},"end":{"line":322,"column":9}},"137":{"start":{"line":318,"column":10},"end":{"line":318,"column":40}},"138":{"start":{"line":319,"column":10},"end":{"line":319,"column":38}},"139":{"start":{"line":321,"column":10},"end":{"line":321,"column":29}},"140":{"start":{"line":324,"column":8},"end":{"line":328,"column":9}},"141":{"start":{"line":325,"column":10},"end":{"line":325,"column":37}},"142":{"start":{"line":327,"column":10},"end":{"line":327,"column":50}},"143":{"start":{"line":332,"column":2},"end":{"line":336,"column":5}},"144":{"start":{"line":333,"column":4},"end":{"line":333,"column":55}},"145":{"start":{"line":334,"column":4},"end":{"line":334,"column":70}},"146":{"start":{"line":335,"column":4},"end":{"line":335,"column":23}},"147":{"start":{"line":338,"column":2},"end":{"line":340,"column":3}},"148":{"start":{"line":339,"column":4},"end":{"line":339,"column":44}},"149":{"start":{"line":341,"column":2},"end":{"line":341,"column":12}},"150":{"start":{"line":343,"column":0},"end":{"line":343,"column":36}},"151":{"start":{"line":358,"column":0},"end":{"line":374,"column":1}},"152":{"start":{"line":359,"column":2},"end":{"line":367,"column":4}},"153":{"start":{"line":369,"column":2},"end":{"line":372,"column":5}},"154":{"start":{"line":371,"column":4},"end":{"line":371,"column":115}},"155":{"start":{"line":371,"column":15},"end":{"line":371,"column":113}},"156":{"start":{"line":373,"column":2},"end":{"line":373,"column":33}},"157":{"start":{"line":375,"column":0},"end":{"line":375,"column":50}},"158":{"start":{"line":390,"column":0},"end":{"line":401,"column":1}},"159":{"start":{"line":391,"column":2},"end":{"line":393,"column":3}},"160":{"start":{"line":392,"column":4},"end":{"line":392,"column":69}},"161":{"start":{"line":394,"column":2},"end":{"line":400,"column":15}},"162":{"start":{"line":403,"column":0},"end":{"line":403,"column":42}},"163":{"start":{"line":405,"column":0},"end":{"line":406,"column":54}},"164":{"start":{"line":411,"column":0},"end":{"line":432,"column":1}},"165":{"start":{"line":412,"column":2},"end":{"line":412,"column":38}},"166":{"start":{"line":413,"column":2},"end":{"line":413,"column":28}},"167":{"start":{"line":414,"column":2},"end":{"line":431,"column":5}},"168":{"start":{"line":416,"column":4},"end":{"line":416,"column":77}},"169":{"start":{"line":417,"column":4},"end":{"line":417,"column":28}},"170":{"start":{"line":418,"column":4},"end":{"line":424,"column":6}},"171":{"start":{"line":426,"column":4},"end":{"line":430,"column":7}},"172":{"start":{"line":427,"column":6},"end":{"line":429,"column":7}},"173":{"start":{"line":428,"column":8},"end":{"line":428,"column":35}},"174":{"start":{"line":434,"column":0},"end":{"line":434,"column":38}},"175":{"start":{"line":440,"column":0},"end":{"line":453,"column":1}},"176":{"start":{"line":442,"column":2},"end":{"line":442,"column":88}},"177":{"start":{"line":443,"column":2},"end":{"line":443,"column":26}},"178":{"start":{"line":444,"column":2},"end":{"line":447,"column":4}},"179":{"start":{"line":448,"column":2},"end":{"line":448,"column":24}},"180":{"start":{"line":449,"column":2},"end":{"line":452,"column":5}},"181":{"start":{"line":451,"column":4},"end":{"line":451,"column":59}},"182":{"start":{"line":455,"column":0},"end":{"line":455,"column":38}},"183":{"start":{"line":465,"column":0},"end":{"line":475,"column":2}},"184":{"start":{"line":467,"column":2},"end":{"line":474,"column":5}},"185":{"start":{"line":468,"column":4},"end":{"line":473,"column":5}},"186":{"start":{"line":469,"column":6},"end":{"line":469,"column":86}},"187":{"start":{"line":470,"column":6},"end":{"line":470,"column":33}},"188":{"start":{"line":472,"column":6},"end":{"line":472,"column":42}},"189":{"start":{"line":477,"column":0},"end":{"line":477,"column":27}},"190":{"start":{"line":478,"column":0},"end":{"line":478,"column":57}}},"branchMap":{"1":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":2},"end":{"line":36,"column":2}},{"start":{"line":36,"column":2},"end":{"line":36,"column":2}}]},"2":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":2},"end":{"line":39,"column":2}},{"start":{"line":39,"column":2},"end":{"line":39,"column":2}}]},"3":{"line":47,"type":"if","locations":[{"start":{"line":47,"column":2},"end":{"line":47,"column":2}},{"start":{"line":47,"column":2},"end":{"line":47,"column":2}}]},"4":{"line":60,"type":"binary-expr","locations":[{"start":{"line":60,"column":14},"end":{"line":60,"column":30}},{"start":{"line":60,"column":34},"end":{"line":60,"column":36}}]},"5":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":2},"end":{"line":64,"column":2}},{"start":{"line":64,"column":2},"end":{"line":64,"column":2}}]},"6":{"line":68,"type":"if","locations":[{"start":{"line":68,"column":2},"end":{"line":68,"column":2}},{"start":{"line":68,"column":2},"end":{"line":68,"column":2}}]},"7":{"line":68,"type":"binary-expr","locations":[{"start":{"line":68,"column":6},"end":{"line":68,"column":19}},{"start":{"line":68,"column":23},"end":{"line":68,"column":39}},{"start":{"line":68,"column":43},"end":{"line":68,"column":71}}]},"8":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":6},"end":{"line":71,"column":6}},{"start":{"line":71,"column":6},"end":{"line":71,"column":6}}]},"9":{"line":71,"type":"binary-expr","locations":[{"start":{"line":71,"column":10},"end":{"line":71,"column":13}},{"start":{"line":71,"column":17},"end":{"line":71,"column":28}}]},"10":{"line":78,"type":"if","locations":[{"start":{"line":78,"column":2},"end":{"line":78,"column":2}},{"start":{"line":78,"column":2},"end":{"line":78,"column":2}}]},"11":{"line":78,"type":"binary-expr","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":19}},{"start":{"line":78,"column":23},"end":{"line":78,"column":39}}]},"12":{"line":81,"type":"if","locations":[{"start":{"line":81,"column":4},"end":{"line":81,"column":4}},{"start":{"line":81,"column":4},"end":{"line":81,"column":4}}]},"13":{"line":81,"type":"binary-expr","locations":[{"start":{"line":81,"column":8},"end":{"line":81,"column":13}},{"start":{"line":81,"column":17},"end":{"line":81,"column":46}}]},"14":{"line":106,"type":"if","locations":[{"start":{"line":106,"column":2},"end":{"line":106,"column":2}},{"start":{"line":106,"column":2},"end":{"line":106,"column":2}}]},"15":{"line":106,"type":"binary-expr","locations":[{"start":{"line":106,"column":6},"end":{"line":106,"column":13}},{"start":{"line":106,"column":17},"end":{"line":106,"column":37}}]},"16":{"line":111,"type":"if","locations":[{"start":{"line":111,"column":2},"end":{"line":111,"column":2}},{"start":{"line":111,"column":2},"end":{"line":111,"column":2}}]},"17":{"line":129,"type":"if","locations":[{"start":{"line":129,"column":2},"end":{"line":129,"column":2}},{"start":{"line":129,"column":2},"end":{"line":129,"column":2}}]},"18":{"line":137,"type":"binary-expr","locations":[{"start":{"line":137,"column":20},"end":{"line":137,"column":41}},{"start":{"line":137,"column":45},"end":{"line":137,"column":62}}]},"19":{"line":139,"type":"binary-expr","locations":[{"start":{"line":139,"column":15},"end":{"line":139,"column":31}},{"start":{"line":139,"column":35},"end":{"line":139,"column":52}}]},"20":{"line":140,"type":"binary-expr","locations":[{"start":{"line":140,"column":13},"end":{"line":140,"column":27}},{"start":{"line":140,"column":31},"end":{"line":140,"column":37}}]},"21":{"line":144,"type":"if","locations":[{"start":{"line":144,"column":4},"end":{"line":144,"column":4}},{"start":{"line":144,"column":4},"end":{"line":144,"column":4}}]},"22":{"line":146,"type":"if","locations":[{"start":{"line":146,"column":4},"end":{"line":146,"column":4}},{"start":{"line":146,"column":4},"end":{"line":146,"column":4}}]},"23":{"line":152,"type":"binary-expr","locations":[{"start":{"line":152,"column":22},"end":{"line":152,"column":39}},{"start":{"line":152,"column":43},"end":{"line":152,"column":70}}]},"24":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":2},"end":{"line":162,"column":2}},{"start":{"line":162,"column":2},"end":{"line":162,"column":2}}]},"25":{"line":162,"type":"binary-expr","locations":[{"start":{"line":162,"column":6},"end":{"line":162,"column":13}},{"start":{"line":162,"column":17},"end":{"line":162,"column":33}}]},"26":{"line":167,"type":"if","locations":[{"start":{"line":167,"column":2},"end":{"line":167,"column":2}},{"start":{"line":167,"column":2},"end":{"line":167,"column":2}}]},"27":{"line":177,"type":"binary-expr","locations":[{"start":{"line":177,"column":22},"end":{"line":177,"column":45}},{"start":{"line":177,"column":49},"end":{"line":177,"column":55}}]},"28":{"line":181,"type":"if","locations":[{"start":{"line":181,"column":2},"end":{"line":181,"column":2}},{"start":{"line":181,"column":2},"end":{"line":181,"column":2}}]},"29":{"line":199,"type":"binary-expr","locations":[{"start":{"line":199,"column":19},"end":{"line":199,"column":33}},{"start":{"line":199,"column":37},"end":{"line":199,"column":61}}]},"30":{"line":240,"type":"binary-expr","locations":[{"start":{"line":240,"column":24},"end":{"line":240,"column":43}},{"start":{"line":240,"column":47},"end":{"line":240,"column":76}}]},"31":{"line":255,"type":"if","locations":[{"start":{"line":255,"column":2},"end":{"line":255,"column":2}},{"start":{"line":255,"column":2},"end":{"line":255,"column":2}}]},"32":{"line":264,"type":"binary-expr","locations":[{"start":{"line":264,"column":9},"end":{"line":264,"column":13}},{"start":{"line":264,"column":17},"end":{"line":264,"column":19}}]},"33":{"line":266,"type":"binary-expr","locations":[{"start":{"line":266,"column":16},"end":{"line":266,"column":34},"skip":true},{"start":{"line":266,"column":38},"end":{"line":266,"column":40},"skip":true}]},"34":{"line":270,"type":"binary-expr","locations":[{"start":{"line":270,"column":10},"end":{"line":270,"column":30},"skip":true},{"start":{"line":270,"column":34},"end":{"line":270,"column":60},"skip":true},{"start":{"line":270,"column":64},"end":{"line":270,"column":73},"skip":true}]},"35":{"line":271,"type":"binary-expr","locations":[{"start":{"line":271,"column":11},"end":{"line":271,"column":39},"skip":true},{"start":{"line":271,"column":43},"end":{"line":271,"column":64},"skip":true},{"start":{"line":271,"column":68},"end":{"line":271,"column":74},"skip":true}]},"36":{"line":274,"type":"binary-expr","locations":[{"start":{"line":274,"column":20},"end":{"line":274,"column":47},"skip":true},{"start":{"line":274,"column":51},"end":{"line":274,"column":53},"skip":true}]},"37":{"line":275,"type":"cond-expr","locations":[{"start":{"line":275,"column":32},"end":{"line":275,"column":36},"skip":true},{"start":{"line":275,"column":39},"end":{"line":275,"column":45},"skip":true}]},"38":{"line":284,"type":"if","locations":[{"start":{"line":284,"column":2},"end":{"line":284,"column":2},"skip":true},{"start":{"line":284,"column":2},"end":{"line":284,"column":2},"skip":true}]},"39":{"line":295,"type":"cond-expr","locations":[{"start":{"line":295,"column":50},"end":{"line":295,"column":55}},{"start":{"line":295,"column":58},"end":{"line":295,"column":62}}]},"40":{"line":295,"type":"binary-expr","locations":[{"start":{"line":295,"column":10},"end":{"line":295,"column":22}},{"start":{"line":295,"column":26},"end":{"line":295,"column":46}}]},"41":{"line":308,"type":"binary-expr","locations":[{"start":{"line":308,"column":20},"end":{"line":308,"column":35}},{"start":{"line":308,"column":39},"end":{"line":308,"column":75}}]},"42":{"line":316,"type":"if","locations":[{"start":{"line":316,"column":6},"end":{"line":316,"column":6}},{"start":{"line":316,"column":6},"end":{"line":316,"column":6}}]},"43":{"line":316,"type":"binary-expr","locations":[{"start":{"line":316,"column":10},"end":{"line":316,"column":27}},{"start":{"line":316,"column":31},"end":{"line":316,"column":53}}]},"44":{"line":324,"type":"if","locations":[{"start":{"line":324,"column":8},"end":{"line":324,"column":8}},{"start":{"line":324,"column":8},"end":{"line":324,"column":8}}]},"45":{"line":338,"type":"if","locations":[{"start":{"line":338,"column":2},"end":{"line":338,"column":2}},{"start":{"line":338,"column":2},"end":{"line":338,"column":2}}]},"46":{"line":371,"type":"if","locations":[{"start":{"line":371,"column":4},"end":{"line":371,"column":4}},{"start":{"line":371,"column":4},"end":{"line":371,"column":4},"skip":true}]},"47":{"line":391,"type":"if","locations":[{"start":{"line":391,"column":2},"end":{"line":391,"column":2}},{"start":{"line":391,"column":2},"end":{"line":391,"column":2}}]},"48":{"line":427,"type":"if","locations":[{"start":{"line":427,"column":6},"end":{"line":427,"column":6}},{"start":{"line":427,"column":6},"end":{"line":427,"column":6}}]},"49":{"line":468,"type":"if","locations":[{"start":{"line":468,"column":4},"end":{"line":468,"column":4}},{"start":{"line":468,"column":4},"end":{"line":468,"column":4}}]}}}}

@@ -369,3 +369,4 @@ 'use strict';

// trigger SNS event with search result - for development right now, so ignore errors
pushToSNSTopic(params, (err) => {
pushToSNSTopic(params, (err) => { // @lennym to update this ...
/* istanbul ignore else */
if (err) { AwsHelper.log.error(params, `Failed to publish SNS event to ${process.env.SEARCH_RESULT_TOPIC} `); }

@@ -395,10 +396,14 @@ });

AwsHelper.SNS.publish({
Message: {
Message: JSON.stringify({
default: params
},
TopicArn: process.env.SEARCH_RESULT_TOPIC
}),
TopicArn: process.env.SEARCH_RESULT_TOPIC,
MessageStructure: 'json'
}, callback);
}
var resultBucket = new AWS.S3({params: {Bucket: process.env.AWS_S3_SEARCH_RESULT_BUCKET}});
AwsHelper.pushToSNSTopic = pushToSNSTopic; // exported for testing
var resultBucket = new AWS.S3({ params:
{Bucket: process.env.AWS_S3_SEARCH_RESULT_BUCKET}});
/**

@@ -405,0 +410,0 @@ * saveRecordToS3

{
"name": "aws-lambda-helper",
"version": "2.14.0",
"version": "2.15.0",
"description": "Collection of helper methods for lambda",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -121,6 +121,28 @@ # aws-lambda-helper

### Retrieving a Search Result (*Artile Tile or Package*)
When a user shares a result tile (*e.g. an article or package*)
we retrieve the result they saw from S3:
```js
var params = {
userId: 'UniqueFingerprint', // the super long string that uniquely identifies a client
sessionId: 12345, // the session as defined by the WebSocket id
itemId: ABC1234, // the tile (article/pacakge) id
};
AwsHelper.getRecordFromS3(params, function (err, json) {
console.log(err, json); // handle error or use json
});
```
#### Environment Variables
You will require an Environment Variable for the `WEBSOCKET_SERVER_URL`
and `AWS_S3_SEARCH_RESULT_BUCKET`
You will require an the following Environment Variables to push results to S3
and retrieve them later:
```
export WEBSOCKET_SERVER_URL=get_this_from_codeship
export AWS_S3_SEARCH_RESULT_BUCKET=get_this_from_codeship
export SEARCH_RESULT_TOPIC=arn:aws:sns:eu-west-1:123456789:my-awesome-topic
```
(*see below for complete list of required Environment Variables*)

@@ -127,0 +149,0 @@

@@ -89,2 +89,21 @@ // this test needs to run *FIRST* for some reason ... any help figuring out why much appreciated.

it('Send result to Client *AND* Save to S3 (no SNS Topic)', function (done) {
var params = {
id: CLIENT_ID, // the session id from WebSocket Server
searchId: 'ABC',
userId: 'TESTUSERID',
items: [
{id: 123, hello: 'world', title: 'amazing holiday'},
{id: 456, title: 'Sandy Beach with Fresh Coconuts'},
{id: 789, title: 'Paradise Isle'}
]
};
AwsHelper.pushResultToClient(params, function (err, res) {
console.log(err, res);
assert(!err);
// assert.equal(res, 200);
done();
});
});
it('Attempt to pushResultToClient with invalid id', function (done) {

@@ -91,0 +110,0 @@ var params = {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc