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

babel-plugin-universal-import

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-universal-import - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

coverage/coverage-final.json

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

{"/home/travis/build/faceyspacey/babel-plugin-universal-import/index.js": {"path":"/home/travis/build/faceyspacey/babel-plugin-universal-import/index.js","statementMap":{"0":{"start":{"line":3,"column":23},"end":{"line":3,"column":62}},"1":{"start":{"line":5,"column":16},"end":{"line":5,"column":33}},"2":{"start":{"line":7,"column":33},"end":{"line":11,"column":1}},"3":{"start":{"line":13,"column":27},"end":{"line":17,"column":1}},"4":{"start":{"line":19,"column":28},"end":{"line":23,"column":1}},"5":{"start":{"line":26,"column":2},"end":{"line":26,"column":41}},"6":{"start":{"line":30,"column":2},"end":{"line":30,"column":47}},"7":{"start":{"line":34,"column":2},"end":{"line":34,"column":33}},"8":{"start":{"line":38,"column":2},"end":{"line":40,"column":3}},"9":{"start":{"line":39,"column":4},"end":{"line":39,"column":56}},"10":{"start":{"line":42,"column":2},"end":{"line":42,"column":23}},"11":{"start":{"line":46,"column":2},"end":{"line":58,"column":3}},"12":{"start":{"line":47,"column":17},"end":{"line":47,"column":46}},"13":{"start":{"line":48,"column":20},"end":{"line":48,"column":64}},"14":{"start":{"line":49,"column":4},"end":{"line":51,"column":6}},"15":{"start":{"line":53,"column":4},"end":{"line":53,"column":76}},"16":{"start":{"line":53,"column":39},"end":{"line":53,"column":74}},"17":{"start":{"line":55,"column":4},"end":{"line":57,"column":6}},"18":{"start":{"line":60,"column":21},"end":{"line":60,"column":62}},"19":{"start":{"line":61,"column":2},"end":{"line":61,"column":36}},"20":{"start":{"line":65,"column":18},"end":{"line":65,"column":58}},"21":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"22":{"start":{"line":73,"column":34},"end":{"line":73,"column":47}},"23":{"start":{"line":74,"column":2},"end":{"line":74,"column":63}},"24":{"start":{"line":74,"column":15},"end":{"line":74,"column":63}},"25":{"start":{"line":76,"column":18},"end":{"line":76,"column":40}},"26":{"start":{"line":77,"column":25},"end":{"line":77,"column":47}},"27":{"start":{"line":78,"column":20},"end":{"line":78,"column":65}},"28":{"start":{"line":79,"column":2},"end":{"line":79,"column":40}},"29":{"start":{"line":83,"column":34},"end":{"line":83,"column":47}},"30":{"start":{"line":84,"column":2},"end":{"line":84,"column":41}},"31":{"start":{"line":84,"column":15},"end":{"line":84,"column":41}},"32":{"start":{"line":86,"column":2},"end":{"line":91,"column":8}},"33":{"start":{"line":87,"column":14},"end":{"line":87,"column":32}},"34":{"start":{"line":88,"column":15},"end":{"line":88,"column":52}},"35":{"start":{"line":89,"column":4},"end":{"line":89,"column":35}},"36":{"start":{"line":90,"column":4},"end":{"line":90,"column":14}},"37":{"start":{"line":95,"column":30},"end":{"line":95,"column":43}},"38":{"start":{"line":96,"column":2},"end":{"line":110,"column":3}},"39":{"start":{"line":101,"column":4},"end":{"line":109,"column":5}},"40":{"start":{"line":102,"column":6},"end":{"line":105,"column":15}},"41":{"start":{"line":108,"column":6},"end":{"line":108,"column":17}},"42":{"start":{"line":111,"column":2},"end":{"line":111,"column":13}},"43":{"start":{"line":115,"column":13},"end":{"line":115,"column":45}},"44":{"start":{"line":116,"column":2},"end":{"line":116,"column":66}},"45":{"start":{"line":120,"column":2},"end":{"line":123,"column":3}},"46":{"start":{"line":127,"column":15},"end":{"line":141,"column":8}},"47":{"start":{"line":128,"column":22},"end":{"line":128,"column":40}},"48":{"start":{"line":129,"column":23},"end":{"line":129,"column":39}},"49":{"start":{"line":131,"column":4},"end":{"line":138,"column":5}},"50":{"start":{"line":132,"column":29},"end":{"line":135,"column":7}},"51":{"start":{"line":137,"column":6},"end":{"line":137,"column":34}},"52":{"start":{"line":140,"column":4},"end":{"line":140,"column":18}},"53":{"start":{"line":143,"column":2},"end":{"line":143,"column":33}},"54":{"start":{"line":147,"column":18},"end":{"line":147,"column":37}},"55":{"start":{"line":148,"column":29},"end":{"line":148,"column":68}},"56":{"start":{"line":149,"column":28},"end":{"line":149,"column":47}},"57":{"start":{"line":150,"column":20},"end":{"line":150,"column":59}},"58":{"start":{"line":151,"column":27},"end":{"line":153,"column":46}},"59":{"start":{"line":155,"column":2},"end":{"line":155,"column":37}},"60":{"start":{"line":156,"column":2},"end":{"line":156,"column":69}},"61":{"start":{"line":158,"column":18},"end":{"line":158,"column":55}},"62":{"start":{"line":159,"column":15},"end":{"line":164,"column":15}},"63":{"start":{"line":166,"column":2},"end":{"line":166,"column":53}},"64":{"start":{"line":170,"column":15},"end":{"line":173,"column":15}},"65":{"start":{"line":175,"column":2},"end":{"line":175,"column":53}},"66":{"start":{"line":179,"column":18},"end":{"line":181,"column":15}},"67":{"start":{"line":183,"column":2},"end":{"line":183,"column":59}},"68":{"start":{"line":187,"column":28},"end":{"line":187,"column":47}},"69":{"start":{"line":188,"column":25},"end":{"line":188,"column":65}},"70":{"start":{"line":189,"column":27},"end":{"line":191,"column":20}},"71":{"start":{"line":193,"column":20},"end":{"line":195,"column":15}},"72":{"start":{"line":197,"column":2},"end":{"line":197,"column":63}},"73":{"start":{"line":201,"column":29},"end":{"line":201,"column":59}},"74":{"start":{"line":203,"column":4},"end":{"line":204,"column":40}},"75":{"start":{"line":205,"column":2},"end":{"line":205,"column":61}},"76":{"start":{"line":208,"column":0},"end":{"line":274,"column":1}},"77":{"start":{"line":209,"column":28},"end":{"line":209,"column":52}},"78":{"start":{"line":210,"column":23},"end":{"line":210,"column":69}},"79":{"start":{"line":211,"column":26},"end":{"line":211,"column":71}},"80":{"start":{"line":212,"column":23},"end":{"line":214,"column":3}},"81":{"start":{"line":216,"column":2},"end":{"line":273,"column":3}},"82":{"start":{"line":220,"column":8},"end":{"line":220,"column":30}},"83":{"start":{"line":220,"column":24},"end":{"line":220,"column":30}},"84":{"start":{"line":221,"column":8},"end":{"line":221,"column":25}},"85":{"start":{"line":223,"column":30},"end":{"line":223,"column":54}},"86":{"start":{"line":224,"column":8},"end":{"line":224,"column":74}},"87":{"start":{"line":226,"column":8},"end":{"line":228,"column":9}},"88":{"start":{"line":227,"column":10},"end":{"line":227,"column":70}},"89":{"start":{"line":229,"column":32},"end":{"line":229,"column":70}},"90":{"start":{"line":231,"column":27},"end":{"line":233,"column":9}},"91":{"start":{"line":236,"column":8},"end":{"line":247,"column":9}},"92":{"start":{"line":240,"column":23},"end":{"line":243,"column":12}},"93":{"start":{"line":245,"column":10},"end":{"line":245,"column":40}},"94":{"start":{"line":246,"column":10},"end":{"line":246,"column":16}},"95":{"start":{"line":249,"column":21},"end":{"line":264,"column":11}},"96":{"start":{"line":266,"column":24},"end":{"line":266,"column":48}},"97":{"start":{"line":268,"column":21},"end":{"line":268,"column":65}},"98":{"start":{"line":269,"column":8},"end":{"line":269,"column":34}},"99":{"start":{"line":270,"column":8},"end":{"line":270,"column":38}}},"fnMap":{"0":{"name":"getImportArgPath","decl":{"start":{"line":25,"column":9},"end":{"line":25,"column":25}},"loc":{"start":{"line":25,"column":29},"end":{"line":27,"column":1}},"line":25},"1":{"name":"trimChunkNameBaseDir","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":29}},"loc":{"start":{"line":29,"column":39},"end":{"line":31,"column":1}},"line":29},"2":{"name":"prepareChunkNamePath","decl":{"start":{"line":33,"column":9},"end":{"line":33,"column":29}},"loc":{"start":{"line":33,"column":36},"end":{"line":35,"column":1}},"line":33},"3":{"name":"getImport","decl":{"start":{"line":37,"column":9},"end":{"line":37,"column":18}},"loc":{"start":{"line":37,"column":48},"end":{"line":43,"column":1}},"line":37},"4":{"name":"createTrimmedChunkName","decl":{"start":{"line":45,"column":9},"end":{"line":45,"column":31}},"loc":{"start":{"line":45,"column":50},"end":{"line":62,"column":1}},"line":45},"5":{"name":"(anonymous_5)","decl":{"start":{"line":53,"column":24},"end":{"line":53,"column":25}},"loc":{"start":{"line":53,"column":39},"end":{"line":53,"column":74}},"line":53},"6":{"name":"prepareQuasi","decl":{"start":{"line":64,"column":9},"end":{"line":64,"column":21}},"loc":{"start":{"line":64,"column":29},"end":{"line":70,"column":1}},"line":64},"7":{"name":"getMagicCommentChunkName","decl":{"start":{"line":72,"column":9},"end":{"line":72,"column":33}},"loc":{"start":{"line":72,"column":49},"end":{"line":80,"column":1}},"line":72},"8":{"name":"getComponentId","decl":{"start":{"line":82,"column":9},"end":{"line":82,"column":23}},"loc":{"start":{"line":82,"column":42},"end":{"line":92,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":86,"column":23},"end":{"line":86,"column":24}},"loc":{"start":{"line":86,"column":42},"end":{"line":91,"column":3}},"line":86},"10":{"name":"existingMagicCommentChunkName","decl":{"start":{"line":94,"column":9},"end":{"line":94,"column":38}},"loc":{"start":{"line":94,"column":54},"end":{"line":112,"column":1}},"line":94},"11":{"name":"idOption","decl":{"start":{"line":114,"column":9},"end":{"line":114,"column":17}},"loc":{"start":{"line":114,"column":36},"end":{"line":117,"column":1}},"line":114},"12":{"name":"fileOption","decl":{"start":{"line":119,"column":9},"end":{"line":119,"column":19}},"loc":{"start":{"line":119,"column":26},"end":{"line":124,"column":1}},"line":119},"13":{"name":"getCssOptionExpression","decl":{"start":{"line":126,"column":9},"end":{"line":126,"column":31}},"loc":{"start":{"line":126,"column":47},"end":{"line":144,"column":1}},"line":126},"14":{"name":"(anonymous_14)","decl":{"start":{"line":127,"column":46},"end":{"line":127,"column":47}},"loc":{"start":{"line":127,"column":67},"end":{"line":141,"column":3}},"line":127},"15":{"name":"loadOption","decl":{"start":{"line":146,"column":9},"end":{"line":146,"column":19}},"loc":{"start":{"line":146,"column":67},"end":{"line":167,"column":1}},"line":146},"16":{"name":"pathOption","decl":{"start":{"line":169,"column":9},"end":{"line":169,"column":19}},"loc":{"start":{"line":169,"column":55},"end":{"line":176,"column":1}},"line":169},"17":{"name":"resolveOption","decl":{"start":{"line":178,"column":9},"end":{"line":178,"column":22}},"loc":{"start":{"line":178,"column":58},"end":{"line":184,"column":1}},"line":178},"18":{"name":"chunkNameOption","decl":{"start":{"line":186,"column":9},"end":{"line":186,"column":24}},"loc":{"start":{"line":186,"column":62},"end":{"line":198,"column":1}},"line":186},"19":{"name":"checkForNestedChunkName","decl":{"start":{"line":200,"column":9},"end":{"line":200,"column":32}},"loc":{"start":{"line":200,"column":39},"end":{"line":206,"column":1}},"line":200},"20":{"name":"universalImportPlugin","decl":{"start":{"line":208,"column":26},"end":{"line":208,"column":47}},"loc":{"start":{"line":208,"column":72},"end":{"line":274,"column":1}},"line":208}},"branchMap":{"0":{"loc":{"start":{"line":38,"column":2},"end":{"line":40,"column":3}},"type":"if","locations":[{"start":{"line":38,"column":2},"end":{"line":40,"column":3}},{"start":{"line":38,"column":2},"end":{"line":40,"column":3}}],"line":38},"1":{"loc":{"start":{"line":46,"column":2},"end":{"line":58,"column":3}},"type":"if","locations":[{"start":{"line":46,"column":2},"end":{"line":58,"column":3}},{"start":{"line":46,"column":2},"end":{"line":58,"column":3}}],"line":46},"2":{"loc":{"start":{"line":53,"column":39},"end":{"line":53,"column":74}},"type":"cond-expr","locations":[{"start":{"line":53,"column":47},"end":{"line":53,"column":66}},{"start":{"line":53,"column":69},"end":{"line":53,"column":74}}],"line":53},"3":{"loc":{"start":{"line":74,"column":2},"end":{"line":74,"column":63}},"type":"if","locations":[{"start":{"line":74,"column":2},"end":{"line":74,"column":63}},{"start":{"line":74,"column":2},"end":{"line":74,"column":63}}],"line":74},"4":{"loc":{"start":{"line":78,"column":31},"end":{"line":78,"column":64}},"type":"cond-expr","locations":[{"start":{"line":78,"column":48},"end":{"line":78,"column":59}},{"start":{"line":78,"column":62},"end":{"line":78,"column":64}}],"line":78},"5":{"loc":{"start":{"line":84,"column":2},"end":{"line":84,"column":41}},"type":"if","locations":[{"start":{"line":84,"column":2},"end":{"line":84,"column":41}},{"start":{"line":84,"column":2},"end":{"line":84,"column":41}}],"line":84},"6":{"loc":{"start":{"line":88,"column":15},"end":{"line":88,"column":52}},"type":"binary-expr","locations":[{"start":{"line":88,"column":15},"end":{"line":88,"column":29}},{"start":{"line":88,"column":33},"end":{"line":88,"column":52}}],"line":88},"7":{"loc":{"start":{"line":89,"column":11},"end":{"line":89,"column":35}},"type":"cond-expr","locations":[{"start":{"line":89,"column":16},"end":{"line":89,"column":31}},{"start":{"line":89,"column":34},"end":{"line":89,"column":35}}],"line":89},"8":{"loc":{"start":{"line":96,"column":2},"end":{"line":110,"column":3}},"type":"if","locations":[{"start":{"line":96,"column":2},"end":{"line":110,"column":3}},{"start":{"line":96,"column":2},"end":{"line":110,"column":3}}],"line":96},"9":{"loc":{"start":{"line":97,"column":4},"end":{"line":99,"column":63}},"type":"binary-expr","locations":[{"start":{"line":97,"column":4},"end":{"line":97,"column":19}},{"start":{"line":98,"column":4},"end":{"line":98,"column":26}},{"start":{"line":99,"column":4},"end":{"line":99,"column":63}}],"line":97},"10":{"loc":{"start":{"line":131,"column":4},"end":{"line":138,"column":5}},"type":"if","locations":[{"start":{"line":131,"column":4},"end":{"line":138,"column":5}},{"start":{"line":131,"column":4},"end":{"line":138,"column":5}}],"line":131},"11":{"loc":{"start":{"line":150,"column":20},"end":{"line":150,"column":59}},"type":"binary-expr","locations":[{"start":{"line":150,"column":20},"end":{"line":150,"column":37}},{"start":{"line":150,"column":41},"end":{"line":150,"column":59}}],"line":150},"12":{"loc":{"start":{"line":151,"column":27},"end":{"line":153,"column":46}},"type":"cond-expr","locations":[{"start":{"line":152,"column":6},"end":{"line":152,"column":40}},{"start":{"line":153,"column":6},"end":{"line":153,"column":46}}],"line":151},"13":{"loc":{"start":{"line":189,"column":27},"end":{"line":191,"column":20}},"type":"cond-expr","locations":[{"start":{"line":190,"column":6},"end":{"line":190,"column":40}},{"start":{"line":191,"column":6},"end":{"line":191,"column":20}}],"line":189},"14":{"loc":{"start":{"line":203,"column":4},"end":{"line":204,"column":40}},"type":"binary-expr","locations":[{"start":{"line":203,"column":4},"end":{"line":203,"column":50}},{"start":{"line":204,"column":4},"end":{"line":204,"column":40}}],"line":203},"15":{"loc":{"start":{"line":205,"column":9},"end":{"line":205,"column":61}},"type":"binary-expr","locations":[{"start":{"line":205,"column":9},"end":{"line":205,"column":17}},{"start":{"line":205,"column":21},"end":{"line":205,"column":61}}],"line":205},"16":{"loc":{"start":{"line":220,"column":8},"end":{"line":220,"column":30}},"type":"if","locations":[{"start":{"line":220,"column":8},"end":{"line":220,"column":30}},{"start":{"line":220,"column":8},"end":{"line":220,"column":30}}],"line":220},"17":{"loc":{"start":{"line":226,"column":8},"end":{"line":228,"column":9}},"type":"if","locations":[{"start":{"line":226,"column":8},"end":{"line":228,"column":9}},{"start":{"line":226,"column":8},"end":{"line":228,"column":9}}],"line":226},"18":{"loc":{"start":{"line":236,"column":8},"end":{"line":247,"column":9}},"type":"if","locations":[{"start":{"line":236,"column":8},"end":{"line":247,"column":9}},{"start":{"line":236,"column":8},"end":{"line":247,"column":9}}],"line":236},"19":{"loc":{"start":{"line":237,"column":10},"end":{"line":238,"column":59}},"type":"binary-expr","locations":[{"start":{"line":237,"column":10},"end":{"line":237,"column":53}},{"start":{"line":238,"column":10},"end":{"line":238,"column":59}}],"line":237},"20":{"loc":{"start":{"line":249,"column":21},"end":{"line":264,"column":11}},"type":"cond-expr","locations":[{"start":{"line":250,"column":12},"end":{"line":256,"column":11}},{"start":{"line":257,"column":12},"end":{"line":264,"column":11}}],"line":249}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":31,"6":57,"7":13,"8":46,"9":46,"10":46,"11":27,"12":17,"13":17,"14":17,"15":17,"16":28,"17":17,"18":10,"19":10,"20":11,"21":11,"22":30,"23":30,"24":10,"25":20,"26":20,"27":20,"28":20,"29":15,"30":15,"31":6,"32":9,"33":14,"34":14,"35":14,"36":14,"37":16,"38":16,"39":1,"40":1,"41":0,"42":15,"43":15,"44":15,"45":15,"46":15,"47":15,"48":15,"49":15,"50":1,"51":1,"52":15,"53":15,"54":15,"55":15,"56":15,"57":15,"58":15,"59":15,"60":15,"61":15,"62":15,"63":15,"64":15,"65":15,"66":15,"67":15,"68":15,"69":15,"70":15,"71":15,"72":15,"73":15,"74":15,"75":15,"76":1,"77":17,"78":17,"79":17,"80":17,"81":17,"82":31,"83":15,"84":16,"85":16,"86":16,"87":16,"88":15,"89":16,"90":16,"91":16,"92":1,"93":1,"94":1,"95":15,"96":15,"97":15,"98":15,"99":15},"f":{"0":31,"1":57,"2":13,"3":46,"4":27,"5":28,"6":11,"7":30,"8":15,"9":14,"10":16,"11":15,"12":15,"13":15,"14":15,"15":15,"16":15,"17":15,"18":15,"19":15,"20":17},"b":{"0":[46,0],"1":[17,10],"2":[11,17],"3":[10,20],"4":[12,8],"5":[6,9],"6":[14,5],"7":[5,9],"8":[1,15],"9":[16,1,1],"10":[1,14],"11":[15,12],"12":[3,12],"13":[3,12],"14":[15,9],"15":[15,2],"16":[15,16],"17":[15,1],"18":[1,15],"19":[16,16],"20":[1,14]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"189d4ce6a2bb005cc11ddb7b32a2a9221bcaf2ac"}
{"/home/travis/build/faceyspacey/babel-plugin-universal-import/index.js": {"path":"/home/travis/build/faceyspacey/babel-plugin-universal-import/index.js","statementMap":{"0":{"start":{"line":3,"column":23},"end":{"line":3,"column":62}},"1":{"start":{"line":5,"column":16},"end":{"line":5,"column":33}},"2":{"start":{"line":7,"column":33},"end":{"line":11,"column":1}},"3":{"start":{"line":13,"column":27},"end":{"line":17,"column":1}},"4":{"start":{"line":19,"column":28},"end":{"line":23,"column":1}},"5":{"start":{"line":26,"column":2},"end":{"line":26,"column":41}},"6":{"start":{"line":30,"column":2},"end":{"line":30,"column":47}},"7":{"start":{"line":34,"column":2},"end":{"line":34,"column":33}},"8":{"start":{"line":38,"column":2},"end":{"line":38,"column":44}},"9":{"start":{"line":42,"column":2},"end":{"line":54,"column":3}},"10":{"start":{"line":43,"column":17},"end":{"line":43,"column":46}},"11":{"start":{"line":44,"column":20},"end":{"line":44,"column":64}},"12":{"start":{"line":45,"column":4},"end":{"line":47,"column":6}},"13":{"start":{"line":49,"column":4},"end":{"line":49,"column":76}},"14":{"start":{"line":51,"column":4},"end":{"line":53,"column":6}},"15":{"start":{"line":56,"column":21},"end":{"line":56,"column":62}},"16":{"start":{"line":57,"column":2},"end":{"line":57,"column":36}},"17":{"start":{"line":61,"column":18},"end":{"line":61,"column":58}},"18":{"start":{"line":63,"column":2},"end":{"line":65,"column":4}},"19":{"start":{"line":69,"column":34},"end":{"line":69,"column":47}},"20":{"start":{"line":70,"column":2},"end":{"line":70,"column":63}},"21":{"start":{"line":70,"column":15},"end":{"line":70,"column":63}},"22":{"start":{"line":72,"column":18},"end":{"line":72,"column":40}},"23":{"start":{"line":73,"column":25},"end":{"line":73,"column":47}},"24":{"start":{"line":74,"column":20},"end":{"line":74,"column":65}},"25":{"start":{"line":75,"column":2},"end":{"line":75,"column":40}},"26":{"start":{"line":79,"column":34},"end":{"line":79,"column":47}},"27":{"start":{"line":80,"column":2},"end":{"line":80,"column":41}},"28":{"start":{"line":80,"column":15},"end":{"line":80,"column":41}},"29":{"start":{"line":82,"column":2},"end":{"line":87,"column":8}},"30":{"start":{"line":83,"column":14},"end":{"line":83,"column":32}},"31":{"start":{"line":84,"column":15},"end":{"line":84,"column":52}},"32":{"start":{"line":85,"column":4},"end":{"line":85,"column":35}},"33":{"start":{"line":86,"column":4},"end":{"line":86,"column":14}},"34":{"start":{"line":91,"column":30},"end":{"line":91,"column":43}},"35":{"start":{"line":92,"column":2},"end":{"line":106,"column":3}},"36":{"start":{"line":97,"column":4},"end":{"line":105,"column":5}},"37":{"start":{"line":98,"column":6},"end":{"line":101,"column":15}},"38":{"start":{"line":104,"column":6},"end":{"line":104,"column":17}},"39":{"start":{"line":107,"column":2},"end":{"line":107,"column":13}},"40":{"start":{"line":111,"column":13},"end":{"line":111,"column":45}},"41":{"start":{"line":112,"column":2},"end":{"line":112,"column":66}},"42":{"start":{"line":116,"column":2},"end":{"line":119,"column":3}},"43":{"start":{"line":123,"column":15},"end":{"line":137,"column":8}},"44":{"start":{"line":124,"column":22},"end":{"line":124,"column":40}},"45":{"start":{"line":125,"column":23},"end":{"line":125,"column":39}},"46":{"start":{"line":127,"column":4},"end":{"line":134,"column":5}},"47":{"start":{"line":128,"column":29},"end":{"line":131,"column":7}},"48":{"start":{"line":133,"column":6},"end":{"line":133,"column":34}},"49":{"start":{"line":136,"column":4},"end":{"line":136,"column":18}},"50":{"start":{"line":139,"column":2},"end":{"line":139,"column":33}},"51":{"start":{"line":143,"column":18},"end":{"line":143,"column":37}},"52":{"start":{"line":144,"column":29},"end":{"line":144,"column":68}},"53":{"start":{"line":145,"column":28},"end":{"line":145,"column":47}},"54":{"start":{"line":146,"column":20},"end":{"line":146,"column":59}},"55":{"start":{"line":147,"column":27},"end":{"line":149,"column":46}},"56":{"start":{"line":151,"column":2},"end":{"line":151,"column":37}},"57":{"start":{"line":152,"column":2},"end":{"line":152,"column":69}},"58":{"start":{"line":154,"column":18},"end":{"line":154,"column":55}},"59":{"start":{"line":155,"column":15},"end":{"line":160,"column":15}},"60":{"start":{"line":162,"column":2},"end":{"line":162,"column":53}},"61":{"start":{"line":166,"column":15},"end":{"line":169,"column":15}},"62":{"start":{"line":171,"column":2},"end":{"line":171,"column":53}},"63":{"start":{"line":175,"column":18},"end":{"line":177,"column":15}},"64":{"start":{"line":179,"column":2},"end":{"line":179,"column":59}},"65":{"start":{"line":183,"column":28},"end":{"line":183,"column":47}},"66":{"start":{"line":184,"column":25},"end":{"line":184,"column":65}},"67":{"start":{"line":185,"column":27},"end":{"line":187,"column":20}},"68":{"start":{"line":189,"column":20},"end":{"line":191,"column":15}},"69":{"start":{"line":193,"column":2},"end":{"line":193,"column":63}},"70":{"start":{"line":197,"column":29},"end":{"line":197,"column":59}},"71":{"start":{"line":199,"column":4},"end":{"line":200,"column":40}},"72":{"start":{"line":201,"column":2},"end":{"line":201,"column":61}},"73":{"start":{"line":204,"column":0},"end":{"line":270,"column":1}},"74":{"start":{"line":205,"column":28},"end":{"line":205,"column":52}},"75":{"start":{"line":206,"column":23},"end":{"line":206,"column":69}},"76":{"start":{"line":207,"column":26},"end":{"line":207,"column":71}},"77":{"start":{"line":208,"column":23},"end":{"line":210,"column":3}},"78":{"start":{"line":212,"column":2},"end":{"line":269,"column":3}},"79":{"start":{"line":216,"column":8},"end":{"line":216,"column":30}},"80":{"start":{"line":216,"column":24},"end":{"line":216,"column":30}},"81":{"start":{"line":217,"column":8},"end":{"line":217,"column":25}},"82":{"start":{"line":219,"column":30},"end":{"line":219,"column":54}},"83":{"start":{"line":220,"column":8},"end":{"line":220,"column":74}},"84":{"start":{"line":222,"column":8},"end":{"line":224,"column":9}},"85":{"start":{"line":223,"column":10},"end":{"line":223,"column":70}},"86":{"start":{"line":225,"column":32},"end":{"line":225,"column":70}},"87":{"start":{"line":227,"column":27},"end":{"line":229,"column":9}},"88":{"start":{"line":232,"column":8},"end":{"line":243,"column":9}},"89":{"start":{"line":236,"column":23},"end":{"line":239,"column":12}},"90":{"start":{"line":241,"column":10},"end":{"line":241,"column":40}},"91":{"start":{"line":242,"column":10},"end":{"line":242,"column":16}},"92":{"start":{"line":245,"column":21},"end":{"line":260,"column":11}},"93":{"start":{"line":262,"column":24},"end":{"line":262,"column":48}},"94":{"start":{"line":264,"column":21},"end":{"line":264,"column":65}},"95":{"start":{"line":265,"column":8},"end":{"line":265,"column":34}},"96":{"start":{"line":266,"column":8},"end":{"line":266,"column":38}}},"fnMap":{"0":{"name":"getImportArgPath","decl":{"start":{"line":25,"column":9},"end":{"line":25,"column":25}},"loc":{"start":{"line":25,"column":29},"end":{"line":27,"column":1}},"line":25},"1":{"name":"trimChunkNameBaseDir","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":29}},"loc":{"start":{"line":29,"column":39},"end":{"line":31,"column":1}},"line":29},"2":{"name":"prepareChunkNamePath","decl":{"start":{"line":33,"column":9},"end":{"line":33,"column":29}},"loc":{"start":{"line":33,"column":36},"end":{"line":35,"column":1}},"line":33},"3":{"name":"getImport","decl":{"start":{"line":37,"column":9},"end":{"line":37,"column":18}},"loc":{"start":{"line":37,"column":44},"end":{"line":39,"column":1}},"line":37},"4":{"name":"createTrimmedChunkName","decl":{"start":{"line":41,"column":9},"end":{"line":41,"column":31}},"loc":{"start":{"line":41,"column":50},"end":{"line":58,"column":1}},"line":41},"5":{"name":"(anonymous_5)","decl":{"start":{"line":49,"column":24},"end":{"line":49,"column":25}},"loc":{"start":{"line":49,"column":39},"end":{"line":49,"column":74}},"line":49},"6":{"name":"prepareQuasi","decl":{"start":{"line":60,"column":9},"end":{"line":60,"column":21}},"loc":{"start":{"line":60,"column":29},"end":{"line":66,"column":1}},"line":60},"7":{"name":"getMagicCommentChunkName","decl":{"start":{"line":68,"column":9},"end":{"line":68,"column":33}},"loc":{"start":{"line":68,"column":49},"end":{"line":76,"column":1}},"line":68},"8":{"name":"getComponentId","decl":{"start":{"line":78,"column":9},"end":{"line":78,"column":23}},"loc":{"start":{"line":78,"column":42},"end":{"line":88,"column":1}},"line":78},"9":{"name":"(anonymous_9)","decl":{"start":{"line":82,"column":23},"end":{"line":82,"column":24}},"loc":{"start":{"line":82,"column":42},"end":{"line":87,"column":3}},"line":82},"10":{"name":"existingMagicCommentChunkName","decl":{"start":{"line":90,"column":9},"end":{"line":90,"column":38}},"loc":{"start":{"line":90,"column":54},"end":{"line":108,"column":1}},"line":90},"11":{"name":"idOption","decl":{"start":{"line":110,"column":9},"end":{"line":110,"column":17}},"loc":{"start":{"line":110,"column":36},"end":{"line":113,"column":1}},"line":110},"12":{"name":"fileOption","decl":{"start":{"line":115,"column":9},"end":{"line":115,"column":19}},"loc":{"start":{"line":115,"column":26},"end":{"line":120,"column":1}},"line":115},"13":{"name":"getCssOptionExpression","decl":{"start":{"line":122,"column":9},"end":{"line":122,"column":31}},"loc":{"start":{"line":122,"column":47},"end":{"line":140,"column":1}},"line":122},"14":{"name":"(anonymous_14)","decl":{"start":{"line":123,"column":46},"end":{"line":123,"column":47}},"loc":{"start":{"line":123,"column":67},"end":{"line":137,"column":3}},"line":123},"15":{"name":"loadOption","decl":{"start":{"line":142,"column":9},"end":{"line":142,"column":19}},"loc":{"start":{"line":142,"column":67},"end":{"line":163,"column":1}},"line":142},"16":{"name":"pathOption","decl":{"start":{"line":165,"column":9},"end":{"line":165,"column":19}},"loc":{"start":{"line":165,"column":55},"end":{"line":172,"column":1}},"line":165},"17":{"name":"resolveOption","decl":{"start":{"line":174,"column":9},"end":{"line":174,"column":22}},"loc":{"start":{"line":174,"column":58},"end":{"line":180,"column":1}},"line":174},"18":{"name":"chunkNameOption","decl":{"start":{"line":182,"column":9},"end":{"line":182,"column":24}},"loc":{"start":{"line":182,"column":62},"end":{"line":194,"column":1}},"line":182},"19":{"name":"checkForNestedChunkName","decl":{"start":{"line":196,"column":9},"end":{"line":196,"column":32}},"loc":{"start":{"line":196,"column":39},"end":{"line":202,"column":1}},"line":196},"20":{"name":"universalImportPlugin","decl":{"start":{"line":204,"column":26},"end":{"line":204,"column":47}},"loc":{"start":{"line":204,"column":72},"end":{"line":270,"column":1}},"line":204}},"branchMap":{"0":{"loc":{"start":{"line":42,"column":2},"end":{"line":54,"column":3}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":54,"column":3}},{"start":{"line":42,"column":2},"end":{"line":54,"column":3}}],"line":42},"1":{"loc":{"start":{"line":49,"column":39},"end":{"line":49,"column":74}},"type":"cond-expr","locations":[{"start":{"line":49,"column":47},"end":{"line":49,"column":66}},{"start":{"line":49,"column":69},"end":{"line":49,"column":74}}],"line":49},"2":{"loc":{"start":{"line":70,"column":2},"end":{"line":70,"column":63}},"type":"if","locations":[{"start":{"line":70,"column":2},"end":{"line":70,"column":63}},{"start":{"line":70,"column":2},"end":{"line":70,"column":63}}],"line":70},"3":{"loc":{"start":{"line":74,"column":31},"end":{"line":74,"column":64}},"type":"cond-expr","locations":[{"start":{"line":74,"column":48},"end":{"line":74,"column":59}},{"start":{"line":74,"column":62},"end":{"line":74,"column":64}}],"line":74},"4":{"loc":{"start":{"line":80,"column":2},"end":{"line":80,"column":41}},"type":"if","locations":[{"start":{"line":80,"column":2},"end":{"line":80,"column":41}},{"start":{"line":80,"column":2},"end":{"line":80,"column":41}}],"line":80},"5":{"loc":{"start":{"line":84,"column":15},"end":{"line":84,"column":52}},"type":"binary-expr","locations":[{"start":{"line":84,"column":15},"end":{"line":84,"column":29}},{"start":{"line":84,"column":33},"end":{"line":84,"column":52}}],"line":84},"6":{"loc":{"start":{"line":85,"column":11},"end":{"line":85,"column":35}},"type":"cond-expr","locations":[{"start":{"line":85,"column":16},"end":{"line":85,"column":31}},{"start":{"line":85,"column":34},"end":{"line":85,"column":35}}],"line":85},"7":{"loc":{"start":{"line":92,"column":2},"end":{"line":106,"column":3}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":106,"column":3}},{"start":{"line":92,"column":2},"end":{"line":106,"column":3}}],"line":92},"8":{"loc":{"start":{"line":93,"column":4},"end":{"line":95,"column":63}},"type":"binary-expr","locations":[{"start":{"line":93,"column":4},"end":{"line":93,"column":19}},{"start":{"line":94,"column":4},"end":{"line":94,"column":26}},{"start":{"line":95,"column":4},"end":{"line":95,"column":63}}],"line":93},"9":{"loc":{"start":{"line":127,"column":4},"end":{"line":134,"column":5}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":134,"column":5}},{"start":{"line":127,"column":4},"end":{"line":134,"column":5}}],"line":127},"10":{"loc":{"start":{"line":146,"column":20},"end":{"line":146,"column":59}},"type":"binary-expr","locations":[{"start":{"line":146,"column":20},"end":{"line":146,"column":37}},{"start":{"line":146,"column":41},"end":{"line":146,"column":59}}],"line":146},"11":{"loc":{"start":{"line":147,"column":27},"end":{"line":149,"column":46}},"type":"cond-expr","locations":[{"start":{"line":148,"column":6},"end":{"line":148,"column":40}},{"start":{"line":149,"column":6},"end":{"line":149,"column":46}}],"line":147},"12":{"loc":{"start":{"line":185,"column":27},"end":{"line":187,"column":20}},"type":"cond-expr","locations":[{"start":{"line":186,"column":6},"end":{"line":186,"column":40}},{"start":{"line":187,"column":6},"end":{"line":187,"column":20}}],"line":185},"13":{"loc":{"start":{"line":199,"column":4},"end":{"line":200,"column":40}},"type":"binary-expr","locations":[{"start":{"line":199,"column":4},"end":{"line":199,"column":50}},{"start":{"line":200,"column":4},"end":{"line":200,"column":40}}],"line":199},"14":{"loc":{"start":{"line":201,"column":9},"end":{"line":201,"column":61}},"type":"binary-expr","locations":[{"start":{"line":201,"column":9},"end":{"line":201,"column":17}},{"start":{"line":201,"column":21},"end":{"line":201,"column":61}}],"line":201},"15":{"loc":{"start":{"line":216,"column":8},"end":{"line":216,"column":30}},"type":"if","locations":[{"start":{"line":216,"column":8},"end":{"line":216,"column":30}},{"start":{"line":216,"column":8},"end":{"line":216,"column":30}}],"line":216},"16":{"loc":{"start":{"line":222,"column":8},"end":{"line":224,"column":9}},"type":"if","locations":[{"start":{"line":222,"column":8},"end":{"line":224,"column":9}},{"start":{"line":222,"column":8},"end":{"line":224,"column":9}}],"line":222},"17":{"loc":{"start":{"line":232,"column":8},"end":{"line":243,"column":9}},"type":"if","locations":[{"start":{"line":232,"column":8},"end":{"line":243,"column":9}},{"start":{"line":232,"column":8},"end":{"line":243,"column":9}}],"line":232},"18":{"loc":{"start":{"line":233,"column":10},"end":{"line":234,"column":59}},"type":"binary-expr","locations":[{"start":{"line":233,"column":10},"end":{"line":233,"column":53}},{"start":{"line":234,"column":10},"end":{"line":234,"column":59}}],"line":233},"19":{"loc":{"start":{"line":245,"column":21},"end":{"line":260,"column":11}},"type":"cond-expr","locations":[{"start":{"line":246,"column":12},"end":{"line":252,"column":11}},{"start":{"line":253,"column":12},"end":{"line":260,"column":11}}],"line":245}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":37,"6":69,"7":13,"8":55,"9":33,"10":17,"11":17,"12":17,"13":17,"14":17,"15":16,"16":16,"17":11,"18":11,"19":36,"20":36,"21":16,"22":20,"23":20,"24":20,"25":20,"26":18,"27":18,"28":9,"29":9,"30":14,"31":14,"32":14,"33":14,"34":19,"35":19,"36":1,"37":1,"38":0,"39":18,"40":18,"41":18,"42":18,"43":18,"44":18,"45":18,"46":18,"47":1,"48":1,"49":18,"50":18,"51":18,"52":18,"53":18,"54":18,"55":18,"56":18,"57":18,"58":18,"59":18,"60":18,"61":18,"62":18,"63":18,"64":18,"65":18,"66":18,"67":18,"68":18,"69":18,"70":18,"71":18,"72":18,"73":1,"74":18,"75":18,"76":18,"77":18,"78":18,"79":37,"80":18,"81":19,"82":19,"83":19,"84":19,"85":18,"86":19,"87":19,"88":19,"89":1,"90":1,"91":1,"92":18,"93":18,"94":18,"95":18,"96":18},"f":{"0":37,"1":69,"2":13,"3":55,"4":33,"5":0,"6":11,"7":36,"8":18,"9":14,"10":19,"11":18,"12":18,"13":18,"14":18,"15":18,"16":18,"17":18,"18":18,"19":18,"20":18},"b":{"0":[17,16],"1":[11,17],"2":[16,20],"3":[12,8],"4":[9,9],"5":[14,5],"6":[5,9],"7":[1,18],"8":[19,1,1],"9":[1,17],"10":[18,15],"11":[3,15],"12":[3,15],"13":[18,12],"14":[18,2],"15":[18,19],"16":[18,1],"17":[1,18],"18":[19,19],"19":[1,17]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"88f70e214a4d7d9271b29031b97f998fa4e5ebfb"}
}

@@ -37,8 +37,4 @@ 'use-strict'

function getImport(p, { id, source, nameHint }) {
if (!p.hub.file[id]) {
p.hub.file[id] = addDefault(p, source, { nameHint })
}
return p.hub.file[id]
function getImport(p, { source, nameHint }) {
return addDefault(p, source, { nameHint })
}

@@ -45,0 +41,0 @@

{
"name": "babel-plugin-universal-import",
"version": "2.0.1",
"version": "2.0.2",
"description": "Babel plugin to transform import() into its Universal counterpart",

@@ -25,8 +25,7 @@ "main": "index.js",

"devDependencies": {
"@babel/cli": "^7.0.0-beta.32",
"@babel/core": "^7.0.0-beta.32",
"@babel/plugin-syntax-dynamic-import": "^7.0.0-beta.32",
"@babel/preset-es2015": "^7.0.0-beta.32",
"@babel/preset-react": "^7.0.0-beta.32",
"@babel/preset-stage-2": "^7.0.0-beta.32",
"@babel/cli": "^7.0.0-beta.49",
"@babel/core": "^7.0.0-beta.49",
"@babel/plugin-syntax-dynamic-import": "^7.0.0-beta.49",
"@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.49",
"@babel/preset-react": "^7.0.0-beta.49",
"babel-core": "^7.0.0-0",

@@ -36,3 +35,3 @@ "babel-eslint": "^8.0.2",

"babel-plugin-tester": "^5.0.0",
"babylon-options": "^1.1.2",
"babylon-options": "^2.0.1",
"commitizen": "^2.9.6",

@@ -70,4 +69,4 @@ "cz-conventional-changelog": "^2.0.0",

"dependencies": {
"@babel/helper-module-imports": "^7.0.0-beta.32"
"@babel/helper-module-imports": "^7.0.0-beta.49"
}
}

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