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

react-moment

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-moment - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

2

coverage/coverage-final.json

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

{"/media/sean/work2/www/react-moment/src/index.jsx": {"path":"/media/sean/work2/www/react-moment/src/index.jsx","statementMap":{"0":{"start":{"line":7,"column":18},"end":{"line":12,"column":1}},"1":{"start":{"line":14,"column":19},"end":{"line":17,"column":1}},"2":{"start":{"line":19,"column":22},"end":{"line":22,"column":1}},"3":{"start":{"line":70,"column":26},"end":{"line":70,"column":35}},"4":{"start":{"line":100,"column":4},"end":{"line":100,"column":30}},"5":{"start":{"line":101,"column":4},"end":{"line":107,"column":17}},"6":{"start":{"line":102,"column":6},"end":{"line":106,"column":9}},"7":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"8":{"start":{"line":104,"column":10},"end":{"line":104,"column":27}},"9":{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},"10":{"start":{"line":115,"column":6},"end":{"line":115,"column":40}},"11":{"start":{"line":116,"column":6},"end":{"line":116,"column":35}},"12":{"start":{"line":117,"column":6},"end":{"line":117,"column":33}},"13":{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},"14":{"start":{"line":128,"column":6},"end":{"line":128,"column":58}},"15":{"start":{"line":129,"column":6},"end":{"line":129,"column":13}},"16":{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},"17":{"start":{"line":132,"column":6},"end":{"line":132,"column":42}},"18":{"start":{"line":142,"column":18},"end":{"line":142,"column":56}},"19":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"20":{"start":{"line":144,"column":6},"end":{"line":144,"column":45}},"21":{"start":{"line":155,"column":26},"end":{"line":155,"column":31}},"22":{"start":{"line":156,"column":45},"end":{"line":156,"column":50}},"23":{"start":{"line":158,"column":4},"end":{"line":158,"column":34}},"24":{"start":{"line":159,"column":4},"end":{"line":159,"column":40}},"25":{"start":{"line":160,"column":4},"end":{"line":160,"column":40}},"26":{"start":{"line":161,"column":4},"end":{"line":161,"column":37}},"27":{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},"28":{"start":{"line":163,"column":6},"end":{"line":163,"column":35}},"29":{"start":{"line":165,"column":6},"end":{"line":165,"column":54}},"30":{"start":{"line":168,"column":19},"end":{"line":168,"column":23}},"31":{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},"32":{"start":{"line":170,"column":6},"end":{"line":170,"column":62}},"33":{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},"34":{"start":{"line":175,"column":6},"end":{"line":175,"column":65}},"35":{"start":{"line":177,"column":6},"end":{"line":177,"column":58}},"36":{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},"37":{"start":{"line":180,"column":6},"end":{"line":180,"column":33}},"38":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"39":{"start":{"line":182,"column":6},"end":{"line":182,"column":34}},"40":{"start":{"line":185,"column":4},"end":{"line":185,"column":20}},"41":{"start":{"line":194,"column":4},"end":{"line":194,"column":17}},"42":{"start":{"line":195,"column":4},"end":{"line":197,"column":5}},"43":{"start":{"line":196,"column":6},"end":{"line":196,"column":35}},"44":{"start":{"line":198,"column":4},"end":{"line":200,"column":6}},"45":{"start":{"line":201,"column":4},"end":{"line":201,"column":22}},"46":{"start":{"line":208,"column":4},"end":{"line":208,"column":28}},"47":{"start":{"line":215,"column":4},"end":{"line":215,"column":20}},"48":{"start":{"line":216,"column":4},"end":{"line":218,"column":5}},"49":{"start":{"line":217,"column":6},"end":{"line":217,"column":37}},"50":{"start":{"line":227,"column":4},"end":{"line":227,"column":27}},"51":{"start":{"line":236,"column":25},"end":{"line":236,"column":35}},"52":{"start":{"line":238,"column":4},"end":{"line":240,"column":5}},"53":{"start":{"line":239,"column":6},"end":{"line":239,"column":22}},"54":{"start":{"line":247,"column":4},"end":{"line":247,"column":22}},"55":{"start":{"line":254,"column":25},"end":{"line":254,"column":35}},"56":{"start":{"line":256,"column":4},"end":{"line":256,"column":22}},"57":{"start":{"line":257,"column":4},"end":{"line":261,"column":5}},"58":{"start":{"line":258,"column":6},"end":{"line":260,"column":19}},"59":{"start":{"line":259,"column":8},"end":{"line":259,"column":32}},"60":{"start":{"line":268,"column":4},"end":{"line":271,"column":5}},"61":{"start":{"line":269,"column":6},"end":{"line":269,"column":32}},"62":{"start":{"line":270,"column":6},"end":{"line":270,"column":24}},"63":{"start":{"line":272,"column":4},"end":{"line":274,"column":5}},"64":{"start":{"line":273,"column":6},"end":{"line":273,"column":39}},"65":{"start":{"line":281,"column":28},"end":{"line":281,"column":38}},"66":{"start":{"line":283,"column":21},"end":{"line":283,"column":51}},"67":{"start":{"line":284,"column":19},"end":{"line":284,"column":53}},"68":{"start":{"line":286,"column":4},"end":{"line":286,"column":35}},"69":{"start":{"line":293,"column":4},"end":{"line":293,"column":32}},"70":{"start":{"line":297,"column":8},"end":{"line":297,"column":13}},"71":{"start":{"line":299,"column":21},"end":{"line":299,"column":26}},"72":{"start":{"line":301,"column":4},"end":{"line":301,"column":43}},"73":{"start":{"line":302,"column":21},"end":{"line":302,"column":46}},"74":{"start":{"line":303,"column":4},"end":{"line":305,"column":5}},"75":{"start":{"line":304,"column":6},"end":{"line":304,"column":24}},"76":{"start":{"line":306,"column":4},"end":{"line":308,"column":5}},"77":{"start":{"line":307,"column":6},"end":{"line":307,"column":34}},"78":{"start":{"line":310,"column":26},"end":{"line":310,"column":92}},"79":{"start":{"line":311,"column":19},"end":{"line":311,"column":21}},"80":{"start":{"line":312,"column":4},"end":{"line":332,"column":5}},"81":{"start":{"line":313,"column":6},"end":{"line":313,"column":40}},"82":{"start":{"line":314,"column":11},"end":{"line":332,"column":5}},"83":{"start":{"line":315,"column":6},"end":{"line":315,"column":41}},"84":{"start":{"line":316,"column":11},"end":{"line":332,"column":5}},"85":{"start":{"line":317,"column":6},"end":{"line":317,"column":38}},"86":{"start":{"line":318,"column":11},"end":{"line":332,"column":5}},"87":{"start":{"line":319,"column":6},"end":{"line":319,"column":37}},"88":{"start":{"line":320,"column":11},"end":{"line":332,"column":5}},"89":{"start":{"line":321,"column":6},"end":{"line":321,"column":36}},"90":{"start":{"line":322,"column":11},"end":{"line":332,"column":5}},"91":{"start":{"line":323,"column":6},"end":{"line":323,"column":50}},"92":{"start":{"line":324,"column":11},"end":{"line":332,"column":5}},"93":{"start":{"line":325,"column":6},"end":{"line":325,"column":51}},"94":{"start":{"line":326,"column":11},"end":{"line":332,"column":5}},"95":{"start":{"line":327,"column":6},"end":{"line":327,"column":40}},"96":{"start":{"line":328,"column":11},"end":{"line":332,"column":5}},"97":{"start":{"line":329,"column":6},"end":{"line":329,"column":40}},"98":{"start":{"line":331,"column":6},"end":{"line":331,"column":36}},"99":{"start":{"line":334,"column":4},"end":{"line":337,"column":5}},"100":{"start":{"line":335,"column":6},"end":{"line":335,"column":41}},"101":{"start":{"line":336,"column":6},"end":{"line":336,"column":39}},"102":{"start":{"line":339,"column":19},"end":{"line":339,"column":59}},"103":{"start":{"line":340,"column":4},"end":{"line":340,"column":30}},"104":{"start":{"line":342,"column":4},"end":{"line":344,"column":7}},"105":{"start":{"line":343,"column":6},"end":{"line":343,"column":24}},"106":{"start":{"line":351,"column":49},"end":{"line":351,"column":59}},"107":{"start":{"line":352,"column":24},"end":{"line":352,"column":34}},"108":{"start":{"line":354,"column":18},"end":{"line":354,"column":62}},"109":{"start":{"line":355,"column":4},"end":{"line":357,"column":5}},"110":{"start":{"line":356,"column":6},"end":{"line":356,"column":36}},"111":{"start":{"line":359,"column":4},"end":{"line":366,"column":6}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":70,"column":17},"end":{"line":70,"column":18}},"loc":{"start":{"line":70,"column":24},"end":{"line":70,"column":37}},"line":70},"1":{"name":"(anonymous_1)","decl":{"start":{"line":71,"column":17},"end":{"line":71,"column":18}},"loc":{"start":{"line":71,"column":23},"end":{"line":71,"column":25}},"line":71},"2":{"name":"(anonymous_2)","decl":{"start":{"line":99,"column":2},"end":{"line":99,"column":3}},"loc":{"start":{"line":99,"column":44},"end":{"line":108,"column":3}},"line":99},"3":{"name":"(anonymous_3)","decl":{"start":{"line":101,"column":37},"end":{"line":101,"column":38}},"loc":{"start":{"line":101,"column":43},"end":{"line":107,"column":5}},"line":101},"4":{"name":"(anonymous_4)","decl":{"start":{"line":102,"column":36},"end":{"line":102,"column":37}},"loc":{"start":{"line":102,"column":49},"end":{"line":106,"column":7}},"line":102},"5":{"name":"(anonymous_5)","decl":{"start":{"line":113,"column":2},"end":{"line":113,"column":3}},"loc":{"start":{"line":113,"column":28},"end":{"line":119,"column":3}},"line":113},"6":{"name":"(anonymous_6)","decl":{"start":{"line":126,"column":2},"end":{"line":126,"column":3}},"loc":{"start":{"line":126,"column":36},"end":{"line":134,"column":3}},"line":126},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":2},"end":{"line":141,"column":3}},"loc":{"start":{"line":141,"column":38},"end":{"line":146,"column":3}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":154,"column":2},"end":{"line":154,"column":3}},"loc":{"start":{"line":154,"column":28},"end":{"line":186,"column":3}},"line":154},"9":{"name":"(anonymous_9)","decl":{"start":{"line":193,"column":2},"end":{"line":193,"column":3}},"loc":{"start":{"line":193,"column":21},"end":{"line":202,"column":3}},"line":193},"10":{"name":"(anonymous_10)","decl":{"start":{"line":207,"column":2},"end":{"line":207,"column":3}},"loc":{"start":{"line":207,"column":23},"end":{"line":209,"column":3}},"line":207},"11":{"name":"(anonymous_11)","decl":{"start":{"line":214,"column":2},"end":{"line":214,"column":3}},"loc":{"start":{"line":214,"column":22},"end":{"line":219,"column":3}},"line":214},"12":{"name":"(anonymous_12)","decl":{"start":{"line":226,"column":2},"end":{"line":226,"column":3}},"loc":{"start":{"line":226,"column":39},"end":{"line":228,"column":3}},"line":226},"13":{"name":"(anonymous_13)","decl":{"start":{"line":235,"column":2},"end":{"line":235,"column":3}},"loc":{"start":{"line":235,"column":32},"end":{"line":241,"column":3}},"line":235},"14":{"name":"(anonymous_14)","decl":{"start":{"line":246,"column":2},"end":{"line":246,"column":3}},"loc":{"start":{"line":246,"column":25},"end":{"line":248,"column":3}},"line":246},"15":{"name":"(anonymous_15)","decl":{"start":{"line":253,"column":13},"end":{"line":253,"column":14}},"loc":{"start":{"line":253,"column":19},"end":{"line":262,"column":3}},"line":253},"16":{"name":"(anonymous_16)","decl":{"start":{"line":258,"column":31},"end":{"line":258,"column":32}},"loc":{"start":{"line":258,"column":37},"end":{"line":260,"column":7}},"line":258},"17":{"name":"(anonymous_17)","decl":{"start":{"line":267,"column":15},"end":{"line":267,"column":16}},"loc":{"start":{"line":267,"column":21},"end":{"line":275,"column":3}},"line":267},"18":{"name":"(anonymous_18)","decl":{"start":{"line":280,"column":13},"end":{"line":280,"column":14}},"loc":{"start":{"line":280,"column":19},"end":{"line":287,"column":3}},"line":280},"19":{"name":"(anonymous_19)","decl":{"start":{"line":292,"column":2},"end":{"line":292,"column":3}},"loc":{"start":{"line":292,"column":16},"end":{"line":345,"column":3}},"line":292},"20":{"name":"(anonymous_20)","decl":{"start":{"line":342,"column":31},"end":{"line":342,"column":32}},"loc":{"start":{"line":342,"column":37},"end":{"line":344,"column":5}},"line":342},"21":{"name":"(anonymous_21)","decl":{"start":{"line":350,"column":2},"end":{"line":350,"column":3}},"loc":{"start":{"line":350,"column":11},"end":{"line":367,"column":3}},"line":350}},"branchMap":{"0":{"loc":{"start":{"line":99,"column":26},"end":{"line":99,"column":42}},"type":"default-arg","locations":[{"start":{"line":99,"column":37},"end":{"line":99,"column":42}}],"line":99},"1":{"loc":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"type":"if","locations":[{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},{"start":{"line":103,"column":8},"end":{"line":105,"column":9}}],"line":103},"2":{"loc":{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},{"start":{"line":114,"column":4},"end":{"line":118,"column":5}}],"line":114},"3":{"loc":{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},{"start":{"line":127,"column":4},"end":{"line":130,"column":5}}],"line":127},"4":{"loc":{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},{"start":{"line":131,"column":4},"end":{"line":133,"column":5}}],"line":131},"5":{"loc":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},{"start":{"line":143,"column":4},"end":{"line":145,"column":5}}],"line":143},"6":{"loc":{"start":{"line":158,"column":11},"end":{"line":158,"column":33}},"type":"binary-expr","locations":[{"start":{"line":158,"column":11},"end":{"line":158,"column":15}},{"start":{"line":158,"column":19},"end":{"line":158,"column":33}}],"line":158},"7":{"loc":{"start":{"line":159,"column":12},"end":{"line":159,"column":39}},"type":"binary-expr","locations":[{"start":{"line":159,"column":12},"end":{"line":159,"column":17}},{"start":{"line":159,"column":21},"end":{"line":159,"column":39}}],"line":159},"8":{"loc":{"start":{"line":160,"column":12},"end":{"line":160,"column":39}},"type":"binary-expr","locations":[{"start":{"line":160,"column":12},"end":{"line":160,"column":17}},{"start":{"line":160,"column":21},"end":{"line":160,"column":39}}],"line":160},"9":{"loc":{"start":{"line":161,"column":9},"end":{"line":161,"column":36}},"type":"binary-expr","locations":[{"start":{"line":161,"column":9},"end":{"line":161,"column":11}},{"start":{"line":161,"column":15},"end":{"line":161,"column":36}}],"line":161},"10":{"loc":{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},{"start":{"line":162,"column":4},"end":{"line":166,"column":5}}],"line":162},"11":{"loc":{"start":{"line":165,"column":15},"end":{"line":165,"column":53}},"type":"binary-expr","locations":[{"start":{"line":165,"column":15},"end":{"line":165,"column":21}},{"start":{"line":165,"column":25},"end":{"line":165,"column":53}}],"line":165},"12":{"loc":{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},"type":"if","locations":[{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},{"start":{"line":169,"column":4},"end":{"line":178,"column":5}}],"line":169},"13":{"loc":{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},"type":"if","locations":[{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},{"start":{"line":171,"column":11},"end":{"line":178,"column":5}}],"line":171},"14":{"loc":{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},"type":"if","locations":[{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},{"start":{"line":179,"column":4},"end":{"line":183,"column":5}}],"line":179},"15":{"loc":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"type":"if","locations":[{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},{"start":{"line":181,"column":11},"end":{"line":183,"column":5}}],"line":181},"16":{"loc":{"start":{"line":195,"column":4},"end":{"line":197,"column":5}},"type":"if","locations":[{"start":{"line":195,"column":4},"end":{"line":197,"column":5}},{"start":{"line":195,"column":4},"end":{"line":197,"column":5}}],"line":195},"17":{"loc":{"start":{"line":216,"column":4},"end":{"line":218,"column":5}},"type":"if","locations":[{"start":{"line":216,"column":4},"end":{"line":218,"column":5}},{"start":{"line":216,"column":4},"end":{"line":218,"column":5}}],"line":216},"18":{"loc":{"start":{"line":238,"column":4},"end":{"line":240,"column":5}},"type":"if","locations":[{"start":{"line":238,"column":4},"end":{"line":240,"column":5}},{"start":{"line":238,"column":4},"end":{"line":240,"column":5}}],"line":238},"19":{"loc":{"start":{"line":257,"column":4},"end":{"line":261,"column":5}},"type":"if","locations":[{"start":{"line":257,"column":4},"end":{"line":261,"column":5}},{"start":{"line":257,"column":4},"end":{"line":261,"column":5}}],"line":257},"20":{"loc":{"start":{"line":257,"column":8},"end":{"line":257,"column":45}},"type":"binary-expr","locations":[{"start":{"line":257,"column":8},"end":{"line":257,"column":27}},{"start":{"line":257,"column":31},"end":{"line":257,"column":45}}],"line":257},"21":{"loc":{"start":{"line":268,"column":4},"end":{"line":271,"column":5}},"type":"if","locations":[{"start":{"line":268,"column":4},"end":{"line":271,"column":5}},{"start":{"line":268,"column":4},"end":{"line":271,"column":5}}],"line":268},"22":{"loc":{"start":{"line":268,"column":8},"end":{"line":268,"column":41}},"type":"binary-expr","locations":[{"start":{"line":268,"column":8},"end":{"line":268,"column":27}},{"start":{"line":268,"column":31},"end":{"line":268,"column":41}}],"line":268},"23":{"loc":{"start":{"line":272,"column":4},"end":{"line":274,"column":5}},"type":"if","locations":[{"start":{"line":272,"column":4},"end":{"line":274,"column":5}},{"start":{"line":272,"column":4},"end":{"line":274,"column":5}}],"line":272},"24":{"loc":{"start":{"line":272,"column":8},"end":{"line":272,"column":41}},"type":"binary-expr","locations":[{"start":{"line":272,"column":8},"end":{"line":272,"column":26}},{"start":{"line":272,"column":30},"end":{"line":272,"column":41}}],"line":272},"25":{"loc":{"start":{"line":284,"column":19},"end":{"line":284,"column":53}},"type":"binary-expr","locations":[{"start":{"line":284,"column":19},"end":{"line":284,"column":30}},{"start":{"line":284,"column":34},"end":{"line":284,"column":53}}],"line":284},"26":{"loc":{"start":{"line":293,"column":12},"end":{"line":293,"column":31}},"type":"binary-expr","locations":[{"start":{"line":293,"column":12},"end":{"line":293,"column":17}},{"start":{"line":293,"column":21},"end":{"line":293,"column":31}}],"line":293},"27":{"loc":{"start":{"line":301,"column":13},"end":{"line":301,"column":42}},"type":"binary-expr","locations":[{"start":{"line":301,"column":13},"end":{"line":301,"column":19}},{"start":{"line":301,"column":23},"end":{"line":301,"column":42}}],"line":301},"28":{"loc":{"start":{"line":303,"column":4},"end":{"line":305,"column":5}},"type":"if","locations":[{"start":{"line":303,"column":4},"end":{"line":305,"column":5}},{"start":{"line":303,"column":4},"end":{"line":305,"column":5}}],"line":303},"29":{"loc":{"start":{"line":306,"column":4},"end":{"line":308,"column":5}},"type":"if","locations":[{"start":{"line":306,"column":4},"end":{"line":308,"column":5}},{"start":{"line":306,"column":4},"end":{"line":308,"column":5}}],"line":306},"30":{"loc":{"start":{"line":310,"column":26},"end":{"line":310,"column":92}},"type":"binary-expr","locations":[{"start":{"line":310,"column":26},"end":{"line":310,"column":48}},{"start":{"line":310,"column":52},"end":{"line":310,"column":92}}],"line":310},"31":{"loc":{"start":{"line":312,"column":4},"end":{"line":332,"column":5}},"type":"if","locations":[{"start":{"line":312,"column":4},"end":{"line":332,"column":5}},{"start":{"line":312,"column":4},"end":{"line":332,"column":5}}],"line":312},"32":{"loc":{"start":{"line":312,"column":8},"end":{"line":312,"column":32}},"type":"binary-expr","locations":[{"start":{"line":312,"column":8},"end":{"line":312,"column":14}},{"start":{"line":312,"column":18},"end":{"line":312,"column":32}}],"line":312},"33":{"loc":{"start":{"line":314,"column":11},"end":{"line":332,"column":5}},"type":"if","locations":[{"start":{"line":314,"column":11},"end":{"line":332,"column":5}},{"start":{"line":314,"column":11},"end":{"line":332,"column":5}}],"line":314},"34":{"loc":{"start":{"line":316,"column":11},"end":{"line":332,"column":5}},"type":"if","locations":[{"start":{"line":316,"column":11},"end":{"line":332,"column":5}},{"start":{"line":316,"column":11},"end":{"line":332,"column":5}}],"line":316},"35":{"loc":{"start":{"line":316,"column":15},"end":{"line":316,"column":39}},"type":"binary-expr","locations":[{"start":{"line":316,"column":15},"end":{"line":316,"column":22}},{"start":{"line":316,"column":26},"end":{"line":316,"column":39}}],"line":316},"36":{"loc":{"start":{"line":318,"column":11},"end":{"line":332,"column":5}},"type":"if","locations":[{"start":{"line":318,"column":11},"end":{"line":332,"column":5}},{"start":{"line":318,"column":11},"end":{"line":332,"column":5}}],"line":318},"37":{"loc":{"start":{"line":320,"column":11},"end":{"line":332,"column":5}},"type":"if","locations":[{"start":{"line":320,"column":11},"end":{"line":332,"column":5}},{"start":{"line":320,"column":11},"end":{"line":332,"column":5}}],"line":320},"38":{"loc":{"start":{"line":322,"column":11},"end":{"line":332,"column":5}},"type":"if","locations":[{"start":{"line":322,"column":11},"end":{"line":332,"column":5}},{"start":{"line":322,"column":11},"end":{"line":332,"column":5}}],"line":322},"39":{"loc":{"start":{"line":324,"column":11},"end":{"line":332,"column":5}},"type":"if","locations":[{"start":{"line":324,"column":11},"end":{"line":332,"column":5}},{"start":{"line":324,"column":11},"end":{"line":332,"column":5}}],"line":324},"40":{"loc":{"start":{"line":326,"column":11},"end":{"line":332,"column":5}},"type":"if","locations":[{"start":{"line":326,"column":11},"end":{"line":332,"column":5}},{"start":{"line":326,"column":11},"end":{"line":332,"column":5}}],"line":326},"41":{"loc":{"start":{"line":328,"column":11},"end":{"line":332,"column":5}},"type":"if","locations":[{"start":{"line":328,"column":11},"end":{"line":332,"column":5}},{"start":{"line":328,"column":11},"end":{"line":332,"column":5}}],"line":328},"42":{"loc":{"start":{"line":334,"column":4},"end":{"line":337,"column":5}},"type":"if","locations":[{"start":{"line":334,"column":4},"end":{"line":337,"column":5}},{"start":{"line":334,"column":4},"end":{"line":337,"column":5}}],"line":334},"43":{"loc":{"start":{"line":334,"column":8},"end":{"line":334,"column":35}},"type":"binary-expr","locations":[{"start":{"line":334,"column":8},"end":{"line":334,"column":16}},{"start":{"line":334,"column":20},"end":{"line":334,"column":35}}],"line":334},"44":{"loc":{"start":{"line":339,"column":19},"end":{"line":339,"column":59}},"type":"binary-expr","locations":[{"start":{"line":339,"column":19},"end":{"line":339,"column":38}},{"start":{"line":339,"column":42},"end":{"line":339,"column":59}}],"line":339},"45":{"loc":{"start":{"line":355,"column":4},"end":{"line":357,"column":5}},"type":"if","locations":[{"start":{"line":355,"column":4},"end":{"line":357,"column":5}},{"start":{"line":355,"column":4},"end":{"line":357,"column":5}}],"line":355},"46":{"loc":{"start":{"line":360,"column":6},"end":{"line":360,"column":37}},"type":"binary-expr","locations":[{"start":{"line":360,"column":6},"end":{"line":360,"column":13}},{"start":{"line":360,"column":17},"end":{"line":360,"column":37}}],"line":360}},"s":{"0":1,"1":1,"2":1,"3":42,"4":1,"5":1,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":0,"13":1,"14":0,"15":0,"16":1,"17":1,"18":2,"19":2,"20":1,"21":86,"22":86,"23":86,"24":86,"25":86,"26":86,"27":86,"28":2,"29":84,"30":86,"31":86,"32":4,"33":82,"34":6,"35":76,"36":86,"37":4,"38":82,"39":6,"40":86,"41":42,"42":42,"43":28,"44":42,"45":42,"46":42,"47":42,"48":42,"49":1,"50":1,"51":1,"52":1,"53":0,"54":1,"55":42,"56":42,"57":42,"58":41,"59":0,"60":43,"61":0,"62":0,"63":43,"64":2,"65":0,"66":0,"67":0,"68":0,"69":43,"70":43,"71":43,"72":43,"73":43,"74":43,"75":1,"76":43,"77":1,"78":43,"79":43,"80":43,"81":4,"82":39,"83":2,"84":37,"85":5,"86":32,"87":2,"88":30,"89":2,"90":28,"91":2,"92":26,"93":4,"94":22,"95":0,"96":22,"97":0,"98":22,"99":43,"100":0,"101":0,"102":43,"103":43,"104":43,"105":43,"106":43,"107":43,"108":43,"109":43,"110":0,"111":43},"f":{"0":42,"1":43,"2":1,"3":0,"4":0,"5":1,"6":1,"7":2,"8":86,"9":42,"10":42,"11":42,"12":1,"13":1,"14":1,"15":42,"16":0,"17":43,"18":0,"19":43,"20":43,"21":43},"b":{"0":[0],"1":[0,0],"2":[0,1],"3":[0,1],"4":[1,0],"5":[1,1],"6":[86,78],"7":[86,76],"8":[86,82],"9":[86,84],"10":[2,84],"11":[84,84],"12":[4,82],"13":[6,76],"14":[4,82],"15":[6,76],"16":[28,14],"17":[1,41],"18":[0,1],"19":[41,1],"20":[42,41],"21":[0,43],"22":[43,41],"23":[2,41],"24":[43,2],"25":[0,0],"26":[43,0],"27":[43,38],"28":[1,42],"29":[1,42],"30":[43,2],"31":[4,39],"32":[43,5],"33":[2,37],"34":[5,32],"35":[37,33],"36":[2,30],"37":[2,28],"38":[2,26],"39":[4,22],"40":[0,22],"41":[0,22],"42":[0,43],"43":[43,43],"44":[43,43],"45":[0,43],"46":[43,41]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"b2552acecff666447c3226d9c8748c4b84e98b7f"}
{"/media/sean/work2/www/react-moment/src/index.jsx": {"path":"/media/sean/work2/www/react-moment/src/index.jsx","statementMap":{"0":{"start":{"line":7,"column":18},"end":{"line":12,"column":1}},"1":{"start":{"line":14,"column":19},"end":{"line":17,"column":1}},"2":{"start":{"line":19,"column":22},"end":{"line":22,"column":1}},"3":{"start":{"line":70,"column":26},"end":{"line":70,"column":35}},"4":{"start":{"line":100,"column":4},"end":{"line":100,"column":30}},"5":{"start":{"line":101,"column":4},"end":{"line":107,"column":17}},"6":{"start":{"line":102,"column":6},"end":{"line":106,"column":9}},"7":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"8":{"start":{"line":104,"column":10},"end":{"line":104,"column":27}},"9":{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},"10":{"start":{"line":115,"column":6},"end":{"line":115,"column":40}},"11":{"start":{"line":116,"column":6},"end":{"line":116,"column":35}},"12":{"start":{"line":117,"column":6},"end":{"line":117,"column":33}},"13":{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},"14":{"start":{"line":128,"column":6},"end":{"line":128,"column":58}},"15":{"start":{"line":129,"column":6},"end":{"line":129,"column":13}},"16":{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},"17":{"start":{"line":132,"column":6},"end":{"line":132,"column":42}},"18":{"start":{"line":142,"column":18},"end":{"line":142,"column":56}},"19":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"20":{"start":{"line":144,"column":6},"end":{"line":144,"column":45}},"21":{"start":{"line":155,"column":26},"end":{"line":155,"column":31}},"22":{"start":{"line":156,"column":45},"end":{"line":156,"column":50}},"23":{"start":{"line":158,"column":4},"end":{"line":158,"column":34}},"24":{"start":{"line":159,"column":4},"end":{"line":159,"column":40}},"25":{"start":{"line":160,"column":4},"end":{"line":160,"column":40}},"26":{"start":{"line":161,"column":4},"end":{"line":161,"column":37}},"27":{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},"28":{"start":{"line":163,"column":6},"end":{"line":163,"column":35}},"29":{"start":{"line":165,"column":6},"end":{"line":165,"column":54}},"30":{"start":{"line":168,"column":19},"end":{"line":168,"column":23}},"31":{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},"32":{"start":{"line":170,"column":6},"end":{"line":170,"column":62}},"33":{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},"34":{"start":{"line":175,"column":6},"end":{"line":175,"column":65}},"35":{"start":{"line":177,"column":6},"end":{"line":177,"column":58}},"36":{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},"37":{"start":{"line":180,"column":6},"end":{"line":180,"column":33}},"38":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"39":{"start":{"line":182,"column":6},"end":{"line":182,"column":34}},"40":{"start":{"line":185,"column":4},"end":{"line":185,"column":20}},"41":{"start":{"line":198,"column":8},"end":{"line":198,"column":13}},"42":{"start":{"line":200,"column":21},"end":{"line":200,"column":26}},"43":{"start":{"line":202,"column":4},"end":{"line":202,"column":43}},"44":{"start":{"line":203,"column":21},"end":{"line":203,"column":46}},"45":{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},"46":{"start":{"line":205,"column":6},"end":{"line":205,"column":24}},"47":{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},"48":{"start":{"line":208,"column":6},"end":{"line":208,"column":34}},"49":{"start":{"line":211,"column":26},"end":{"line":211,"column":92}},"50":{"start":{"line":212,"column":19},"end":{"line":212,"column":21}},"51":{"start":{"line":213,"column":4},"end":{"line":233,"column":5}},"52":{"start":{"line":214,"column":6},"end":{"line":214,"column":40}},"53":{"start":{"line":215,"column":11},"end":{"line":233,"column":5}},"54":{"start":{"line":216,"column":6},"end":{"line":216,"column":41}},"55":{"start":{"line":217,"column":11},"end":{"line":233,"column":5}},"56":{"start":{"line":218,"column":6},"end":{"line":218,"column":38}},"57":{"start":{"line":219,"column":11},"end":{"line":233,"column":5}},"58":{"start":{"line":220,"column":6},"end":{"line":220,"column":37}},"59":{"start":{"line":221,"column":11},"end":{"line":233,"column":5}},"60":{"start":{"line":222,"column":6},"end":{"line":222,"column":36}},"61":{"start":{"line":223,"column":11},"end":{"line":233,"column":5}},"62":{"start":{"line":224,"column":6},"end":{"line":224,"column":50}},"63":{"start":{"line":225,"column":11},"end":{"line":233,"column":5}},"64":{"start":{"line":226,"column":6},"end":{"line":226,"column":51}},"65":{"start":{"line":227,"column":11},"end":{"line":233,"column":5}},"66":{"start":{"line":228,"column":6},"end":{"line":228,"column":40}},"67":{"start":{"line":229,"column":11},"end":{"line":233,"column":5}},"68":{"start":{"line":230,"column":6},"end":{"line":230,"column":40}},"69":{"start":{"line":232,"column":6},"end":{"line":232,"column":36}},"70":{"start":{"line":235,"column":4},"end":{"line":238,"column":5}},"71":{"start":{"line":236,"column":6},"end":{"line":236,"column":41}},"72":{"start":{"line":237,"column":6},"end":{"line":237,"column":39}},"73":{"start":{"line":240,"column":19},"end":{"line":240,"column":54}},"74":{"start":{"line":241,"column":4},"end":{"line":241,"column":30}},"75":{"start":{"line":243,"column":4},"end":{"line":243,"column":19}},"76":{"start":{"line":252,"column":4},"end":{"line":252,"column":17}},"77":{"start":{"line":253,"column":4},"end":{"line":255,"column":5}},"78":{"start":{"line":254,"column":6},"end":{"line":254,"column":35}},"79":{"start":{"line":256,"column":4},"end":{"line":258,"column":6}},"80":{"start":{"line":259,"column":4},"end":{"line":259,"column":22}},"81":{"start":{"line":266,"column":4},"end":{"line":266,"column":20}},"82":{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},"83":{"start":{"line":268,"column":6},"end":{"line":268,"column":37}},"84":{"start":{"line":278,"column":25},"end":{"line":278,"column":35}},"85":{"start":{"line":280,"column":4},"end":{"line":282,"column":5}},"86":{"start":{"line":281,"column":6},"end":{"line":281,"column":22}},"87":{"start":{"line":289,"column":4},"end":{"line":289,"column":22}},"88":{"start":{"line":300,"column":20},"end":{"line":300,"column":48}},"89":{"start":{"line":301,"column":4},"end":{"line":301,"column":23}},"90":{"start":{"line":308,"column":25},"end":{"line":308,"column":35}},"91":{"start":{"line":310,"column":4},"end":{"line":310,"column":22}},"92":{"start":{"line":311,"column":4},"end":{"line":315,"column":5}},"93":{"start":{"line":312,"column":6},"end":{"line":314,"column":19}},"94":{"start":{"line":313,"column":8},"end":{"line":313,"column":32}},"95":{"start":{"line":322,"column":28},"end":{"line":322,"column":38}},"96":{"start":{"line":324,"column":21},"end":{"line":324,"column":51}},"97":{"start":{"line":325,"column":19},"end":{"line":325,"column":53}},"98":{"start":{"line":327,"column":4},"end":{"line":327,"column":35}},"99":{"start":{"line":335,"column":4},"end":{"line":338,"column":5}},"100":{"start":{"line":336,"column":6},"end":{"line":336,"column":32}},"101":{"start":{"line":337,"column":6},"end":{"line":337,"column":24}},"102":{"start":{"line":339,"column":4},"end":{"line":341,"column":5}},"103":{"start":{"line":340,"column":6},"end":{"line":340,"column":39}},"104":{"start":{"line":350,"column":25},"end":{"line":350,"column":30}},"105":{"start":{"line":351,"column":20},"end":{"line":351,"column":44}},"106":{"start":{"line":352,"column":4},"end":{"line":354,"column":7}},"107":{"start":{"line":353,"column":6},"end":{"line":353,"column":24}},"108":{"start":{"line":361,"column":49},"end":{"line":361,"column":59}},"109":{"start":{"line":362,"column":24},"end":{"line":362,"column":34}},"110":{"start":{"line":364,"column":18},"end":{"line":364,"column":62}},"111":{"start":{"line":365,"column":4},"end":{"line":367,"column":5}},"112":{"start":{"line":366,"column":6},"end":{"line":366,"column":36}},"113":{"start":{"line":369,"column":4},"end":{"line":376,"column":6}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":70,"column":17},"end":{"line":70,"column":18}},"loc":{"start":{"line":70,"column":24},"end":{"line":70,"column":37}},"line":70},"1":{"name":"(anonymous_1)","decl":{"start":{"line":71,"column":17},"end":{"line":71,"column":18}},"loc":{"start":{"line":71,"column":23},"end":{"line":71,"column":25}},"line":71},"2":{"name":"(anonymous_2)","decl":{"start":{"line":99,"column":2},"end":{"line":99,"column":3}},"loc":{"start":{"line":99,"column":44},"end":{"line":108,"column":3}},"line":99},"3":{"name":"(anonymous_3)","decl":{"start":{"line":101,"column":37},"end":{"line":101,"column":38}},"loc":{"start":{"line":101,"column":43},"end":{"line":107,"column":5}},"line":101},"4":{"name":"(anonymous_4)","decl":{"start":{"line":102,"column":36},"end":{"line":102,"column":37}},"loc":{"start":{"line":102,"column":49},"end":{"line":106,"column":7}},"line":102},"5":{"name":"(anonymous_5)","decl":{"start":{"line":113,"column":2},"end":{"line":113,"column":3}},"loc":{"start":{"line":113,"column":28},"end":{"line":119,"column":3}},"line":113},"6":{"name":"(anonymous_6)","decl":{"start":{"line":126,"column":2},"end":{"line":126,"column":3}},"loc":{"start":{"line":126,"column":36},"end":{"line":134,"column":3}},"line":126},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":2},"end":{"line":141,"column":3}},"loc":{"start":{"line":141,"column":38},"end":{"line":146,"column":3}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":154,"column":2},"end":{"line":154,"column":3}},"loc":{"start":{"line":154,"column":28},"end":{"line":186,"column":3}},"line":154},"9":{"name":"(anonymous_9)","decl":{"start":{"line":194,"column":2},"end":{"line":194,"column":3}},"loc":{"start":{"line":194,"column":27},"end":{"line":244,"column":3}},"line":194},"10":{"name":"(anonymous_10)","decl":{"start":{"line":251,"column":2},"end":{"line":251,"column":3}},"loc":{"start":{"line":251,"column":21},"end":{"line":260,"column":3}},"line":251},"11":{"name":"(anonymous_11)","decl":{"start":{"line":265,"column":2},"end":{"line":265,"column":3}},"loc":{"start":{"line":265,"column":22},"end":{"line":270,"column":3}},"line":265},"12":{"name":"(anonymous_12)","decl":{"start":{"line":277,"column":2},"end":{"line":277,"column":3}},"loc":{"start":{"line":277,"column":32},"end":{"line":283,"column":3}},"line":277},"13":{"name":"(anonymous_13)","decl":{"start":{"line":288,"column":2},"end":{"line":288,"column":3}},"loc":{"start":{"line":288,"column":25},"end":{"line":290,"column":3}},"line":288},"14":{"name":"(anonymous_14)","decl":{"start":{"line":299,"column":2},"end":{"line":299,"column":3}},"loc":{"start":{"line":299,"column":45},"end":{"line":302,"column":3}},"line":299},"15":{"name":"(anonymous_15)","decl":{"start":{"line":307,"column":13},"end":{"line":307,"column":14}},"loc":{"start":{"line":307,"column":19},"end":{"line":316,"column":3}},"line":307},"16":{"name":"(anonymous_16)","decl":{"start":{"line":312,"column":31},"end":{"line":312,"column":32}},"loc":{"start":{"line":312,"column":37},"end":{"line":314,"column":7}},"line":312},"17":{"name":"(anonymous_17)","decl":{"start":{"line":321,"column":13},"end":{"line":321,"column":14}},"loc":{"start":{"line":321,"column":19},"end":{"line":328,"column":3}},"line":321},"18":{"name":"(anonymous_18)","decl":{"start":{"line":334,"column":15},"end":{"line":334,"column":16}},"loc":{"start":{"line":334,"column":21},"end":{"line":342,"column":3}},"line":334},"19":{"name":"(anonymous_19)","decl":{"start":{"line":349,"column":2},"end":{"line":349,"column":3}},"loc":{"start":{"line":349,"column":16},"end":{"line":355,"column":3}},"line":349},"20":{"name":"(anonymous_20)","decl":{"start":{"line":352,"column":31},"end":{"line":352,"column":32}},"loc":{"start":{"line":352,"column":37},"end":{"line":354,"column":5}},"line":352},"21":{"name":"(anonymous_21)","decl":{"start":{"line":360,"column":2},"end":{"line":360,"column":3}},"loc":{"start":{"line":360,"column":11},"end":{"line":377,"column":3}},"line":360}},"branchMap":{"0":{"loc":{"start":{"line":99,"column":26},"end":{"line":99,"column":42}},"type":"default-arg","locations":[{"start":{"line":99,"column":37},"end":{"line":99,"column":42}}],"line":99},"1":{"loc":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"type":"if","locations":[{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},{"start":{"line":103,"column":8},"end":{"line":105,"column":9}}],"line":103},"2":{"loc":{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":118,"column":5}},{"start":{"line":114,"column":4},"end":{"line":118,"column":5}}],"line":114},"3":{"loc":{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":130,"column":5}},{"start":{"line":127,"column":4},"end":{"line":130,"column":5}}],"line":127},"4":{"loc":{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":131,"column":4},"end":{"line":133,"column":5}},{"start":{"line":131,"column":4},"end":{"line":133,"column":5}}],"line":131},"5":{"loc":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},{"start":{"line":143,"column":4},"end":{"line":145,"column":5}}],"line":143},"6":{"loc":{"start":{"line":158,"column":11},"end":{"line":158,"column":33}},"type":"binary-expr","locations":[{"start":{"line":158,"column":11},"end":{"line":158,"column":15}},{"start":{"line":158,"column":19},"end":{"line":158,"column":33}}],"line":158},"7":{"loc":{"start":{"line":159,"column":12},"end":{"line":159,"column":39}},"type":"binary-expr","locations":[{"start":{"line":159,"column":12},"end":{"line":159,"column":17}},{"start":{"line":159,"column":21},"end":{"line":159,"column":39}}],"line":159},"8":{"loc":{"start":{"line":160,"column":12},"end":{"line":160,"column":39}},"type":"binary-expr","locations":[{"start":{"line":160,"column":12},"end":{"line":160,"column":17}},{"start":{"line":160,"column":21},"end":{"line":160,"column":39}}],"line":160},"9":{"loc":{"start":{"line":161,"column":9},"end":{"line":161,"column":36}},"type":"binary-expr","locations":[{"start":{"line":161,"column":9},"end":{"line":161,"column":11}},{"start":{"line":161,"column":15},"end":{"line":161,"column":36}}],"line":161},"10":{"loc":{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},"type":"if","locations":[{"start":{"line":162,"column":4},"end":{"line":166,"column":5}},{"start":{"line":162,"column":4},"end":{"line":166,"column":5}}],"line":162},"11":{"loc":{"start":{"line":165,"column":15},"end":{"line":165,"column":53}},"type":"binary-expr","locations":[{"start":{"line":165,"column":15},"end":{"line":165,"column":21}},{"start":{"line":165,"column":25},"end":{"line":165,"column":53}}],"line":165},"12":{"loc":{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},"type":"if","locations":[{"start":{"line":169,"column":4},"end":{"line":178,"column":5}},{"start":{"line":169,"column":4},"end":{"line":178,"column":5}}],"line":169},"13":{"loc":{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},"type":"if","locations":[{"start":{"line":171,"column":11},"end":{"line":178,"column":5}},{"start":{"line":171,"column":11},"end":{"line":178,"column":5}}],"line":171},"14":{"loc":{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},"type":"if","locations":[{"start":{"line":179,"column":4},"end":{"line":183,"column":5}},{"start":{"line":179,"column":4},"end":{"line":183,"column":5}}],"line":179},"15":{"loc":{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},"type":"if","locations":[{"start":{"line":181,"column":11},"end":{"line":183,"column":5}},{"start":{"line":181,"column":11},"end":{"line":183,"column":5}}],"line":181},"16":{"loc":{"start":{"line":202,"column":13},"end":{"line":202,"column":42}},"type":"binary-expr","locations":[{"start":{"line":202,"column":13},"end":{"line":202,"column":19}},{"start":{"line":202,"column":23},"end":{"line":202,"column":42}}],"line":202},"17":{"loc":{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":206,"column":5}},{"start":{"line":204,"column":4},"end":{"line":206,"column":5}}],"line":204},"18":{"loc":{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},"type":"if","locations":[{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},{"start":{"line":207,"column":4},"end":{"line":209,"column":5}}],"line":207},"19":{"loc":{"start":{"line":211,"column":26},"end":{"line":211,"column":92}},"type":"binary-expr","locations":[{"start":{"line":211,"column":26},"end":{"line":211,"column":48}},{"start":{"line":211,"column":52},"end":{"line":211,"column":92}}],"line":211},"20":{"loc":{"start":{"line":213,"column":4},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":213,"column":4},"end":{"line":233,"column":5}},{"start":{"line":213,"column":4},"end":{"line":233,"column":5}}],"line":213},"21":{"loc":{"start":{"line":213,"column":8},"end":{"line":213,"column":32}},"type":"binary-expr","locations":[{"start":{"line":213,"column":8},"end":{"line":213,"column":14}},{"start":{"line":213,"column":18},"end":{"line":213,"column":32}}],"line":213},"22":{"loc":{"start":{"line":215,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":215,"column":11},"end":{"line":233,"column":5}},{"start":{"line":215,"column":11},"end":{"line":233,"column":5}}],"line":215},"23":{"loc":{"start":{"line":217,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":217,"column":11},"end":{"line":233,"column":5}},{"start":{"line":217,"column":11},"end":{"line":233,"column":5}}],"line":217},"24":{"loc":{"start":{"line":217,"column":15},"end":{"line":217,"column":39}},"type":"binary-expr","locations":[{"start":{"line":217,"column":15},"end":{"line":217,"column":22}},{"start":{"line":217,"column":26},"end":{"line":217,"column":39}}],"line":217},"25":{"loc":{"start":{"line":219,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":219,"column":11},"end":{"line":233,"column":5}},{"start":{"line":219,"column":11},"end":{"line":233,"column":5}}],"line":219},"26":{"loc":{"start":{"line":221,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":221,"column":11},"end":{"line":233,"column":5}},{"start":{"line":221,"column":11},"end":{"line":233,"column":5}}],"line":221},"27":{"loc":{"start":{"line":223,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":223,"column":11},"end":{"line":233,"column":5}},{"start":{"line":223,"column":11},"end":{"line":233,"column":5}}],"line":223},"28":{"loc":{"start":{"line":225,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":225,"column":11},"end":{"line":233,"column":5}},{"start":{"line":225,"column":11},"end":{"line":233,"column":5}}],"line":225},"29":{"loc":{"start":{"line":227,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":227,"column":11},"end":{"line":233,"column":5}},{"start":{"line":227,"column":11},"end":{"line":233,"column":5}}],"line":227},"30":{"loc":{"start":{"line":229,"column":11},"end":{"line":233,"column":5}},"type":"if","locations":[{"start":{"line":229,"column":11},"end":{"line":233,"column":5}},{"start":{"line":229,"column":11},"end":{"line":233,"column":5}}],"line":229},"31":{"loc":{"start":{"line":235,"column":4},"end":{"line":238,"column":5}},"type":"if","locations":[{"start":{"line":235,"column":4},"end":{"line":238,"column":5}},{"start":{"line":235,"column":4},"end":{"line":238,"column":5}}],"line":235},"32":{"loc":{"start":{"line":235,"column":8},"end":{"line":235,"column":35}},"type":"binary-expr","locations":[{"start":{"line":235,"column":8},"end":{"line":235,"column":16}},{"start":{"line":235,"column":20},"end":{"line":235,"column":35}}],"line":235},"33":{"loc":{"start":{"line":240,"column":19},"end":{"line":240,"column":54}},"type":"binary-expr","locations":[{"start":{"line":240,"column":19},"end":{"line":240,"column":38}},{"start":{"line":240,"column":42},"end":{"line":240,"column":54}}],"line":240},"34":{"loc":{"start":{"line":253,"column":4},"end":{"line":255,"column":5}},"type":"if","locations":[{"start":{"line":253,"column":4},"end":{"line":255,"column":5}},{"start":{"line":253,"column":4},"end":{"line":255,"column":5}}],"line":253},"35":{"loc":{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},"type":"if","locations":[{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},{"start":{"line":267,"column":4},"end":{"line":269,"column":5}}],"line":267},"36":{"loc":{"start":{"line":280,"column":4},"end":{"line":282,"column":5}},"type":"if","locations":[{"start":{"line":280,"column":4},"end":{"line":282,"column":5}},{"start":{"line":280,"column":4},"end":{"line":282,"column":5}}],"line":280},"37":{"loc":{"start":{"line":311,"column":4},"end":{"line":315,"column":5}},"type":"if","locations":[{"start":{"line":311,"column":4},"end":{"line":315,"column":5}},{"start":{"line":311,"column":4},"end":{"line":315,"column":5}}],"line":311},"38":{"loc":{"start":{"line":311,"column":8},"end":{"line":311,"column":45}},"type":"binary-expr","locations":[{"start":{"line":311,"column":8},"end":{"line":311,"column":27}},{"start":{"line":311,"column":31},"end":{"line":311,"column":45}}],"line":311},"39":{"loc":{"start":{"line":325,"column":19},"end":{"line":325,"column":53}},"type":"binary-expr","locations":[{"start":{"line":325,"column":19},"end":{"line":325,"column":30}},{"start":{"line":325,"column":34},"end":{"line":325,"column":53}}],"line":325},"40":{"loc":{"start":{"line":335,"column":4},"end":{"line":338,"column":5}},"type":"if","locations":[{"start":{"line":335,"column":4},"end":{"line":338,"column":5}},{"start":{"line":335,"column":4},"end":{"line":338,"column":5}}],"line":335},"41":{"loc":{"start":{"line":335,"column":8},"end":{"line":335,"column":41}},"type":"binary-expr","locations":[{"start":{"line":335,"column":8},"end":{"line":335,"column":27}},{"start":{"line":335,"column":31},"end":{"line":335,"column":41}}],"line":335},"42":{"loc":{"start":{"line":339,"column":4},"end":{"line":341,"column":5}},"type":"if","locations":[{"start":{"line":339,"column":4},"end":{"line":341,"column":5}},{"start":{"line":339,"column":4},"end":{"line":341,"column":5}}],"line":339},"43":{"loc":{"start":{"line":339,"column":8},"end":{"line":339,"column":41}},"type":"binary-expr","locations":[{"start":{"line":339,"column":8},"end":{"line":339,"column":26}},{"start":{"line":339,"column":30},"end":{"line":339,"column":41}}],"line":339},"44":{"loc":{"start":{"line":365,"column":4},"end":{"line":367,"column":5}},"type":"if","locations":[{"start":{"line":365,"column":4},"end":{"line":367,"column":5}},{"start":{"line":365,"column":4},"end":{"line":367,"column":5}}],"line":365},"45":{"loc":{"start":{"line":370,"column":6},"end":{"line":370,"column":37}},"type":"binary-expr","locations":[{"start":{"line":370,"column":6},"end":{"line":370,"column":13}},{"start":{"line":370,"column":17},"end":{"line":370,"column":37}}],"line":370}},"s":{"0":1,"1":1,"2":1,"3":42,"4":1,"5":1,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":0,"13":1,"14":0,"15":0,"16":1,"17":1,"18":2,"19":2,"20":1,"21":86,"22":86,"23":86,"24":86,"25":86,"26":86,"27":86,"28":2,"29":84,"30":86,"31":86,"32":4,"33":82,"34":6,"35":76,"36":86,"37":4,"38":82,"39":6,"40":86,"41":43,"42":43,"43":43,"44":43,"45":43,"46":1,"47":43,"48":1,"49":43,"50":43,"51":43,"52":4,"53":39,"54":2,"55":37,"56":5,"57":32,"58":2,"59":30,"60":2,"61":28,"62":2,"63":26,"64":4,"65":22,"66":0,"67":22,"68":0,"69":22,"70":43,"71":0,"72":0,"73":43,"74":43,"75":43,"76":42,"77":42,"78":28,"79":42,"80":42,"81":42,"82":42,"83":1,"84":1,"85":1,"86":0,"87":1,"88":43,"89":43,"90":42,"91":42,"92":42,"93":41,"94":0,"95":0,"96":0,"97":0,"98":0,"99":43,"100":0,"101":0,"102":43,"103":2,"104":0,"105":0,"106":0,"107":0,"108":43,"109":43,"110":43,"111":43,"112":0,"113":43},"f":{"0":42,"1":0,"2":1,"3":0,"4":0,"5":1,"6":1,"7":2,"8":86,"9":43,"10":42,"11":42,"12":1,"13":1,"14":43,"15":42,"16":0,"17":0,"18":43,"19":0,"20":0,"21":43},"b":{"0":[0],"1":[0,0],"2":[0,1],"3":[0,1],"4":[1,0],"5":[1,1],"6":[86,78],"7":[86,76],"8":[86,82],"9":[86,84],"10":[2,84],"11":[84,84],"12":[4,82],"13":[6,76],"14":[4,82],"15":[6,76],"16":[43,38],"17":[1,42],"18":[1,42],"19":[43,2],"20":[4,39],"21":[43,5],"22":[2,37],"23":[5,32],"24":[37,33],"25":[2,30],"26":[2,28],"27":[2,26],"28":[4,22],"29":[0,22],"30":[0,22],"31":[0,43],"32":[43,43],"33":[43,43],"34":[28,14],"35":[1,41],"36":[0,1],"37":[41,1],"38":[42,41],"39":[0,0],"40":[0,43],"41":[43,41],"42":[2,41],"43":[43,2],"44":[0,43],"45":[43,41]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"66b990ceb52b0e9744eded808b16f7db8252fee1"}
,"/media/sean/work2/www/react-moment/src/objects.js": {"path":"/media/sean/work2/www/react-moment/src/objects.js","statementMap":{"0":{"start":{"line":27,"column":19},"end":{"line":27,"column":36}},"1":{"start":{"line":28,"column":19},"end":{"line":28,"column":42}},"2":{"start":{"line":29,"column":2},"end":{"line":31,"column":42}},"3":{"start":{"line":30,"column":19},"end":{"line":30,"column":47}},"4":{"start":{"line":31,"column":20},"end":{"line":31,"column":40}},"5":{"start":{"line":33,"column":2},"end":{"line":33,"column":18}}},"fnMap":{"0":{"name":"objectKeyFilter","decl":{"start":{"line":26,"column":16},"end":{"line":26,"column":31}},"loc":{"start":{"line":26,"column":44},"end":{"line":34,"column":1}},"line":26},"1":{"name":"(anonymous_1)","decl":{"start":{"line":30,"column":12},"end":{"line":30,"column":13}},"loc":{"start":{"line":30,"column":19},"end":{"line":30,"column":47}},"line":30},"2":{"name":"(anonymous_2)","decl":{"start":{"line":31,"column":13},"end":{"line":31,"column":14}},"loc":{"start":{"line":31,"column":20},"end":{"line":31,"column":40}},"line":31}},"branchMap":{},"s":{"0":44,"1":44,"2":44,"3":626,"4":587,"5":44},"f":{"0":44,"1":626,"2":587},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"85bd948993fced7c0079bb5c6377263d615a4b96"}
}
{
"name": "react-moment",
"description": "React component for the moment date library.",
"version": "0.9.2",
"version": "0.9.3",
"author": {

@@ -6,0 +6,0 @@ "name": "Sean Hickey",

@@ -866,1 +866,2 @@ react-moment

* [pesimeao](https://github.com/pesimeao)
* [DoctorHowser](https://github.com/DoctorHowser)

@@ -188,2 +188,60 @@ import React from 'react';

/**
* Returns computed content from sent props
* @param {*} props
* @returns {*}
*
*/
static getContent(props) {
const {
fromNow, fromNowDuring, from, add, subtract, toNow, to, ago,
calendar, diff, duration, durationFromNow, unit, decimal,
} = props;
let { format } = props;
format = format || Moment.globalFormat;
const datetime = Moment.getDatetime(props);
if (add) {
datetime.add(add);
}
if (subtract) {
datetime.subtract(subtract);
}
const fromNowPeriod = Boolean(fromNowDuring) && -datetime.diff(moment()) < fromNowDuring;
let content = '';
if (format && !fromNowPeriod) {
content = datetime.format(format);
} else if (from) {
content = datetime.from(from, ago);
} else if (fromNow || fromNowPeriod) {
content = datetime.fromNow(ago);
} else if (to) {
content = datetime.to(to, ago);
} else if (toNow) {
content = datetime.toNow(ago);
} else if (calendar) {
content = datetime.calendar(null, calendar);
} else if (diff) {
content = datetime.diff(diff, unit, decimal);
} else if (duration) {
content = datetime.diff(duration);
} else if (durationFromNow) {
content = moment().diff(datetime);
} else {
content = datetime.toString();
}
if (duration || durationFromNow) {
content = moment.duration(content);
content = content.format(format);
}
const filter = Moment.globalFilter || props.filter;
content = filter(content);
return content;
}
/**

@@ -206,9 +264,2 @@ * Constructor

/**
* Invoked immediately before mounting occurs
*/
componentWillMount() {
this.update(this.props);
}
/**
* Invoked immediately after a component is mounted

@@ -224,11 +275,2 @@ */

/**
* Invoked before a mounted component receives new props
*
* @param {*} nextProps
*/
componentWillReceiveProps(nextProps) {
this.update(nextProps);
}
/**
* Invoked immediately after updating occurs

@@ -254,2 +296,14 @@ *

/**
* Invoked as a mounted component receives new props
* What it returns will become state.
*
* @param {*} nextProps
* @returns {*} (new state)
*/
static getDerivedStateFromProps(nextProps) {
const content = Moment.getContent(nextProps);
return { content };
}
/**
* Starts the interval timer.

@@ -269,2 +323,15 @@ */

/**
* Returns the element title to use on hover
*/
getTitle = () => {
const { titleFormat } = this.props;
const datetime = Moment.getDatetime(this.props);
const format = titleFormat || Moment.globalFormat;
return datetime.format(format);
};
/**
* Clears the interval timer.

@@ -282,67 +349,10 @@ */

/**
* Returns the element title to use on hover
*/
getTitle = () => {
const { titleFormat } = this.props;
const datetime = Moment.getDatetime(this.props);
const format = titleFormat || Moment.globalFormat;
return datetime.format(format);
};
/**
* Updates this.state.content
* @param {*} props
*/
update(props) {
props = props || this.props;
const {
fromNow, fromNowDuring, from, add, subtract, toNow, to, ago,
calendar, diff, duration, durationFromNow, unit, decimal, onChange
} = props;
let { format } = props;
format = format || Moment.globalFormat;
const datetime = Moment.getDatetime(props);
if (add) {
datetime.add(add);
}
if (subtract) {
datetime.subtract(subtract);
}
const fromNowPeriod = Boolean(fromNowDuring) && -datetime.diff(moment()) < fromNowDuring;
let content = '';
if (format && !fromNowPeriod) {
content = datetime.format(format);
} else if (from) {
content = datetime.from(from, ago);
} else if (fromNow || fromNowPeriod) {
content = datetime.fromNow(ago);
} else if (to) {
content = datetime.to(to, ago);
} else if (toNow) {
content = datetime.toNow(ago);
} else if (calendar) {
content = datetime.calendar(null, calendar);
} else if (diff) {
content = datetime.diff(diff, unit, decimal);
} else if (duration) {
content = datetime.diff(duration);
} else if (durationFromNow) {
content = moment().diff(datetime);
} else {
content = datetime.toString();
}
if (duration || durationFromNow) {
content = moment.duration(content);
content = content.format(format);
}
const filter = Moment.globalFilter || this.props.filter;
content = filter(content);
const { onChange } = props;
const content = Moment.getContent(props);
this.setState({ content }, () => {

@@ -349,0 +359,0 @@ onChange(content);

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

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