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

father

Package Overview
Dependencies
Maintainers
1
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

father - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

2

coverage/coverage.json

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

{"/Users/popomore/code/popomore/father/index.js":{"path":"/Users/popomore/code/popomore/father/index.js","s":{"1":1,"2":1,"3":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":50}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":62}}},"branchMap":{}},"/Users/popomore/code/popomore/father/lib/package.js":{"path":"/Users/popomore/code/popomore/father/lib/package.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":13,"13":8,"14":5,"15":13,"16":13,"17":13,"18":13,"19":13,"20":13,"21":13,"22":13,"23":13,"24":13,"25":13,"26":11,"27":11,"28":8,"29":11,"30":13,"31":13,"32":13,"33":13,"34":13,"35":13,"36":13,"37":13,"38":13,"39":13,"40":13,"41":1,"42":28,"43":28,"44":24,"45":24,"46":24,"47":3,"48":3,"49":21,"50":18,"51":18,"52":18,"53":18,"54":1,"55":18,"56":21,"57":19,"58":8,"59":8,"60":21,"61":22,"62":21,"63":21,"64":25,"65":12,"66":4,"67":8,"68":8,"69":163,"70":71,"71":92,"72":0,"73":92,"74":13,"75":13,"76":91,"77":61,"78":5,"79":61,"80":6,"81":6,"82":10,"83":10,"84":6,"85":55,"86":55,"87":1},"b":{"1":[8,5],"2":[8,3],"3":[13,0],"4":[28,5],"5":[24,4],"6":[1,17],"7":[25,4],"8":[4,8],"9":[8,0],"10":[71,92],"11":[0,92],"12":[92,11],"13":[16,76],"14":[5,56],"15":[61,5],"16":[6,55],"17":[55,0]},"f":{"1":13,"2":13,"3":11,"4":13,"5":28,"6":18,"7":19,"8":8,"9":22,"10":12,"11":163,"12":13,"13":91,"14":61,"15":10,"16":0},"fnMap":{"1":{"name":"(anonymous_1)","line":22,"loc":{"start":{"line":22,"column":14},"end":{"line":22,"column":36}}},"2":{"name":"(anonymous_2)","line":36,"loc":{"start":{"line":36,"column":10},"end":{"line":36,"column":21}}},"3":{"name":"(anonymous_3)","line":47,"loc":{"start":{"line":47,"column":15},"end":{"line":47,"column":30}}},"4":{"name":"(anonymous_4)","line":64,"loc":{"start":{"line":64,"column":15},"end":{"line":64,"column":26}}},"5":{"name":"lookupFiles","line":76,"loc":{"start":{"line":76,"column":4},"end":{"line":76,"column":30}}},"6":{"name":"(anonymous_6)","line":89,"loc":{"start":{"line":89,"column":18},"end":{"line":89,"column":46}}},"7":{"name":"(anonymous_7)","line":103,"loc":{"start":{"line":103,"column":18},"end":{"line":103,"column":33}}},"8":{"name":"(anonymous_8)","line":106,"loc":{"start":{"line":106,"column":19},"end":{"line":106,"column":34}}},"9":{"name":"(anonymous_9)","line":111,"loc":{"start":{"line":111,"column":30},"end":{"line":111,"column":57}}},"10":{"name":"(anonymous_10)","line":125,"loc":{"start":{"line":125,"column":7},"end":{"line":125,"column":21}}},"11":{"name":"(anonymous_11)","line":135,"loc":{"start":{"line":135,"column":7},"end":{"line":135,"column":20}}},"12":{"name":"(anonymous_12)","line":144,"loc":{"start":{"line":144,"column":19},"end":{"line":144,"column":34}}},"13":{"name":"(anonymous_13)","line":146,"loc":{"start":{"line":146,"column":17},"end":{"line":146,"column":31}}},"14":{"name":"(anonymous_14)","line":148,"loc":{"start":{"line":148,"column":13},"end":{"line":148,"column":24}}},"15":{"name":"(anonymous_15)","line":152,"loc":{"start":{"line":152,"column":39},"end":{"line":152,"column":52}}},"16":{"name":"(anonymous_16)","line":171,"loc":{"start":{"line":171,"column":15},"end":{"line":171,"column":26}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":23}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":27}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":21}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":27}},"5":{"start":{"line":7,"column":0},"end":{"line":7,"column":27}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":35}},"7":{"start":{"line":9,"column":0},"end":{"line":9,"column":35}},"8":{"start":{"line":10,"column":0},"end":{"line":10,"column":37}},"9":{"start":{"line":11,"column":0},"end":{"line":11,"column":47}},"10":{"start":{"line":14,"column":0},"end":{"line":16,"column":2}},"11":{"start":{"line":18,"column":0},"end":{"line":173,"column":3}},"12":{"start":{"line":23,"column":4},"end":{"line":27,"column":5}},"13":{"start":{"line":24,"column":6},"end":{"line":24,"column":27}},"14":{"start":{"line":26,"column":6},"end":{"line":26,"column":25}},"15":{"start":{"line":29,"column":4},"end":{"line":29,"column":20}},"16":{"start":{"line":30,"column":4},"end":{"line":30,"column":28}},"17":{"start":{"line":32,"column":4},"end":{"line":32,"column":88}},"18":{"start":{"line":33,"column":4},"end":{"line":33,"column":31}},"19":{"start":{"line":37,"column":4},"end":{"line":37,"column":39}},"20":{"start":{"line":38,"column":4},"end":{"line":38,"column":25}},"21":{"start":{"line":40,"column":4},"end":{"line":40,"column":32}},"22":{"start":{"line":41,"column":4},"end":{"line":41,"column":45}},"23":{"start":{"line":43,"column":4},"end":{"line":43,"column":43}},"24":{"start":{"line":44,"column":4},"end":{"line":44,"column":21}},"25":{"start":{"line":46,"column":4},"end":{"line":53,"column":20}},"26":{"start":{"line":48,"column":8},"end":{"line":48,"column":41}},"27":{"start":{"line":49,"column":8},"end":{"line":51,"column":9}},"28":{"start":{"line":50,"column":10},"end":{"line":50,"column":54}},"29":{"start":{"line":52,"column":8},"end":{"line":52,"column":40}},"30":{"start":{"line":54,"column":4},"end":{"line":54,"column":79}},"31":{"start":{"line":56,"column":4},"end":{"line":56,"column":23}},"32":{"start":{"line":58,"column":4},"end":{"line":58,"column":37}},"33":{"start":{"line":59,"column":4},"end":{"line":59,"column":24}},"34":{"start":{"line":60,"column":4},"end":{"line":60,"column":26}},"35":{"start":{"line":61,"column":4},"end":{"line":61,"column":16}},"36":{"start":{"line":65,"column":4},"end":{"line":65,"column":38}},"37":{"start":{"line":66,"column":4},"end":{"line":66,"column":48}},"38":{"start":{"line":69,"column":4},"end":{"line":69,"column":26}},"39":{"start":{"line":72,"column":4},"end":{"line":74,"column":5}},"40":{"start":{"line":73,"column":6},"end":{"line":73,"column":38}},"41":{"start":{"line":76,"column":4},"end":{"line":122,"column":5}},"42":{"start":{"line":77,"column":6},"end":{"line":77,"column":42}},"43":{"start":{"line":79,"column":6},"end":{"line":120,"column":7}},"44":{"start":{"line":80,"column":8},"end":{"line":80,"column":17}},"45":{"start":{"line":81,"column":8},"end":{"line":86,"column":9}},"46":{"start":{"line":82,"column":10},"end":{"line":82,"column":50}},"47":{"start":{"line":84,"column":10},"end":{"line":84,"column":40}},"48":{"start":{"line":85,"column":10},"end":{"line":85,"column":20}},"49":{"start":{"line":88,"column":8},"end":{"line":99,"column":17}},"50":{"start":{"line":90,"column":12},"end":{"line":90,"column":36}},"51":{"start":{"line":91,"column":12},"end":{"line":91,"column":53}},"52":{"start":{"line":94,"column":12},"end":{"line":94,"column":49}},"53":{"start":{"line":95,"column":12},"end":{"line":97,"column":13}},"54":{"start":{"line":96,"column":14},"end":{"line":96,"column":44}},"55":{"start":{"line":98,"column":12},"end":{"line":98,"column":28}},"56":{"start":{"line":101,"column":8},"end":{"line":109,"column":13}},"57":{"start":{"line":104,"column":12},"end":{"line":104,"column":42}},"58":{"start":{"line":107,"column":12},"end":{"line":107,"column":44}},"59":{"start":{"line":108,"column":12},"end":{"line":108,"column":48}},"60":{"start":{"line":111,"column":8},"end":{"line":113,"column":11}},"61":{"start":{"line":112,"column":10},"end":{"line":112,"column":45}},"62":{"start":{"line":115,"column":8},"end":{"line":117,"column":10}},"63":{"start":{"line":119,"column":8},"end":{"line":119,"column":61}},"64":{"start":{"line":121,"column":6},"end":{"line":121,"column":23}},"65":{"start":{"line":126,"column":4},"end":{"line":128,"column":5}},"66":{"start":{"line":127,"column":6},"end":{"line":127,"column":34}},"67":{"start":{"line":130,"column":4},"end":{"line":132,"column":5}},"68":{"start":{"line":131,"column":6},"end":{"line":131,"column":34}},"69":{"start":{"line":136,"column":4},"end":{"line":138,"column":5}},"70":{"start":{"line":137,"column":6},"end":{"line":137,"column":33}},"71":{"start":{"line":140,"column":4},"end":{"line":140,"column":55}},"72":{"start":{"line":140,"column":41},"end":{"line":140,"column":55}},"73":{"start":{"line":141,"column":4},"end":{"line":141,"column":53}},"74":{"start":{"line":145,"column":4},"end":{"line":145,"column":20}},"75":{"start":{"line":146,"column":4},"end":{"line":164,"column":7}},"76":{"start":{"line":147,"column":6},"end":{"line":163,"column":9}},"77":{"start":{"line":149,"column":10},"end":{"line":149,"column":61}},"78":{"start":{"line":149,"column":47},"end":{"line":149,"column":61}},"79":{"start":{"line":150,"column":10},"end":{"line":160,"column":11}},"80":{"start":{"line":151,"column":12},"end":{"line":151,"column":26}},"81":{"start":{"line":152,"column":12},"end":{"line":155,"column":15}},"82":{"start":{"line":153,"column":14},"end":{"line":153,"column":37}},"83":{"start":{"line":154,"column":14},"end":{"line":154,"column":35}},"84":{"start":{"line":156,"column":12},"end":{"line":156,"column":24}},"85":{"start":{"line":158,"column":12},"end":{"line":158,"column":40}},"86":{"start":{"line":159,"column":12},"end":{"line":159,"column":44}},"87":{"start":{"line":175,"column":0},"end":{"line":175,"column":25}}},"branchMap":{"1":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":23,"column":4}},{"start":{"line":23,"column":4},"end":{"line":23,"column":4}}]},"2":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":8},"end":{"line":49,"column":8}},{"start":{"line":49,"column":8},"end":{"line":49,"column":8}}]},"3":{"line":72,"type":"if","locations":[{"start":{"line":72,"column":4},"end":{"line":72,"column":4}},{"start":{"line":72,"column":4},"end":{"line":72,"column":4}}]},"4":{"line":77,"type":"binary-expr","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":18}},{"start":{"line":77,"column":23},"end":{"line":77,"column":40}}]},"5":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":6},"end":{"line":79,"column":6}},{"start":{"line":79,"column":6},"end":{"line":79,"column":6}}]},"6":{"line":95,"type":"if","locations":[{"start":{"line":95,"column":12},"end":{"line":95,"column":12}},{"start":{"line":95,"column":12},"end":{"line":95,"column":12}}]},"7":{"line":121,"type":"binary-expr","locations":[{"start":{"line":121,"column":13},"end":{"line":121,"column":16}},{"start":{"line":121,"column":20},"end":{"line":121,"column":22}}]},"8":{"line":126,"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":126,"column":4}},{"start":{"line":126,"column":4},"end":{"line":126,"column":4}}]},"9":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"10":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"11":{"line":140,"type":"if","locations":[{"start":{"line":140,"column":4},"end":{"line":140,"column":4}},{"start":{"line":140,"column":4},"end":{"line":140,"column":4}}]},"12":{"line":140,"type":"binary-expr","locations":[{"start":{"line":140,"column":8},"end":{"line":140,"column":21}},{"start":{"line":140,"column":25},"end":{"line":140,"column":39}}]},"13":{"line":141,"type":"cond-expr","locations":[{"start":{"line":141,"column":28},"end":{"line":141,"column":32}},{"start":{"line":141,"column":35},"end":{"line":141,"column":52}}]},"14":{"line":149,"type":"if","locations":[{"start":{"line":149,"column":10},"end":{"line":149,"column":10}},{"start":{"line":149,"column":10},"end":{"line":149,"column":10}}]},"15":{"line":149,"type":"binary-expr","locations":[{"start":{"line":149,"column":14},"end":{"line":149,"column":27}},{"start":{"line":149,"column":31},"end":{"line":149,"column":45}}]},"16":{"line":150,"type":"if","locations":[{"start":{"line":150,"column":10},"end":{"line":150,"column":10}},{"start":{"line":150,"column":10},"end":{"line":150,"column":10}}]},"17":{"line":159,"type":"cond-expr","locations":[{"start":{"line":159,"column":25},"end":{"line":159,"column":38}},{"start":{"line":159,"column":41},"end":{"line":159,"column":43}}]}}},"/Users/popomore/code/popomore/father/lib/spm-package.js":{"path":"/Users/popomore/code/popomore/father/lib/spm-package.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":9,"9":9,"10":9,"11":7,"12":9,"13":1,"14":1,"15":9,"16":9,"17":9,"18":9,"19":9,"20":1,"21":1,"22":7,"23":7,"24":7,"25":7,"26":3,"27":4,"28":4,"29":7,"30":7,"31":1,"32":4,"33":5,"34":1,"35":1,"36":7,"37":4,"38":7},"b":{"1":[9,1],"2":[9,4],"3":[9,6],"4":[9,7],"5":[3,4]},"f":{"1":9,"2":7,"3":9,"4":7,"5":4,"6":5,"7":1,"8":7},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":26}}},"2":{"name":"(anonymous_2)","line":17,"loc":{"start":{"line":17,"column":15},"end":{"line":17,"column":30}}},"3":{"name":"normalize","line":27,"loc":{"start":{"line":27,"column":0},"end":{"line":27,"column":24}}},"4":{"name":"resolveDeps","line":46,"loc":{"start":{"line":46,"column":0},"end":{"line":46,"column":38}}},"5":{"name":"getVersions","line":72,"loc":{"start":{"line":72,"column":0},"end":{"line":72,"column":27}}},"6":{"name":"(anonymous_6)","line":74,"loc":{"start":{"line":74,"column":12},"end":{"line":74,"column":27}}},"7":{"name":"(anonymous_7)","line":77,"loc":{"start":{"line":77,"column":10},"end":{"line":77,"column":25}}},"8":{"name":"getAncestor","line":82,"loc":{"start":{"line":82,"column":0},"end":{"line":82,"column":27}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":23}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":27}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":21}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":31}},"5":{"start":{"line":7,"column":0},"end":{"line":7,"column":35}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":43}},"7":{"start":{"line":10,"column":0},"end":{"line":23,"column":3}},"8":{"start":{"line":13,"column":4},"end":{"line":13,"column":57}},"9":{"start":{"line":14,"column":4},"end":{"line":14,"column":46}},"10":{"start":{"line":16,"column":4},"end":{"line":19,"column":20}},"11":{"start":{"line":18,"column":8},"end":{"line":18,"column":62}},"12":{"start":{"line":20,"column":4},"end":{"line":20,"column":15}},"13":{"start":{"line":25,"column":0},"end":{"line":25,"column":28}},"14":{"start":{"line":27,"column":0},"end":{"line":42,"column":1}},"15":{"start":{"line":28,"column":2},"end":{"line":28,"column":31}},"16":{"start":{"line":29,"column":2},"end":{"line":29,"column":21}},"17":{"start":{"line":30,"column":2},"end":{"line":30,"column":26}},"18":{"start":{"line":31,"column":2},"end":{"line":40,"column":4}},"19":{"start":{"line":41,"column":2},"end":{"line":41,"column":13}},"20":{"start":{"line":44,"column":0},"end":{"line":44,"column":22}},"21":{"start":{"line":46,"column":0},"end":{"line":66,"column":1}},"22":{"start":{"line":47,"column":2},"end":{"line":47,"column":49}},"23":{"start":{"line":48,"column":2},"end":{"line":48,"column":35}},"24":{"start":{"line":49,"column":2},"end":{"line":49,"column":54}},"25":{"start":{"line":51,"column":2},"end":{"line":56,"column":3}},"26":{"start":{"line":52,"column":4},"end":{"line":52,"column":34}},"27":{"start":{"line":54,"column":4},"end":{"line":54,"column":33}},"28":{"start":{"line":55,"column":4},"end":{"line":55,"column":34}},"29":{"start":{"line":58,"column":2},"end":{"line":58,"column":52}},"30":{"start":{"line":60,"column":2},"end":{"line":65,"column":4}},"31":{"start":{"line":72,"column":0},"end":{"line":80,"column":1}},"32":{"start":{"line":73,"column":2},"end":{"line":79,"column":7}},"33":{"start":{"line":75,"column":6},"end":{"line":75,"column":32}},"34":{"start":{"line":78,"column":6},"end":{"line":78,"column":29}},"35":{"start":{"line":82,"column":0},"end":{"line":87,"column":1}},"36":{"start":{"line":83,"column":2},"end":{"line":85,"column":3}},"37":{"start":{"line":84,"column":4},"end":{"line":84,"column":23}},"38":{"start":{"line":86,"column":2},"end":{"line":86,"column":14}}},"branchMap":{"1":{"line":30,"type":"binary-expr","locations":[{"start":{"line":30,"column":12},"end":{"line":30,"column":19}},{"start":{"line":30,"column":23},"end":{"line":30,"column":25}}]},"2":{"line":35,"type":"binary-expr","locations":[{"start":{"line":35,"column":18},"end":{"line":35,"column":38}},{"start":{"line":35,"column":42},"end":{"line":35,"column":44}}]},"3":{"line":36,"type":"binary-expr","locations":[{"start":{"line":36,"column":10},"end":{"line":36,"column":22}},{"start":{"line":36,"column":26},"end":{"line":36,"column":36}}]},"4":{"line":38,"type":"binary-expr","locations":[{"start":{"line":38,"column":12},"end":{"line":38,"column":26}},{"start":{"line":38,"column":30},"end":{"line":38,"column":32}}]},"5":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":2},"end":{"line":51,"column":2}},{"start":{"line":51,"column":2},"end":{"line":51,"column":2}}]}}},"/Users/popomore/code/popomore/father/lib/component-package.js":{"path":"/Users/popomore/code/popomore/father/lib/component-package.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":4,"7":4,"8":4,"9":4,"10":4,"11":1,"12":1,"13":4,"14":4,"15":4,"16":4,"17":4,"18":4,"19":1,"20":4,"21":4,"22":4,"23":4,"24":1,"25":4,"26":2,"27":4},"b":{"1":[4,0],"2":[4,4],"3":[4,1],"4":[4,3]},"f":{"1":4,"2":4,"3":4,"4":4,"5":4},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":15},"end":{"line":10,"column":26}}},"2":{"name":"(anonymous_2)","line":15,"loc":{"start":{"line":15,"column":15},"end":{"line":15,"column":30}}},"3":{"name":"normalize","line":25,"loc":{"start":{"line":25,"column":0},"end":{"line":25,"column":24}}},"4":{"name":"resolveDeps","line":43,"loc":{"start":{"line":43,"column":0},"end":{"line":43,"column":33}}},"5":{"name":"getAncestor","line":56,"loc":{"start":{"line":56,"column":0},"end":{"line":56,"column":27}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":27}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":21}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":35}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":49}},"5":{"start":{"line":8,"column":0},"end":{"line":21,"column":3}},"6":{"start":{"line":11,"column":4},"end":{"line":11,"column":59}},"7":{"start":{"line":12,"column":4},"end":{"line":12,"column":46}},"8":{"start":{"line":14,"column":4},"end":{"line":17,"column":20}},"9":{"start":{"line":16,"column":8},"end":{"line":16,"column":57}},"10":{"start":{"line":18,"column":4},"end":{"line":18,"column":15}},"11":{"start":{"line":23,"column":0},"end":{"line":23,"column":34}},"12":{"start":{"line":25,"column":0},"end":{"line":41,"column":1}},"13":{"start":{"line":26,"column":2},"end":{"line":26,"column":31}},"14":{"start":{"line":27,"column":2},"end":{"line":27,"column":21}},"15":{"start":{"line":28,"column":2},"end":{"line":28,"column":34}},"16":{"start":{"line":29,"column":2},"end":{"line":29,"column":32}},"17":{"start":{"line":30,"column":2},"end":{"line":39,"column":4}},"18":{"start":{"line":40,"column":2},"end":{"line":40,"column":13}},"19":{"start":{"line":43,"column":0},"end":{"line":54,"column":1}},"20":{"start":{"line":44,"column":2},"end":{"line":44,"column":35}},"21":{"start":{"line":45,"column":2},"end":{"line":45,"column":71}},"22":{"start":{"line":46,"column":2},"end":{"line":46,"column":50}},"23":{"start":{"line":48,"column":2},"end":{"line":53,"column":4}},"24":{"start":{"line":56,"column":0},"end":{"line":61,"column":1}},"25":{"start":{"line":57,"column":2},"end":{"line":59,"column":3}},"26":{"start":{"line":58,"column":4},"end":{"line":58,"column":23}},"27":{"start":{"line":60,"column":2},"end":{"line":60,"column":14}}},"branchMap":{"1":{"line":28,"type":"binary-expr","locations":[{"start":{"line":28,"column":16},"end":{"line":28,"column":27}},{"start":{"line":28,"column":31},"end":{"line":28,"column":33}}]},"2":{"line":29,"type":"binary-expr","locations":[{"start":{"line":29,"column":15},"end":{"line":29,"column":25}},{"start":{"line":29,"column":29},"end":{"line":29,"column":31}}]},"3":{"line":34,"type":"binary-expr","locations":[{"start":{"line":34,"column":18},"end":{"line":34,"column":34}},{"start":{"line":34,"column":38},"end":{"line":34,"column":40}}]},"4":{"line":35,"type":"binary-expr","locations":[{"start":{"line":35,"column":10},"end":{"line":35,"column":18}},{"start":{"line":35,"column":22},"end":{"line":35,"column":32}}]}}}}
{"/Users/popomore/code/popomore/father/index.js":{"path":"/Users/popomore/code/popomore/father/index.js","s":{"1":1,"2":1,"3":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":50}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":62}}},"branchMap":{}},"/Users/popomore/code/popomore/father/lib/package.js":{"path":"/Users/popomore/code/popomore/father/lib/package.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":15,"15":8,"16":7,"17":15,"18":15,"19":15,"20":15,"21":15,"22":15,"23":15,"24":15,"25":15,"26":15,"27":15,"28":11,"29":11,"30":8,"31":11,"32":15,"33":15,"34":15,"35":15,"36":15,"37":15,"38":15,"39":15,"40":15,"41":15,"42":15,"43":1,"44":35,"45":35,"46":8,"47":8,"48":35,"49":5,"50":30,"51":30,"52":3,"53":3,"54":27,"55":27,"56":27,"57":23,"58":23,"59":11,"60":12,"61":12,"62":6,"63":4,"64":2,"65":2,"66":2,"67":12,"68":12,"69":27,"70":29,"71":27,"72":27,"73":27,"74":12,"75":4,"76":8,"77":8,"78":170,"79":71,"80":99,"81":0,"82":99,"83":15,"84":15,"85":105,"86":68,"87":7,"88":68,"89":6,"90":6,"91":10,"92":10,"93":6,"94":62,"95":62,"96":1,"97":1,"98":27,"99":22,"100":2,"101":3,"102":1,"103":22},"b":{"1":[8,7],"2":[8,3],"3":[15,0],"4":[8,27],"5":[5,30],"6":[11,12],"7":[4,2],"8":[1,1],"9":[4,8],"10":[8,0],"11":[71,99],"12":[0,99],"13":[99,11],"14":[23,76],"15":[7,61],"16":[68,7],"17":[6,62],"18":[62,0],"19":[22,2,3],"20":[1,2]},"f":{"1":15,"2":15,"3":11,"4":15,"5":35,"6":23,"7":6,"8":29,"9":12,"10":170,"11":15,"12":105,"13":68,"14":10,"15":0,"16":27,"17":22},"fnMap":{"1":{"name":"(anonymous_1)","line":24,"loc":{"start":{"line":24,"column":14},"end":{"line":24,"column":36}}},"2":{"name":"(anonymous_2)","line":38,"loc":{"start":{"line":38,"column":10},"end":{"line":38,"column":21}}},"3":{"name":"(anonymous_3)","line":49,"loc":{"start":{"line":49,"column":15},"end":{"line":49,"column":30}}},"4":{"name":"(anonymous_4)","line":66,"loc":{"start":{"line":66,"column":15},"end":{"line":66,"column":26}}},"5":{"name":"lookupFiles","line":78,"loc":{"start":{"line":78,"column":4},"end":{"line":78,"column":30}}},"6":{"name":"(anonymous_6)","line":101,"loc":{"start":{"line":101,"column":25},"end":{"line":101,"column":53}}},"7":{"name":"(anonymous_7)","line":110,"loc":{"start":{"line":110,"column":15},"end":{"line":110,"column":28}}},"8":{"name":"(anonymous_8)","line":121,"loc":{"start":{"line":121,"column":25},"end":{"line":121,"column":52}}},"9":{"name":"(anonymous_9)","line":135,"loc":{"start":{"line":135,"column":7},"end":{"line":135,"column":21}}},"10":{"name":"(anonymous_10)","line":145,"loc":{"start":{"line":145,"column":7},"end":{"line":145,"column":20}}},"11":{"name":"(anonymous_11)","line":154,"loc":{"start":{"line":154,"column":19},"end":{"line":154,"column":34}}},"12":{"name":"(anonymous_12)","line":156,"loc":{"start":{"line":156,"column":17},"end":{"line":156,"column":31}}},"13":{"name":"(anonymous_13)","line":158,"loc":{"start":{"line":158,"column":13},"end":{"line":158,"column":24}}},"14":{"name":"(anonymous_14)","line":162,"loc":{"start":{"line":162,"column":39},"end":{"line":162,"column":52}}},"15":{"name":"(anonymous_15)","line":181,"loc":{"start":{"line":181,"column":15},"end":{"line":181,"column":26}}},"16":{"name":"getFileDeps","line":188,"loc":{"start":{"line":188,"column":0},"end":{"line":188,"column":32}}},"17":{"name":"transform","line":200,"loc":{"start":{"line":200,"column":2},"end":{"line":200,"column":27}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":23}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":27}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":21}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":27}},"5":{"start":{"line":7,"column":0},"end":{"line":7,"column":27}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":29}},"7":{"start":{"line":9,"column":0},"end":{"line":9,"column":35}},"8":{"start":{"line":10,"column":0},"end":{"line":10,"column":37}},"9":{"start":{"line":11,"column":0},"end":{"line":11,"column":35}},"10":{"start":{"line":12,"column":0},"end":{"line":12,"column":37}},"11":{"start":{"line":13,"column":0},"end":{"line":13,"column":47}},"12":{"start":{"line":16,"column":0},"end":{"line":18,"column":2}},"13":{"start":{"line":20,"column":0},"end":{"line":183,"column":3}},"14":{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},"15":{"start":{"line":26,"column":6},"end":{"line":26,"column":27}},"16":{"start":{"line":28,"column":6},"end":{"line":28,"column":25}},"17":{"start":{"line":31,"column":4},"end":{"line":31,"column":20}},"18":{"start":{"line":32,"column":4},"end":{"line":32,"column":28}},"19":{"start":{"line":34,"column":4},"end":{"line":34,"column":88}},"20":{"start":{"line":35,"column":4},"end":{"line":35,"column":31}},"21":{"start":{"line":39,"column":4},"end":{"line":39,"column":39}},"22":{"start":{"line":40,"column":4},"end":{"line":40,"column":25}},"23":{"start":{"line":42,"column":4},"end":{"line":42,"column":32}},"24":{"start":{"line":43,"column":4},"end":{"line":43,"column":45}},"25":{"start":{"line":45,"column":4},"end":{"line":45,"column":43}},"26":{"start":{"line":46,"column":4},"end":{"line":46,"column":21}},"27":{"start":{"line":48,"column":4},"end":{"line":55,"column":20}},"28":{"start":{"line":50,"column":8},"end":{"line":50,"column":41}},"29":{"start":{"line":51,"column":8},"end":{"line":53,"column":9}},"30":{"start":{"line":52,"column":10},"end":{"line":52,"column":54}},"31":{"start":{"line":54,"column":8},"end":{"line":54,"column":40}},"32":{"start":{"line":56,"column":4},"end":{"line":56,"column":79}},"33":{"start":{"line":58,"column":4},"end":{"line":58,"column":23}},"34":{"start":{"line":60,"column":4},"end":{"line":60,"column":37}},"35":{"start":{"line":61,"column":4},"end":{"line":61,"column":24}},"36":{"start":{"line":62,"column":4},"end":{"line":62,"column":26}},"37":{"start":{"line":63,"column":4},"end":{"line":63,"column":16}},"38":{"start":{"line":67,"column":4},"end":{"line":67,"column":38}},"39":{"start":{"line":68,"column":4},"end":{"line":68,"column":48}},"40":{"start":{"line":71,"column":4},"end":{"line":71,"column":26}},"41":{"start":{"line":74,"column":4},"end":{"line":76,"column":5}},"42":{"start":{"line":75,"column":6},"end":{"line":75,"column":38}},"43":{"start":{"line":78,"column":4},"end":{"line":132,"column":5}},"44":{"start":{"line":79,"column":6},"end":{"line":79,"column":42}},"45":{"start":{"line":80,"column":6},"end":{"line":83,"column":7}},"46":{"start":{"line":81,"column":8},"end":{"line":81,"column":26}},"47":{"start":{"line":82,"column":8},"end":{"line":82,"column":19}},"48":{"start":{"line":85,"column":6},"end":{"line":87,"column":7}},"49":{"start":{"line":86,"column":8},"end":{"line":86,"column":39}},"50":{"start":{"line":89,"column":6},"end":{"line":94,"column":7}},"51":{"start":{"line":90,"column":8},"end":{"line":90,"column":52}},"52":{"start":{"line":92,"column":8},"end":{"line":92,"column":38}},"53":{"start":{"line":93,"column":8},"end":{"line":93,"column":18}},"54":{"start":{"line":97,"column":6},"end":{"line":97,"column":40}},"55":{"start":{"line":98,"column":6},"end":{"line":98,"column":43}},"56":{"start":{"line":101,"column":6},"end":{"line":118,"column":13}},"57":{"start":{"line":102,"column":8},"end":{"line":102,"column":31}},"58":{"start":{"line":104,"column":8},"end":{"line":106,"column":9}},"59":{"start":{"line":105,"column":10},"end":{"line":105,"column":26}},"60":{"start":{"line":108,"column":8},"end":{"line":108,"column":46}},"61":{"start":{"line":109,"column":8},"end":{"line":115,"column":13}},"62":{"start":{"line":111,"column":12},"end":{"line":111,"column":48}},"63":{"start":{"line":111,"column":38},"end":{"line":111,"column":48}},"64":{"start":{"line":112,"column":12},"end":{"line":112,"column":44}},"65":{"start":{"line":113,"column":12},"end":{"line":113,"column":44}},"66":{"start":{"line":114,"column":12},"end":{"line":114,"column":57}},"67":{"start":{"line":116,"column":8},"end":{"line":116,"column":42}},"68":{"start":{"line":117,"column":8},"end":{"line":117,"column":24}},"69":{"start":{"line":121,"column":6},"end":{"line":123,"column":9}},"70":{"start":{"line":122,"column":8},"end":{"line":122,"column":43}},"71":{"start":{"line":125,"column":6},"end":{"line":127,"column":8}},"72":{"start":{"line":129,"column":6},"end":{"line":129,"column":59}},"73":{"start":{"line":131,"column":6},"end":{"line":131,"column":18}},"74":{"start":{"line":136,"column":4},"end":{"line":138,"column":5}},"75":{"start":{"line":137,"column":6},"end":{"line":137,"column":34}},"76":{"start":{"line":140,"column":4},"end":{"line":142,"column":5}},"77":{"start":{"line":141,"column":6},"end":{"line":141,"column":34}},"78":{"start":{"line":146,"column":4},"end":{"line":148,"column":5}},"79":{"start":{"line":147,"column":6},"end":{"line":147,"column":33}},"80":{"start":{"line":150,"column":4},"end":{"line":150,"column":55}},"81":{"start":{"line":150,"column":41},"end":{"line":150,"column":55}},"82":{"start":{"line":151,"column":4},"end":{"line":151,"column":53}},"83":{"start":{"line":155,"column":4},"end":{"line":155,"column":20}},"84":{"start":{"line":156,"column":4},"end":{"line":174,"column":7}},"85":{"start":{"line":157,"column":6},"end":{"line":173,"column":9}},"86":{"start":{"line":159,"column":10},"end":{"line":159,"column":61}},"87":{"start":{"line":159,"column":47},"end":{"line":159,"column":61}},"88":{"start":{"line":160,"column":10},"end":{"line":170,"column":11}},"89":{"start":{"line":161,"column":12},"end":{"line":161,"column":26}},"90":{"start":{"line":162,"column":12},"end":{"line":165,"column":15}},"91":{"start":{"line":163,"column":14},"end":{"line":163,"column":37}},"92":{"start":{"line":164,"column":14},"end":{"line":164,"column":35}},"93":{"start":{"line":166,"column":12},"end":{"line":166,"column":24}},"94":{"start":{"line":168,"column":12},"end":{"line":168,"column":40}},"95":{"start":{"line":169,"column":12},"end":{"line":169,"column":44}},"96":{"start":{"line":185,"column":0},"end":{"line":185,"column":25}},"97":{"start":{"line":188,"column":0},"end":{"line":203,"column":1}},"98":{"start":{"line":189,"column":2},"end":{"line":198,"column":3}},"99":{"start":{"line":191,"column":6},"end":{"line":191,"column":43}},"100":{"start":{"line":193,"column":6},"end":{"line":193,"column":42}},"101":{"start":{"line":197,"column":6},"end":{"line":197,"column":52}},"102":{"start":{"line":200,"column":2},"end":{"line":202,"column":3}},"103":{"start":{"line":201,"column":4},"end":{"line":201,"column":42}}},"branchMap":{"1":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":25,"column":4}},{"start":{"line":25,"column":4},"end":{"line":25,"column":4}}]},"2":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":8},"end":{"line":51,"column":8}},{"start":{"line":51,"column":8},"end":{"line":51,"column":8}}]},"3":{"line":74,"type":"if","locations":[{"start":{"line":74,"column":4},"end":{"line":74,"column":4}},{"start":{"line":74,"column":4},"end":{"line":74,"column":4}}]},"4":{"line":80,"type":"if","locations":[{"start":{"line":80,"column":6},"end":{"line":80,"column":6}},{"start":{"line":80,"column":6},"end":{"line":80,"column":6}}]},"5":{"line":85,"type":"if","locations":[{"start":{"line":85,"column":6},"end":{"line":85,"column":6}},{"start":{"line":85,"column":6},"end":{"line":85,"column":6}}]},"6":{"line":104,"type":"if","locations":[{"start":{"line":104,"column":8},"end":{"line":104,"column":8}},{"start":{"line":104,"column":8},"end":{"line":104,"column":8}}]},"7":{"line":111,"type":"if","locations":[{"start":{"line":111,"column":12},"end":{"line":111,"column":12}},{"start":{"line":111,"column":12},"end":{"line":111,"column":12}}]},"8":{"line":114,"type":"cond-expr","locations":[{"start":{"line":114,"column":42},"end":{"line":114,"column":44}},{"start":{"line":114,"column":47},"end":{"line":114,"column":56}}]},"9":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"10":{"line":140,"type":"if","locations":[{"start":{"line":140,"column":4},"end":{"line":140,"column":4}},{"start":{"line":140,"column":4},"end":{"line":140,"column":4}}]},"11":{"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}}]},"12":{"line":150,"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":150,"column":4}},{"start":{"line":150,"column":4},"end":{"line":150,"column":4}}]},"13":{"line":150,"type":"binary-expr","locations":[{"start":{"line":150,"column":8},"end":{"line":150,"column":21}},{"start":{"line":150,"column":25},"end":{"line":150,"column":39}}]},"14":{"line":151,"type":"cond-expr","locations":[{"start":{"line":151,"column":28},"end":{"line":151,"column":32}},{"start":{"line":151,"column":35},"end":{"line":151,"column":52}}]},"15":{"line":159,"type":"if","locations":[{"start":{"line":159,"column":10},"end":{"line":159,"column":10}},{"start":{"line":159,"column":10},"end":{"line":159,"column":10}}]},"16":{"line":159,"type":"binary-expr","locations":[{"start":{"line":159,"column":14},"end":{"line":159,"column":27}},{"start":{"line":159,"column":31},"end":{"line":159,"column":45}}]},"17":{"line":160,"type":"if","locations":[{"start":{"line":160,"column":10},"end":{"line":160,"column":10}},{"start":{"line":160,"column":10},"end":{"line":160,"column":10}}]},"18":{"line":169,"type":"cond-expr","locations":[{"start":{"line":169,"column":25},"end":{"line":169,"column":38}},{"start":{"line":169,"column":41},"end":{"line":169,"column":43}}]},"19":{"line":189,"type":"switch","locations":[{"start":{"line":190,"column":4},"end":{"line":191,"column":43}},{"start":{"line":192,"column":4},"end":{"line":193,"column":42}},{"start":{"line":194,"column":4},"end":{"line":197,"column":52}}]},"20":{"line":197,"type":"cond-expr","locations":[{"start":{"line":197,"column":30},"end":{"line":197,"column":46}},{"start":{"line":197,"column":49},"end":{"line":197,"column":51}}]}}},"/Users/popomore/code/popomore/father/lib/spm-package.js":{"path":"/Users/popomore/code/popomore/father/lib/spm-package.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":11,"9":11,"10":11,"11":7,"12":11,"13":1,"14":1,"15":11,"16":11,"17":11,"18":11,"19":11,"20":1,"21":1,"22":7,"23":7,"24":7,"25":7,"26":3,"27":4,"28":4,"29":7,"30":7,"31":1,"32":4,"33":5,"34":1,"35":1,"36":7,"37":4,"38":7},"b":{"1":[11,1],"2":[11,6],"3":[11,6],"4":[11,8],"5":[3,4]},"f":{"1":11,"2":7,"3":11,"4":7,"5":4,"6":5,"7":1,"8":7},"fnMap":{"1":{"name":"(anonymous_1)","line":12,"loc":{"start":{"line":12,"column":15},"end":{"line":12,"column":26}}},"2":{"name":"(anonymous_2)","line":17,"loc":{"start":{"line":17,"column":15},"end":{"line":17,"column":30}}},"3":{"name":"normalize","line":27,"loc":{"start":{"line":27,"column":0},"end":{"line":27,"column":24}}},"4":{"name":"resolveDeps","line":46,"loc":{"start":{"line":46,"column":0},"end":{"line":46,"column":38}}},"5":{"name":"getVersions","line":72,"loc":{"start":{"line":72,"column":0},"end":{"line":72,"column":27}}},"6":{"name":"(anonymous_6)","line":74,"loc":{"start":{"line":74,"column":12},"end":{"line":74,"column":27}}},"7":{"name":"(anonymous_7)","line":77,"loc":{"start":{"line":77,"column":10},"end":{"line":77,"column":25}}},"8":{"name":"getAncestor","line":82,"loc":{"start":{"line":82,"column":0},"end":{"line":82,"column":27}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":23}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":27}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":21}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":31}},"5":{"start":{"line":7,"column":0},"end":{"line":7,"column":35}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":43}},"7":{"start":{"line":10,"column":0},"end":{"line":23,"column":3}},"8":{"start":{"line":13,"column":4},"end":{"line":13,"column":57}},"9":{"start":{"line":14,"column":4},"end":{"line":14,"column":46}},"10":{"start":{"line":16,"column":4},"end":{"line":19,"column":20}},"11":{"start":{"line":18,"column":8},"end":{"line":18,"column":62}},"12":{"start":{"line":20,"column":4},"end":{"line":20,"column":15}},"13":{"start":{"line":25,"column":0},"end":{"line":25,"column":28}},"14":{"start":{"line":27,"column":0},"end":{"line":42,"column":1}},"15":{"start":{"line":28,"column":2},"end":{"line":28,"column":31}},"16":{"start":{"line":29,"column":2},"end":{"line":29,"column":21}},"17":{"start":{"line":30,"column":2},"end":{"line":30,"column":26}},"18":{"start":{"line":31,"column":2},"end":{"line":40,"column":4}},"19":{"start":{"line":41,"column":2},"end":{"line":41,"column":13}},"20":{"start":{"line":44,"column":0},"end":{"line":44,"column":22}},"21":{"start":{"line":46,"column":0},"end":{"line":66,"column":1}},"22":{"start":{"line":47,"column":2},"end":{"line":47,"column":49}},"23":{"start":{"line":48,"column":2},"end":{"line":48,"column":35}},"24":{"start":{"line":49,"column":2},"end":{"line":49,"column":54}},"25":{"start":{"line":51,"column":2},"end":{"line":56,"column":3}},"26":{"start":{"line":52,"column":4},"end":{"line":52,"column":34}},"27":{"start":{"line":54,"column":4},"end":{"line":54,"column":33}},"28":{"start":{"line":55,"column":4},"end":{"line":55,"column":34}},"29":{"start":{"line":58,"column":2},"end":{"line":58,"column":52}},"30":{"start":{"line":60,"column":2},"end":{"line":65,"column":4}},"31":{"start":{"line":72,"column":0},"end":{"line":80,"column":1}},"32":{"start":{"line":73,"column":2},"end":{"line":79,"column":7}},"33":{"start":{"line":75,"column":6},"end":{"line":75,"column":32}},"34":{"start":{"line":78,"column":6},"end":{"line":78,"column":29}},"35":{"start":{"line":82,"column":0},"end":{"line":87,"column":1}},"36":{"start":{"line":83,"column":2},"end":{"line":85,"column":3}},"37":{"start":{"line":84,"column":4},"end":{"line":84,"column":23}},"38":{"start":{"line":86,"column":2},"end":{"line":86,"column":14}}},"branchMap":{"1":{"line":30,"type":"binary-expr","locations":[{"start":{"line":30,"column":12},"end":{"line":30,"column":19}},{"start":{"line":30,"column":23},"end":{"line":30,"column":25}}]},"2":{"line":35,"type":"binary-expr","locations":[{"start":{"line":35,"column":18},"end":{"line":35,"column":38}},{"start":{"line":35,"column":42},"end":{"line":35,"column":44}}]},"3":{"line":36,"type":"binary-expr","locations":[{"start":{"line":36,"column":10},"end":{"line":36,"column":22}},{"start":{"line":36,"column":26},"end":{"line":36,"column":36}}]},"4":{"line":38,"type":"binary-expr","locations":[{"start":{"line":38,"column":12},"end":{"line":38,"column":26}},{"start":{"line":38,"column":30},"end":{"line":38,"column":32}}]},"5":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":2},"end":{"line":51,"column":2}},{"start":{"line":51,"column":2},"end":{"line":51,"column":2}}]}}},"/Users/popomore/code/popomore/father/lib/component-package.js":{"path":"/Users/popomore/code/popomore/father/lib/component-package.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":4,"7":4,"8":4,"9":4,"10":4,"11":1,"12":1,"13":4,"14":4,"15":4,"16":4,"17":4,"18":4,"19":1,"20":4,"21":4,"22":4,"23":4,"24":1,"25":4,"26":2,"27":4},"b":{"1":[4,0],"2":[4,4],"3":[4,1],"4":[4,3]},"f":{"1":4,"2":4,"3":4,"4":4,"5":4},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":15},"end":{"line":10,"column":26}}},"2":{"name":"(anonymous_2)","line":15,"loc":{"start":{"line":15,"column":15},"end":{"line":15,"column":30}}},"3":{"name":"normalize","line":25,"loc":{"start":{"line":25,"column":0},"end":{"line":25,"column":24}}},"4":{"name":"resolveDeps","line":43,"loc":{"start":{"line":43,"column":0},"end":{"line":43,"column":33}}},"5":{"name":"getAncestor","line":56,"loc":{"start":{"line":56,"column":0},"end":{"line":56,"column":27}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":27}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":21}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":35}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":49}},"5":{"start":{"line":8,"column":0},"end":{"line":21,"column":3}},"6":{"start":{"line":11,"column":4},"end":{"line":11,"column":59}},"7":{"start":{"line":12,"column":4},"end":{"line":12,"column":46}},"8":{"start":{"line":14,"column":4},"end":{"line":17,"column":20}},"9":{"start":{"line":16,"column":8},"end":{"line":16,"column":57}},"10":{"start":{"line":18,"column":4},"end":{"line":18,"column":15}},"11":{"start":{"line":23,"column":0},"end":{"line":23,"column":34}},"12":{"start":{"line":25,"column":0},"end":{"line":41,"column":1}},"13":{"start":{"line":26,"column":2},"end":{"line":26,"column":31}},"14":{"start":{"line":27,"column":2},"end":{"line":27,"column":21}},"15":{"start":{"line":28,"column":2},"end":{"line":28,"column":34}},"16":{"start":{"line":29,"column":2},"end":{"line":29,"column":32}},"17":{"start":{"line":30,"column":2},"end":{"line":39,"column":4}},"18":{"start":{"line":40,"column":2},"end":{"line":40,"column":13}},"19":{"start":{"line":43,"column":0},"end":{"line":54,"column":1}},"20":{"start":{"line":44,"column":2},"end":{"line":44,"column":35}},"21":{"start":{"line":45,"column":2},"end":{"line":45,"column":71}},"22":{"start":{"line":46,"column":2},"end":{"line":46,"column":50}},"23":{"start":{"line":48,"column":2},"end":{"line":53,"column":4}},"24":{"start":{"line":56,"column":0},"end":{"line":61,"column":1}},"25":{"start":{"line":57,"column":2},"end":{"line":59,"column":3}},"26":{"start":{"line":58,"column":4},"end":{"line":58,"column":23}},"27":{"start":{"line":60,"column":2},"end":{"line":60,"column":14}}},"branchMap":{"1":{"line":28,"type":"binary-expr","locations":[{"start":{"line":28,"column":16},"end":{"line":28,"column":27}},{"start":{"line":28,"column":31},"end":{"line":28,"column":33}}]},"2":{"line":29,"type":"binary-expr","locations":[{"start":{"line":29,"column":15},"end":{"line":29,"column":25}},{"start":{"line":29,"column":29},"end":{"line":29,"column":31}}]},"3":{"line":34,"type":"binary-expr","locations":[{"start":{"line":34,"column":18},"end":{"line":34,"column":34}},{"start":{"line":34,"column":38},"end":{"line":34,"column":40}}]},"4":{"line":35,"type":"binary-expr","locations":[{"start":{"line":35,"column":10},"end":{"line":35,"column":18}},{"start":{"line":35,"column":22},"end":{"line":35,"column":32}}]}}}}

@@ -5,2 +5,8 @@ # History

## 0.5.0
- resolve dependent file path
- refactor lookupFiles
- parse css dependency
## 0.4.0

@@ -7,0 +13,0 @@

@@ -8,3 +8,5 @@ 'use strict';

var extname = path.extname;
var relative = path.relative;
var requires = require('requires');
var imports = require('css-imports');
var Class = require('arale').Class;

@@ -14,6 +16,2 @@ var Events = require('arale').Events;

// config an extension as key, when that extension is found, value will be added to deps
var extraDeps = {
handlebars: 'handlebars'
};

@@ -24,5 +22,7 @@ var Package = Class.create({

initialize: function(dir, father) {
if (father) {
this.father = father;
initialize: function(dir, options) {
options || (options = {});
if (options.father) {
this.father = options.father;
} else {

@@ -32,2 +32,4 @@ this.packages = {};

// config an extension as key, when that extension is found, value will be added to deps
this.extraDeps = options.extraDeps || {};
this.dest = dir;

@@ -54,3 +56,3 @@ this._dependencies = [];

if (!this.get(sub.id)) {
this.set(new Self(sub.dest, this)._parse());
this.set(new Self(sub.dest, {father: this})._parse());
}

@@ -82,47 +84,55 @@ this._dependencies.push(sub.id);

function lookupFiles(src) {
extname(src) || (src = src + '.js');
var ext = extname(src).substring(1);
if (!ext) {
src = src + '.js';
ext = 'js';
}
if (!files[src]) {
var data;
try {
data = fs.readFileSync(join(dest, src));
} catch(e) {
that.trigger('notfound', src);
return [];
}
if (files[src]) {
return files[src].dependencies;
}
var req = requires(data)
.reduce(function(previous, current) {
var path = current.path;
previous.push(path.replace(/\.js$/, ''));
try {
var data = fs.readFileSync(join(dest, src));
} catch(e) {
that.trigger('notfound', src);
return [];
}
// extension in extraDeps will be added to deps
var ext = extname(path).substring(1);
if (extraDeps[ext]) {
previous.push(extraDeps[ext]);
}
return previous;
}, []);
// file dependencies
var deps = getFileDeps(data, ext, that.extraDeps);
debug('file %s, deps %s', src, deps);
req
.slice()
.filter(function(item) {
return item.charAt(0) === '.';
})
.forEach(function(item) {
item = join(dirname(src), item);
req = req.concat(lookupFiles(item));
// conbime with the dependencies of the dependent file
deps = deps.reduce(function(previous, current) {
previous.push(current);
if (current.charAt(0) !== '.') {
return previous;
}
current = join(dirname(src), current);
var deps_ = lookupFiles(current)
.map(function(it) {
if (it.charAt(0) !== '.') return it;
it = join(dirname(current), it);
it = relative(dirname(src), it);
return it.charAt(0) === '.' ? it : './' + it;
});
previous = previous.concat(deps_);
return previous;
}, []);
var deps = req.filter(function(item, index, arr) {
return index === arr.indexOf(item);
});
// unique
deps = deps.filter(function(item, index, arr) {
return index === arr.indexOf(item);
});
files[src] = {
dependencies: deps
};
files[src] = {
dependencies: deps
};
debug('pkg(%s) file %s, deps %s', pkg.id, src, deps);
}
return req || [];
debug('pkg(%s) file %s, deps %s', pkg.id, src, deps);
return deps;
}

@@ -182,1 +192,19 @@ },

module.exports = Package;
function getFileDeps(code, ext, extraDeps) {
switch(ext) {
case 'js':
return requires(code).map(transform);
case 'css':
return imports(code).map(transform);
default:
// extension in extraDeps will be added to deps
// E.g. a.handlebars should require `handlebars`
return extraDeps[ext] ? [extraDeps[ext]] : [];
}
function transform(item) {
return item.path.replace(/\.js$/, '');
}
}
{
"name": "father",
"version": "0.4.0",
"version": "0.5.0",
"description": "A package parser that can resolve self and dependencies, supporting spm, component.",

@@ -8,2 +8,3 @@ "main": "index",

"arale": "^0.2.0",
"css-imports": "^0.1.0",
"debug": "^0.7.4",

@@ -10,0 +11,0 @@ "requires": "^1.0.0",

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

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