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.13.3 to 2.13.4

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":29,"6":29,"7":29,"8":29,"9":29,"10":29,"11":28,"12":28,"13":28,"14":1,"15":31,"16":1,"17":30,"18":30,"19":4,"20":4,"21":4,"22":4,"23":4,"24":26,"25":24,"26":24,"27":24,"28":24,"29":2,"30":1,"31":42,"32":42,"33":42,"34":8,"35":34,"36":3,"37":3,"38":3,"39":2,"40":32,"41":3,"42":3,"43":3,"44":2,"45":2,"46":2,"47":2,"48":30,"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":34,"114":34,"115":34,"116":34,"117":34,"118":1,"119":0,"120":0,"121":0,"122":0,"123":0,"124":1,"125":1,"126":1,"127":7,"128":1,"129":7,"130":7,"131":6,"132":6,"133":6,"134":58,"135":6,"136":3,"137":3,"138":2,"139":1,"140":3,"141":7,"142":1,"143":1,"144":1,"145":7,"146":3,"147":7,"148":1,"149":1,"150":3,"151":3,"152":1,"153":1,"154":1,"155":1,"156":2,"157":2,"158":2,"159":4,"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},"b":{"1":[1,30],"2":[4,26],"3":[24,2],"4":[42,29],"5":[8,34],"6":[3,31],"7":[34,5,5],"8":[2,1],"9":[3,3],"10":[3,29],"11":[32,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":[34,29],"33":[34,0],"34":[34,22,0],"35":[34,34,34],"36":[34,24],"37":[33,1],"38":[0,0],"39":[2,5],"40":[7,2],"41":[7,4],"42":[3,3],"43":[3,4],"44":[2,2]},"f":{"1":29,"2":31,"3":42,"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":34,"19":0,"20":7,"21":7,"22":6,"23":58,"24":6,"25":1,"26":3,"27":2,"28":4,"29":4,"30":1,"31":1},"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":314,"loc":{"start":{"line":314,"column":17},"end":{"line":314,"column":29}}},"25":{"name":"(anonymous_25)","line":327,"loc":{"start":{"line":327,"column":18},"end":{"line":327,"column":31}}},"26":{"name":"pushToSocketServer","line":353,"loc":{"start":{"line":353,"column":0},"end":{"line":353,"column":47}}},"27":{"name":"saveRecordToS3","line":374,"loc":{"start":{"line":374,"column":0},"end":{"line":374,"column":43}}},"28":{"name":"(anonymous_28)","line":377,"loc":{"start":{"line":377,"column":23},"end":{"line":377,"column":39}}},"29":{"name":"(anonymous_29)","line":389,"loc":{"start":{"line":389,"column":34},"end":{"line":389,"column":55}}},"30":{"name":"(anonymous_30)","line":408,"loc":{"start":{"line":408,"column":31},"end":{"line":408,"column":59}}},"31":{"name":"(anonymous_31)","line":410,"loc":{"start":{"line":410,"column":29},"end":{"line":410,"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":337,"column":1}},"129":{"start":{"line":308,"column":2},"end":{"line":308,"column":76}},"130":{"start":{"line":309,"column":2},"end":{"line":326,"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":325,"column":7}},"134":{"start":{"line":313,"column":6},"end":{"line":313,"column":22}},"135":{"start":{"line":315,"column":6},"end":{"line":324,"column":7}},"136":{"start":{"line":316,"column":8},"end":{"line":321,"column":9}},"137":{"start":{"line":317,"column":10},"end":{"line":317,"column":40}},"138":{"start":{"line":318,"column":10},"end":{"line":318,"column":38}},"139":{"start":{"line":320,"column":10},"end":{"line":320,"column":29}},"140":{"start":{"line":323,"column":8},"end":{"line":323,"column":46}},"141":{"start":{"line":327,"column":2},"end":{"line":331,"column":5}},"142":{"start":{"line":328,"column":4},"end":{"line":328,"column":55}},"143":{"start":{"line":329,"column":4},"end":{"line":329,"column":70}},"144":{"start":{"line":330,"column":4},"end":{"line":330,"column":23}},"145":{"start":{"line":333,"column":2},"end":{"line":335,"column":3}},"146":{"start":{"line":334,"column":4},"end":{"line":334,"column":44}},"147":{"start":{"line":336,"column":2},"end":{"line":336,"column":12}},"148":{"start":{"line":338,"column":0},"end":{"line":338,"column":36}},"149":{"start":{"line":353,"column":0},"end":{"line":365,"column":1}},"150":{"start":{"line":354,"column":2},"end":{"line":362,"column":4}},"151":{"start":{"line":364,"column":2},"end":{"line":364,"column":33}},"152":{"start":{"line":366,"column":0},"end":{"line":366,"column":50}},"153":{"start":{"line":368,"column":0},"end":{"line":368,"column":31}},"154":{"start":{"line":369,"column":0},"end":{"line":369,"column":91}},"155":{"start":{"line":374,"column":0},"end":{"line":396,"column":1}},"156":{"start":{"line":375,"column":2},"end":{"line":375,"column":38}},"157":{"start":{"line":376,"column":2},"end":{"line":376,"column":28}},"158":{"start":{"line":377,"column":2},"end":{"line":395,"column":5}},"159":{"start":{"line":379,"column":4},"end":{"line":379,"column":77}},"160":{"start":{"line":380,"column":4},"end":{"line":380,"column":28}},"161":{"start":{"line":381,"column":4},"end":{"line":387,"column":6}},"162":{"start":{"line":389,"column":4},"end":{"line":394,"column":7}},"163":{"start":{"line":390,"column":6},"end":{"line":390,"column":19}},"164":{"start":{"line":391,"column":6},"end":{"line":393,"column":7}},"165":{"start":{"line":392,"column":8},"end":{"line":392,"column":35}},"166":{"start":{"line":397,"column":0},"end":{"line":397,"column":42}},"167":{"start":{"line":408,"column":0},"end":{"line":414,"column":2}},"168":{"start":{"line":410,"column":2},"end":{"line":413,"column":5}},"169":{"start":{"line":411,"column":4},"end":{"line":411,"column":17}},"170":{"start":{"line":412,"column":4},"end":{"line":412,"column":44}},"171":{"start":{"line":415,"column":0},"end":{"line":415,"column":27}},"172":{"start":{"line":416,"column":0},"end":{"line":416,"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":315,"type":"if","locations":[{"start":{"line":315,"column":6},"end":{"line":315,"column":6}},{"start":{"line":315,"column":6},"end":{"line":315,"column":6}}]},"43":{"line":333,"type":"if","locations":[{"start":{"line":333,"column":2},"end":{"line":333,"column":2}},{"start":{"line":333,"column":2},"end":{"line":333,"column":2}}]},"44":{"line":391,"type":"if","locations":[{"start":{"line":391,"column":6},"end":{"line":391,"column":6}},{"start":{"line":391,"column":6},"end":{"line":391,"column":6}}]}}}}
{"/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":30,"6":30,"7":30,"8":30,"9":30,"10":30,"11":29,"12":29,"13":29,"14":1,"15":32,"16":1,"17":31,"18":31,"19":4,"20":4,"21":4,"22":4,"23":4,"24":27,"25":25,"26":25,"27":25,"28":25,"29":2,"30":1,"31":43,"32":43,"33":43,"34":8,"35":35,"36":3,"37":3,"38":3,"39":2,"40":33,"41":3,"42":3,"43":3,"44":2,"45":2,"46":2,"47":2,"48":31,"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":35,"114":35,"115":35,"116":35,"117":35,"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":2,"169":2,"170":1,"171":1,"172":1,"173":1,"174":1},"b":{"1":[1,31],"2":[4,27],"3":[25,2],"4":[43,30],"5":[8,35],"6":[3,32],"7":[35,5,5],"8":[2,1],"9":[3,3],"10":[3,30],"11":[33,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":[35,30],"33":[35,0],"34":[35,23,0],"35":[35,35,35],"36":[35,25],"37":[34,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":30,"2":32,"3":43,"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":35,"19":0,"20":8,"21":8,"22":7,"23":59,"24":7,"25":1,"26":4,"27":2,"28":4,"29":4,"30":2,"31":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":"saveRecordToS3","line":378,"loc":{"start":{"line":378,"column":0},"end":{"line":378,"column":43}}},"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":"(anonymous_30)","line":410,"loc":{"start":{"line":410,"column":31},"end":{"line":410,"column":59}}},"31":{"name":"(anonymous_31)","line":412,"loc":{"start":{"line":412,"column":29},"end":{"line":412,"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":400,"column":0},"end":{"line":400,"column":42}},"167":{"start":{"line":410,"column":0},"end":{"line":420,"column":2}},"168":{"start":{"line":412,"column":2},"end":{"line":419,"column":5}},"169":{"start":{"line":413,"column":4},"end":{"line":418,"column":5}},"170":{"start":{"line":414,"column":6},"end":{"line":414,"column":86}},"171":{"start":{"line":415,"column":6},"end":{"line":415,"column":33}},"172":{"start":{"line":417,"column":6},"end":{"line":417,"column":46}},"173":{"start":{"line":422,"column":0},"end":{"line":422,"column":27}},"174":{"start":{"line":423,"column":0},"end":{"line":423,"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":413,"type":"if","locations":[{"start":{"line":413,"column":4},"end":{"line":413,"column":4}},{"start":{"line":413,"column":4},"end":{"line":413,"column":4}}]}}}}

@@ -313,5 +313,6 @@ 'use strict';

res.on('data', function (chunk) {
// console.log('>>', chunk)
resStr += chunk;
}).on('end', function () {
if (resStr.length > 0) {
if (resStr.length > 0 && res.statusCode === 200) {
try {

@@ -324,3 +325,7 @@ var json = JSON.parse(resStr);

} else {
return callback(null, res.statusCode);
if (res.statusCode === 200) {
return callback(null, 200);
} else {
return callback(res.statusCode, resStr);
}
}

@@ -370,3 +375,2 @@ });

var assert = require('assert');
var resultBucket = new AWS.S3({params: {Bucket: process.env.AWS_S3_SEARCH_RESULT_BUCKET}});

@@ -393,3 +397,2 @@ /**

resultBucket.upload(s3params, function (err, data) {
assert(!err);
if (--countdown === 0) {

@@ -404,8 +407,7 @@ return callback(err, data);

/**
params = { // see: https://github.com/numo-labs/aws-lambda-helper/issues/40
id: clientId,
searchId: searchId,
userId: userId,
items: Array.isArray(json) ? json : [json] // always send an array of items
}
* pushResultToClient wraps both pushToSocketServer and saveRecordToS3,
* so that your lambda code does not have to call both methods.
* the params are the same. (see README for example)
* @param {Object} params - the parameters you want to send to client/S3
* @param {Function} callback - called when the method succeeds/fails
*/

@@ -416,7 +418,12 @@

pushToSocketServer(params, function (err, data) {
assert(!err);
return saveRecordToS3(params, callback); // push to S3
if (err) {
AwsHelper.log.error({err: err, data: data}, 'ERROR Sending Data via WebSocket');
return callback(err, data);
} else {
return saveRecordToS3(params, callback); // push to S3
}
});
};
module.exports = AwsHelper;
module.exports.getEnvironment = AwsHelper.getEnvironment;
{
"name": "aws-lambda-helper",
"version": "2.13.3",
"version": "2.13.4",
"description": "Collection of helper methods for lambda",

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

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

var CLIENT_ID;
var ONCE = false;
describe('pushToSocketServer', function () {
it('Connect to WebSocket Server', function (done) {
before('Connect to WebSocket Server', function (done) {
AwsHelper.init({
invokedFunctionArn: 'arn:aws:lambda:eu-west-1:123456789:function:mylambda:ci'
});
console.log('Attempting to connect to WebSocket Server ...', client.socket.transports);
client.on('data', function received (data) {
// console.log(typeof data, JSON.stringify(data, null, 2));
if (data.connection) {
console.log('data received:', typeof data, JSON.stringify(data, null, 2));
if (data.connection && !ONCE) {
console.log('Successfully Connected to Primus (WebSocket) Endpoint!');
ONCE = true;
CLIENT_ID = data.connection;

@@ -38,3 +45,3 @@ assert(CLIENT_ID.length > 10);

AwsHelper.pushToSocketServer(params, function (err, res) {
// console.log(err, res);
console.log(' > > > ', err, res);
assert.equal(res, 200);

@@ -85,2 +92,18 @@ assert(!err);

});
it('Attempt to pushResultToClient with invalid id', function (done) {
var params = {
// id: 'invalid', // the session id from WebSocket Server
searchId: 'TEST',
userId: 'UniqueFingerprint',
items: [
{id: 123, hello: 'world', title: 'amazing holiday'}
]
};
AwsHelper.pushResultToClient(params, function (err, res) {
// console.log(' -->', err, res);
assert.equal(err, 400, 'Got 400 Error (as expected)');
done();
});
});
});

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