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

qlobber

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qlobber - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

2

coverage/coverage.json

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

{"/home/david/qlobber/Gruntfile.js":{"path":"/home/david/qlobber/Gruntfile.js","s":{"1":1,"2":1,"3":2,"4":2,"5":3,"6":2,"7":2,"8":2,"9":1,"10":2,"11":2,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1},"b":{"1":[2,1],"2":[1,1]},"f":{"1":2,"2":1},"fnMap":{"1":{"name":"(anonymous_1)","line":11,"loc":{"start":{"line":11,"column":21},"end":{"line":12,"column":0}}},"2":{"name":"(anonymous_2)","line":39,"loc":{"start":{"line":39,"column":17},"end":{"line":40,"column":0}}}},"statementMap":{"1":{"start":{"line":8,"column":0},"end":{"line":9,"column":39}},"2":{"start":{"line":11,"column":0},"end":{"line":33,"column":2}},"3":{"start":{"line":13,"column":4},"end":{"line":13,"column":51}},"4":{"start":{"line":15,"column":4},"end":{"line":30,"column":5}},"5":{"start":{"line":17,"column":8},"end":{"line":29,"column":9}},"6":{"start":{"line":19,"column":12},"end":{"line":19,"column":32}},"7":{"start":{"line":21,"column":12},"end":{"line":21,"column":33}},"8":{"start":{"line":23,"column":12},"end":{"line":26,"column":13}},"9":{"start":{"line":25,"column":16},"end":{"line":25,"column":47}},"10":{"start":{"line":28,"column":12},"end":{"line":28,"column":18}},"11":{"start":{"line":32,"column":4},"end":{"line":32,"column":48}},"12":{"start":{"line":36,"column":0},"end":{"line":36,"column":78}},"13":{"start":{"line":37,"column":0},"end":{"line":37,"column":96}},"14":{"start":{"line":39,"column":0},"end":{"line":111,"column":2}},"15":{"start":{"line":41,"column":4},"end":{"line":92,"column":7}},"16":{"start":{"line":94,"column":4},"end":{"line":94,"column":39}},"17":{"start":{"line":95,"column":4},"end":{"line":95,"column":43}},"18":{"start":{"line":96,"column":4},"end":{"line":96,"column":39}},"19":{"start":{"line":97,"column":4},"end":{"line":97,"column":37}},"20":{"start":{"line":99,"column":4},"end":{"line":99,"column":45}},"21":{"start":{"line":100,"column":4},"end":{"line":100,"column":44}},"22":{"start":{"line":101,"column":4},"end":{"line":101,"column":41}},"23":{"start":{"line":102,"column":4},"end":{"line":102,"column":71}},"24":{"start":{"line":103,"column":4},"end":{"line":103,"column":54}},"25":{"start":{"line":104,"column":4},"end":{"line":106,"column":59}},"26":{"start":{"line":107,"column":4},"end":{"line":107,"column":58}},"27":{"start":{"line":108,"column":4},"end":{"line":108,"column":64}},"28":{"start":{"line":109,"column":4},"end":{"line":109,"column":68}},"29":{"start":{"line":110,"column":4},"end":{"line":110,"column":59}}},"branchMap":{"1":{"line":17,"type":"if","locations":[{"start":{"line":17,"column":8},"end":{"line":17,"column":8}},{"start":{"line":17,"column":8},"end":{"line":17,"column":8}}]},"2":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":12},"end":{"line":23,"column":12}},{"start":{"line":23,"column":12},"end":{"line":23,"column":12}}]}}},"/home/david/qlobber/index.js":{"path":"/home/david/qlobber/index.js","s":{"1":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":42}}},"branchMap":{}},"/home/david/qlobber/lib/qlobber.js":{"path":"/home/david/qlobber/lib/qlobber.js","s":{"1":1,"2":1,"3":27,"4":27,"5":27,"6":27,"7":27,"8":1,"9":165,"10":1,"11":360000,"12":1,"13":1013,"14":1013,"15":121013,"16":1,"17":27,"18":27,"19":26,"20":27,"21":1,"22":4321147,"23":4321147,"24":720333,"25":720333,"26":720001,"27":332,"28":720333,"29":3600814,"30":3600814,"31":3600814,"32":429,"33":3600814,"34":1,"35":222,"36":222,"37":66,"38":66,"39":60,"40":66,"41":156,"42":156,"43":156,"44":2,"45":154,"46":154,"47":86,"48":68,"49":1,"50":1944,"51":1944,"52":2348,"53":2348,"54":520,"55":928,"56":520,"57":1944,"58":1,"59":3840,"60":3840,"61":3840,"62":1944,"63":1944,"64":3840,"65":2230,"66":2230,"67":2040,"68":103,"69":103,"70":103,"71":1937,"72":115,"73":115,"74":1822,"75":1610,"76":1610,"77":1606,"78":1606,"79":320,"80":1610,"81":1582,"82":1582,"83":515,"84":3840,"85":1,"86":133,"87":133,"88":1,"89":720333,"90":720333,"91":1,"92":68,"93":68,"94":1,"95":66,"96":1,"97":2,"98":2,"99":1,"100":9,"101":1,"102":14,"103":1,"104":1,"105":167,"106":1,"107":360001,"108":1,"109":1015,"110":121015,"111":1,"112":27,"113":27,"114":1,"115":67,"116":1,"117":1},"b":{"1":[27,25],"2":[27,25],"3":[27,25],"4":[27,25],"5":[26,1],"6":[720333,3600814],"7":[720001,332],"8":[429,3600385],"9":[66,156],"10":[60,6],"11":[66,64,54],"12":[2,154],"13":[520,1828],"14":[1944,1896],"15":[2230,1610],"16":[2040,190],"17":[103,1937],"18":[115,1822],"19":[1606,4],"20":[1610,1608],"21":[320,1286],"22":[1582,28],"23":[515,1067],"24":[133,103]},"f":{"1":27,"2":165,"3":360000,"4":1013,"5":27,"6":4321147,"7":222,"8":1944,"9":3840,"10":133,"11":720333,"12":68,"13":66,"14":2,"15":9,"16":14,"17":167,"18":360001,"19":1015,"20":121015,"21":27,"22":67},"fnMap":{"1":{"name":"Qlobber","line":115,"loc":{"start":{"line":115,"column":0},"end":{"line":116,"column":0}}},"2":{"name":"(anonymous_2)","line":125,"loc":{"start":{"line":125,"column":35},"end":{"line":126,"column":0}}},"3":{"name":"(anonymous_3)","line":130,"loc":{"start":{"line":130,"column":31},"end":{"line":131,"column":0}}},"4":{"name":"(anonymous_4)","line":135,"loc":{"start":{"line":135,"column":32},"end":{"line":136,"column":0}}},"5":{"name":"(anonymous_5)","line":145,"loc":{"start":{"line":145,"column":34},"end":{"line":146,"column":0}}},"6":{"name":"(anonymous_6)","line":157,"loc":{"start":{"line":157,"column":25},"end":{"line":158,"column":0}}},"7":{"name":"(anonymous_7)","line":188,"loc":{"start":{"line":188,"column":28},"end":{"line":189,"column":0}}},"8":{"name":"(anonymous_8)","line":226,"loc":{"start":{"line":226,"column":26},"end":{"line":227,"column":0}}},"9":{"name":"(anonymous_9)","line":246,"loc":{"start":{"line":246,"column":27},"end":{"line":247,"column":0}}},"10":{"name":"(anonymous_10)","line":311,"loc":{"start":{"line":311,"column":28},"end":{"line":312,"column":0}}},"11":{"name":"(anonymous_11)","line":330,"loc":{"start":{"line":330,"column":24},"end":{"line":331,"column":0}}},"12":{"name":"(anonymous_12)","line":343,"loc":{"start":{"line":343,"column":27},"end":{"line":344,"column":0}}},"13":{"name":"(anonymous_13)","line":355,"loc":{"start":{"line":355,"column":26},"end":{"line":356,"column":0}}},"14":{"name":"(anonymous_14)","line":367,"loc":{"start":{"line":367,"column":26},"end":{"line":368,"column":0}}},"15":{"name":"(anonymous_15)","line":374,"loc":{"start":{"line":374,"column":29},"end":{"line":375,"column":0}}},"16":{"name":"QlobberDedup","line":387,"loc":{"start":{"line":387,"column":0},"end":{"line":388,"column":0}}},"17":{"name":"(anonymous_17)","line":394,"loc":{"start":{"line":394,"column":40},"end":{"line":395,"column":0}}},"18":{"name":"(anonymous_18)","line":399,"loc":{"start":{"line":399,"column":36},"end":{"line":400,"column":0}}},"19":{"name":"(anonymous_19)","line":404,"loc":{"start":{"line":404,"column":37},"end":{"line":405,"column":0}}},"20":{"name":"(anonymous_20)","line":406,"loc":{"start":{"line":406,"column":19},"end":{"line":407,"column":4}}},"21":{"name":"(anonymous_21)","line":412,"loc":{"start":{"line":412,"column":39},"end":{"line":413,"column":0}}},"22":{"name":"(anonymous_22)","line":424,"loc":{"start":{"line":424,"column":31},"end":{"line":425,"column":0}}}},"statementMap":{"1":{"start":{"line":101,"column":0},"end":{"line":101,"column":27}},"2":{"start":{"line":115,"column":0},"end":{"line":123,"column":1}},"3":{"start":{"line":117,"column":4},"end":{"line":117,"column":28}},"4":{"start":{"line":119,"column":4},"end":{"line":119,"column":47}},"5":{"start":{"line":120,"column":4},"end":{"line":120,"column":53}},"6":{"start":{"line":121,"column":4},"end":{"line":121,"column":55}},"7":{"start":{"line":122,"column":4},"end":{"line":122,"column":20}},"8":{"start":{"line":125,"column":0},"end":{"line":128,"column":2}},"9":{"start":{"line":127,"column":4},"end":{"line":127,"column":17}},"10":{"start":{"line":130,"column":0},"end":{"line":133,"column":2}},"11":{"start":{"line":132,"column":4},"end":{"line":132,"column":28}},"12":{"start":{"line":135,"column":0},"end":{"line":143,"column":2}},"13":{"start":{"line":137,"column":4},"end":{"line":137,"column":66}},"14":{"start":{"line":139,"column":4},"end":{"line":142,"column":5}},"15":{"start":{"line":141,"column":8},"end":{"line":141,"column":41}},"16":{"start":{"line":145,"column":0},"end":{"line":155,"column":2}},"17":{"start":{"line":147,"column":4},"end":{"line":147,"column":38}},"18":{"start":{"line":149,"column":4},"end":{"line":152,"column":5}},"19":{"start":{"line":151,"column":8},"end":{"line":151,"column":30}},"20":{"start":{"line":154,"column":4},"end":{"line":154,"column":29}},"21":{"start":{"line":157,"column":0},"end":{"line":186,"column":2}},"22":{"start":{"line":159,"column":4},"end":{"line":159,"column":17}},"23":{"start":{"line":161,"column":4},"end":{"line":175,"column":5}},"24":{"start":{"line":163,"column":8},"end":{"line":163,"column":39}},"25":{"start":{"line":165,"column":8},"end":{"line":172,"column":9}},"26":{"start":{"line":167,"column":12},"end":{"line":167,"column":37}},"27":{"start":{"line":171,"column":12},"end":{"line":171,"column":65}},"28":{"start":{"line":174,"column":8},"end":{"line":174,"column":15}},"29":{"start":{"line":177,"column":4},"end":{"line":177,"column":20}},"30":{"start":{"line":178,"column":4},"end":{"line":178,"column":24}},"31":{"start":{"line":180,"column":4},"end":{"line":183,"column":5}},"32":{"start":{"line":182,"column":8},"end":{"line":182,"column":33}},"33":{"start":{"line":185,"column":4},"end":{"line":185,"column":37}},"34":{"start":{"line":188,"column":0},"end":{"line":224,"column":2}},"35":{"start":{"line":190,"column":4},"end":{"line":190,"column":17}},"36":{"start":{"line":192,"column":4},"end":{"line":204,"column":5}},"37":{"start":{"line":194,"column":8},"end":{"line":194,"column":39}},"38":{"start":{"line":196,"column":8},"end":{"line":201,"column":9}},"39":{"start":{"line":200,"column":12},"end":{"line":200,"column":45}},"40":{"start":{"line":203,"column":8},"end":{"line":203,"column":15}},"41":{"start":{"line":206,"column":4},"end":{"line":206,"column":20}},"42":{"start":{"line":207,"column":4},"end":{"line":207,"column":24}},"43":{"start":{"line":209,"column":4},"end":{"line":212,"column":5}},"44":{"start":{"line":211,"column":8},"end":{"line":211,"column":15}},"45":{"start":{"line":214,"column":4},"end":{"line":214,"column":40}},"46":{"start":{"line":217,"column":4},"end":{"line":220,"column":5}},"47":{"start":{"line":219,"column":8},"end":{"line":219,"column":15}},"48":{"start":{"line":223,"column":4},"end":{"line":223,"column":26}},"49":{"start":{"line":226,"column":0},"end":{"line":244,"column":2}},"50":{"start":{"line":228,"column":4},"end":{"line":228,"column":37}},"51":{"start":{"line":230,"column":4},"end":{"line":241,"column":5}},"52":{"start":{"line":232,"column":8},"end":{"line":232,"column":20}},"53":{"start":{"line":233,"column":8},"end":{"line":240,"column":9}},"54":{"start":{"line":235,"column":12},"end":{"line":238,"column":13}},"55":{"start":{"line":237,"column":16},"end":{"line":237,"column":49}},"56":{"start":{"line":239,"column":12},"end":{"line":239,"column":18}},"57":{"start":{"line":243,"column":4},"end":{"line":243,"column":13}},"58":{"start":{"line":246,"column":0},"end":{"line":309,"column":2}},"59":{"start":{"line":248,"column":4},"end":{"line":248,"column":17}},"60":{"start":{"line":250,"column":4},"end":{"line":250,"column":39}},"61":{"start":{"line":252,"column":4},"end":{"line":258,"column":5}},"62":{"start":{"line":255,"column":8},"end":{"line":255,"column":40}},"63":{"start":{"line":257,"column":8},"end":{"line":257,"column":52}},"64":{"start":{"line":260,"column":4},"end":{"line":306,"column":5}},"65":{"start":{"line":262,"column":8},"end":{"line":262,"column":39}},"66":{"start":{"line":264,"column":8},"end":{"line":281,"column":9}},"67":{"start":{"line":266,"column":12},"end":{"line":280,"column":13}},"68":{"start":{"line":268,"column":16},"end":{"line":268,"column":51}},"69":{"start":{"line":269,"column":16},"end":{"line":269,"column":45}},"70":{"start":{"line":270,"column":16},"end":{"line":270,"column":27}},"71":{"start":{"line":272,"column":17},"end":{"line":280,"column":13}},"72":{"start":{"line":274,"column":16},"end":{"line":274,"column":34}},"73":{"start":{"line":275,"column":16},"end":{"line":275,"column":30}},"74":{"start":{"line":279,"column":16},"end":{"line":279,"column":40}},"75":{"start":{"line":285,"column":8},"end":{"line":285,"column":24}},"76":{"start":{"line":287,"column":8},"end":{"line":295,"column":9}},"77":{"start":{"line":289,"column":12},"end":{"line":289,"column":32}},"78":{"start":{"line":291,"column":12},"end":{"line":294,"column":13}},"79":{"start":{"line":293,"column":16},"end":{"line":293,"column":53}},"80":{"start":{"line":297,"column":8},"end":{"line":305,"column":9}},"81":{"start":{"line":299,"column":12},"end":{"line":299,"column":46}},"82":{"start":{"line":301,"column":12},"end":{"line":304,"column":13}},"83":{"start":{"line":303,"column":16},"end":{"line":303,"column":53}},"84":{"start":{"line":308,"column":4},"end":{"line":308,"column":13}},"85":{"start":{"line":311,"column":0},"end":{"line":319,"column":2}},"86":{"start":{"line":313,"column":4},"end":{"line":316,"column":52}},"87":{"start":{"line":318,"column":4},"end":{"line":318,"column":31}},"88":{"start":{"line":330,"column":0},"end":{"line":334,"column":2}},"89":{"start":{"line":332,"column":4},"end":{"line":332,"column":64}},"90":{"start":{"line":333,"column":4},"end":{"line":333,"column":16}},"91":{"start":{"line":343,"column":0},"end":{"line":347,"column":2}},"92":{"start":{"line":345,"column":4},"end":{"line":345,"column":67}},"93":{"start":{"line":346,"column":4},"end":{"line":346,"column":16}},"94":{"start":{"line":355,"column":0},"end":{"line":358,"column":2}},"95":{"start":{"line":357,"column":4},"end":{"line":357,"column":35}},"96":{"start":{"line":367,"column":0},"end":{"line":371,"column":2}},"97":{"start":{"line":369,"column":4},"end":{"line":369,"column":20}},"98":{"start":{"line":370,"column":4},"end":{"line":370,"column":16}},"99":{"start":{"line":374,"column":0},"end":{"line":377,"column":2}},"100":{"start":{"line":376,"column":4},"end":{"line":376,"column":22}},"101":{"start":{"line":387,"column":0},"end":{"line":390,"column":1}},"102":{"start":{"line":389,"column":4},"end":{"line":389,"column":32}},"103":{"start":{"line":392,"column":0},"end":{"line":392,"column":37}},"104":{"start":{"line":394,"column":0},"end":{"line":397,"column":2}},"105":{"start":{"line":396,"column":4},"end":{"line":396,"column":30}},"106":{"start":{"line":399,"column":0},"end":{"line":402,"column":2}},"107":{"start":{"line":401,"column":4},"end":{"line":401,"column":18}},"108":{"start":{"line":404,"column":0},"end":{"line":410,"column":2}},"109":{"start":{"line":406,"column":4},"end":{"line":409,"column":7}},"110":{"start":{"line":408,"column":8},"end":{"line":408,"column":22}},"111":{"start":{"line":412,"column":0},"end":{"line":416,"column":2}},"112":{"start":{"line":414,"column":4},"end":{"line":414,"column":21}},"113":{"start":{"line":415,"column":4},"end":{"line":415,"column":27}},"114":{"start":{"line":424,"column":0},"end":{"line":427,"column":2}},"115":{"start":{"line":426,"column":4},"end":{"line":426,"column":42}},"116":{"start":{"line":429,"column":0},"end":{"line":429,"column":26}},"117":{"start":{"line":430,"column":0},"end":{"line":430,"column":36}}},"branchMap":{"1":{"line":117,"type":"binary-expr","locations":[{"start":{"line":117,"column":14},"end":{"line":117,"column":21}},{"start":{"line":117,"column":25},"end":{"line":117,"column":27}}]},"2":{"line":119,"type":"binary-expr","locations":[{"start":{"line":119,"column":22},"end":{"line":119,"column":39}},{"start":{"line":119,"column":43},"end":{"line":119,"column":46}}]},"3":{"line":120,"type":"binary-expr","locations":[{"start":{"line":120,"column":25},"end":{"line":120,"column":45}},{"start":{"line":120,"column":49},"end":{"line":120,"column":52}}]},"4":{"line":121,"type":"binary-expr","locations":[{"start":{"line":121,"column":26},"end":{"line":121,"column":47}},{"start":{"line":121,"column":51},"end":{"line":121,"column":54}}]},"5":{"line":149,"type":"if","locations":[{"start":{"line":149,"column":4},"end":{"line":149,"column":4}},{"start":{"line":149,"column":4},"end":{"line":149,"column":4}}]},"6":{"line":161,"type":"if","locations":[{"start":{"line":161,"column":4},"end":{"line":161,"column":4}},{"start":{"line":161,"column":4},"end":{"line":161,"column":4}}]},"7":{"line":165,"type":"if","locations":[{"start":{"line":165,"column":8},"end":{"line":165,"column":8}},{"start":{"line":165,"column":8},"end":{"line":165,"column":8}}]},"8":{"line":180,"type":"if","locations":[{"start":{"line":180,"column":4},"end":{"line":180,"column":4}},{"start":{"line":180,"column":4},"end":{"line":180,"column":4}}]},"9":{"line":192,"type":"if","locations":[{"start":{"line":192,"column":4},"end":{"line":192,"column":4}},{"start":{"line":192,"column":4},"end":{"line":192,"column":4}}]},"10":{"line":196,"type":"if","locations":[{"start":{"line":196,"column":8},"end":{"line":196,"column":8}},{"start":{"line":196,"column":8},"end":{"line":196,"column":8}}]},"11":{"line":196,"type":"binary-expr","locations":[{"start":{"line":196,"column":12},"end":{"line":196,"column":14}},{"start":{"line":197,"column":14},"end":{"line":197,"column":31}},{"start":{"line":198,"column":13},"end":{"line":198,"column":40}}]},"12":{"line":209,"type":"if","locations":[{"start":{"line":209,"column":4},"end":{"line":209,"column":4}},{"start":{"line":209,"column":4},"end":{"line":209,"column":4}}]},"13":{"line":233,"type":"if","locations":[{"start":{"line":233,"column":8},"end":{"line":233,"column":8}},{"start":{"line":233,"column":8},"end":{"line":233,"column":8}}]},"14":{"line":252,"type":"if","locations":[{"start":{"line":252,"column":4},"end":{"line":252,"column":4}},{"start":{"line":252,"column":4},"end":{"line":252,"column":4}}]},"15":{"line":260,"type":"if","locations":[{"start":{"line":260,"column":4},"end":{"line":260,"column":4}},{"start":{"line":260,"column":4},"end":{"line":260,"column":4}}]},"16":{"line":264,"type":"if","locations":[{"start":{"line":264,"column":8},"end":{"line":264,"column":8}},{"start":{"line":264,"column":8},"end":{"line":264,"column":8}}]},"17":{"line":266,"type":"if","locations":[{"start":{"line":266,"column":12},"end":{"line":266,"column":12}},{"start":{"line":266,"column":12},"end":{"line":266,"column":12}}]},"18":{"line":272,"type":"if","locations":[{"start":{"line":272,"column":17},"end":{"line":272,"column":17}},{"start":{"line":272,"column":17},"end":{"line":272,"column":17}}]},"19":{"line":287,"type":"if","locations":[{"start":{"line":287,"column":8},"end":{"line":287,"column":8}},{"start":{"line":287,"column":8},"end":{"line":287,"column":8}}]},"20":{"line":287,"type":"binary-expr","locations":[{"start":{"line":287,"column":13},"end":{"line":287,"column":40}},{"start":{"line":287,"column":46},"end":{"line":287,"column":74}}]},"21":{"line":291,"type":"if","locations":[{"start":{"line":291,"column":12},"end":{"line":291,"column":12}},{"start":{"line":291,"column":12},"end":{"line":291,"column":12}}]},"22":{"line":297,"type":"if","locations":[{"start":{"line":297,"column":8},"end":{"line":297,"column":8}},{"start":{"line":297,"column":8},"end":{"line":297,"column":8}}]},"23":{"line":301,"type":"if","locations":[{"start":{"line":301,"column":12},"end":{"line":301,"column":12}},{"start":{"line":301,"column":12},"end":{"line":301,"column":12}}]},"24":{"line":318,"type":"binary-expr","locations":[{"start":{"line":318,"column":11},"end":{"line":318,"column":22}},{"start":{"line":318,"column":26},"end":{"line":318,"column":30}}]}}}}
{"/home/david/qlobber/Gruntfile.js":{"path":"/home/david/qlobber/Gruntfile.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":1,"15":1,"16":1},"b":{},"f":{"1":1},"fnMap":{"1":{"name":"(anonymous_1)","line":4,"loc":{"start":{"line":4,"column":17},"end":{"line":5,"column":0}}}},"statementMap":{"1":{"start":{"line":4,"column":0},"end":{"line":74,"column":2}},"2":{"start":{"line":6,"column":4},"end":{"line":55,"column":7}},"3":{"start":{"line":57,"column":4},"end":{"line":57,"column":47}},"4":{"start":{"line":58,"column":4},"end":{"line":58,"column":43}},"5":{"start":{"line":59,"column":4},"end":{"line":59,"column":39}},"6":{"start":{"line":60,"column":4},"end":{"line":60,"column":38}},"7":{"start":{"line":62,"column":4},"end":{"line":62,"column":41}},"8":{"start":{"line":63,"column":4},"end":{"line":63,"column":44}},"9":{"start":{"line":64,"column":4},"end":{"line":64,"column":41}},"10":{"start":{"line":65,"column":4},"end":{"line":65,"column":73}},"11":{"start":{"line":66,"column":4},"end":{"line":66,"column":54}},"12":{"start":{"line":67,"column":4},"end":{"line":69,"column":59}},"13":{"start":{"line":70,"column":4},"end":{"line":70,"column":58}},"14":{"start":{"line":71,"column":4},"end":{"line":71,"column":64}},"15":{"start":{"line":72,"column":4},"end":{"line":72,"column":68}},"16":{"start":{"line":73,"column":4},"end":{"line":73,"column":59}}},"branchMap":{}},"/home/david/qlobber/index.js":{"path":"/home/david/qlobber/index.js","s":{"1":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":42}}},"branchMap":{}},"/home/david/qlobber/lib/qlobber.js":{"path":"/home/david/qlobber/lib/qlobber.js","s":{"1":1,"2":1,"3":27,"4":27,"5":27,"6":27,"7":27,"8":1,"9":165,"10":1,"11":360000,"12":1,"13":1013,"14":1013,"15":121013,"16":1,"17":27,"18":27,"19":26,"20":27,"21":1,"22":4321147,"23":4321147,"24":720333,"25":720333,"26":720001,"27":332,"28":720333,"29":3600814,"30":3600814,"31":3600814,"32":429,"33":429,"34":3600814,"35":1,"36":222,"37":222,"38":66,"39":66,"40":60,"41":66,"42":156,"43":156,"44":156,"45":2,"46":154,"47":154,"48":68,"49":1,"50":1944,"51":1944,"52":2348,"53":520,"54":928,"55":520,"56":1944,"57":1,"58":3840,"59":3840,"60":3840,"61":1944,"62":1944,"63":3840,"64":2230,"65":2230,"66":2040,"67":103,"68":103,"69":103,"70":1937,"71":115,"72":115,"73":1822,"74":1610,"75":1610,"76":1606,"77":1606,"78":320,"79":1610,"80":1582,"81":1582,"82":515,"83":3840,"84":1,"85":133,"86":133,"87":1,"88":720333,"89":720333,"90":1,"91":68,"92":68,"93":1,"94":66,"95":1,"96":2,"97":2,"98":1,"99":9,"100":1,"101":14,"102":1,"103":1,"104":167,"105":1,"106":360001,"107":1,"108":1015,"109":121015,"110":1,"111":27,"112":27,"113":1,"114":67,"115":1,"116":1},"b":{"1":[27,25],"2":[27,25],"3":[27,25],"4":[27,25],"5":[26,1],"6":[720333,3600814],"7":[720001,332],"8":[429,3600385],"9":[66,156],"10":[60,6],"11":[66,64,54],"12":[2,154],"13":[68,86],"14":[520,1828],"15":[1944,1896],"16":[2230,1610],"17":[2040,190],"18":[103,1937],"19":[115,1822],"20":[1606,4],"21":[1610,1608],"22":[320,1286],"23":[1582,28],"24":[515,1067],"25":[133,103]},"f":{"1":27,"2":165,"3":360000,"4":1013,"5":27,"6":4321147,"7":222,"8":1944,"9":3840,"10":133,"11":720333,"12":68,"13":66,"14":2,"15":9,"16":14,"17":167,"18":360001,"19":1015,"20":121015,"21":27,"22":67},"fnMap":{"1":{"name":"Qlobber","line":115,"loc":{"start":{"line":115,"column":0},"end":{"line":116,"column":0}}},"2":{"name":"(anonymous_2)","line":125,"loc":{"start":{"line":125,"column":35},"end":{"line":126,"column":0}}},"3":{"name":"(anonymous_3)","line":130,"loc":{"start":{"line":130,"column":31},"end":{"line":131,"column":0}}},"4":{"name":"(anonymous_4)","line":135,"loc":{"start":{"line":135,"column":32},"end":{"line":136,"column":0}}},"5":{"name":"(anonymous_5)","line":145,"loc":{"start":{"line":145,"column":34},"end":{"line":146,"column":0}}},"6":{"name":"(anonymous_6)","line":157,"loc":{"start":{"line":157,"column":25},"end":{"line":158,"column":0}}},"7":{"name":"(anonymous_7)","line":189,"loc":{"start":{"line":189,"column":28},"end":{"line":190,"column":0}}},"8":{"name":"(anonymous_8)","line":223,"loc":{"start":{"line":223,"column":26},"end":{"line":224,"column":0}}},"9":{"name":"(anonymous_9)","line":242,"loc":{"start":{"line":242,"column":27},"end":{"line":243,"column":0}}},"10":{"name":"(anonymous_10)","line":307,"loc":{"start":{"line":307,"column":28},"end":{"line":308,"column":0}}},"11":{"name":"(anonymous_11)","line":326,"loc":{"start":{"line":326,"column":24},"end":{"line":327,"column":0}}},"12":{"name":"(anonymous_12)","line":339,"loc":{"start":{"line":339,"column":27},"end":{"line":340,"column":0}}},"13":{"name":"(anonymous_13)","line":351,"loc":{"start":{"line":351,"column":26},"end":{"line":352,"column":0}}},"14":{"name":"(anonymous_14)","line":363,"loc":{"start":{"line":363,"column":26},"end":{"line":364,"column":0}}},"15":{"name":"(anonymous_15)","line":370,"loc":{"start":{"line":370,"column":29},"end":{"line":371,"column":0}}},"16":{"name":"QlobberDedup","line":383,"loc":{"start":{"line":383,"column":0},"end":{"line":384,"column":0}}},"17":{"name":"(anonymous_17)","line":390,"loc":{"start":{"line":390,"column":40},"end":{"line":391,"column":0}}},"18":{"name":"(anonymous_18)","line":395,"loc":{"start":{"line":395,"column":36},"end":{"line":396,"column":0}}},"19":{"name":"(anonymous_19)","line":400,"loc":{"start":{"line":400,"column":37},"end":{"line":401,"column":0}}},"20":{"name":"(anonymous_20)","line":402,"loc":{"start":{"line":402,"column":19},"end":{"line":403,"column":4}}},"21":{"name":"(anonymous_21)","line":408,"loc":{"start":{"line":408,"column":39},"end":{"line":409,"column":0}}},"22":{"name":"(anonymous_22)","line":420,"loc":{"start":{"line":420,"column":31},"end":{"line":421,"column":0}}}},"statementMap":{"1":{"start":{"line":101,"column":0},"end":{"line":101,"column":27}},"2":{"start":{"line":115,"column":0},"end":{"line":123,"column":1}},"3":{"start":{"line":117,"column":4},"end":{"line":117,"column":28}},"4":{"start":{"line":119,"column":4},"end":{"line":119,"column":47}},"5":{"start":{"line":120,"column":4},"end":{"line":120,"column":53}},"6":{"start":{"line":121,"column":4},"end":{"line":121,"column":55}},"7":{"start":{"line":122,"column":4},"end":{"line":122,"column":27}},"8":{"start":{"line":125,"column":0},"end":{"line":128,"column":2}},"9":{"start":{"line":127,"column":4},"end":{"line":127,"column":17}},"10":{"start":{"line":130,"column":0},"end":{"line":133,"column":2}},"11":{"start":{"line":132,"column":4},"end":{"line":132,"column":28}},"12":{"start":{"line":135,"column":0},"end":{"line":143,"column":2}},"13":{"start":{"line":137,"column":4},"end":{"line":137,"column":66}},"14":{"start":{"line":139,"column":4},"end":{"line":142,"column":5}},"15":{"start":{"line":141,"column":8},"end":{"line":141,"column":41}},"16":{"start":{"line":145,"column":0},"end":{"line":155,"column":2}},"17":{"start":{"line":147,"column":4},"end":{"line":147,"column":38}},"18":{"start":{"line":149,"column":4},"end":{"line":152,"column":5}},"19":{"start":{"line":151,"column":8},"end":{"line":151,"column":30}},"20":{"start":{"line":154,"column":4},"end":{"line":154,"column":29}},"21":{"start":{"line":157,"column":0},"end":{"line":187,"column":2}},"22":{"start":{"line":159,"column":4},"end":{"line":159,"column":17}},"23":{"start":{"line":161,"column":4},"end":{"line":175,"column":5}},"24":{"start":{"line":163,"column":8},"end":{"line":163,"column":43}},"25":{"start":{"line":165,"column":8},"end":{"line":172,"column":9}},"26":{"start":{"line":167,"column":12},"end":{"line":167,"column":37}},"27":{"start":{"line":171,"column":12},"end":{"line":171,"column":68}},"28":{"start":{"line":174,"column":8},"end":{"line":174,"column":15}},"29":{"start":{"line":177,"column":4},"end":{"line":177,"column":20}},"30":{"start":{"line":178,"column":4},"end":{"line":178,"column":28}},"31":{"start":{"line":180,"column":4},"end":{"line":184,"column":5}},"32":{"start":{"line":182,"column":8},"end":{"line":182,"column":23}},"33":{"start":{"line":183,"column":8},"end":{"line":183,"column":31}},"34":{"start":{"line":186,"column":4},"end":{"line":186,"column":37}},"35":{"start":{"line":189,"column":0},"end":{"line":221,"column":2}},"36":{"start":{"line":191,"column":4},"end":{"line":191,"column":17}},"37":{"start":{"line":193,"column":4},"end":{"line":205,"column":5}},"38":{"start":{"line":195,"column":8},"end":{"line":195,"column":43}},"39":{"start":{"line":197,"column":8},"end":{"line":202,"column":9}},"40":{"start":{"line":201,"column":12},"end":{"line":201,"column":45}},"41":{"start":{"line":204,"column":8},"end":{"line":204,"column":15}},"42":{"start":{"line":207,"column":4},"end":{"line":207,"column":20}},"43":{"start":{"line":208,"column":4},"end":{"line":208,"column":28}},"44":{"start":{"line":210,"column":4},"end":{"line":213,"column":5}},"45":{"start":{"line":212,"column":8},"end":{"line":212,"column":15}},"46":{"start":{"line":215,"column":4},"end":{"line":215,"column":40}},"47":{"start":{"line":217,"column":4},"end":{"line":220,"column":5}},"48":{"start":{"line":219,"column":8},"end":{"line":219,"column":30}},"49":{"start":{"line":223,"column":0},"end":{"line":240,"column":2}},"50":{"start":{"line":225,"column":4},"end":{"line":225,"column":13}},"51":{"start":{"line":227,"column":4},"end":{"line":237,"column":5}},"52":{"start":{"line":229,"column":8},"end":{"line":236,"column":9}},"53":{"start":{"line":231,"column":12},"end":{"line":234,"column":13}},"54":{"start":{"line":233,"column":16},"end":{"line":233,"column":49}},"55":{"start":{"line":235,"column":12},"end":{"line":235,"column":18}},"56":{"start":{"line":239,"column":4},"end":{"line":239,"column":13}},"57":{"start":{"line":242,"column":0},"end":{"line":305,"column":2}},"58":{"start":{"line":244,"column":4},"end":{"line":244,"column":17}},"59":{"start":{"line":246,"column":4},"end":{"line":246,"column":43}},"60":{"start":{"line":248,"column":4},"end":{"line":254,"column":5}},"61":{"start":{"line":251,"column":8},"end":{"line":251,"column":40}},"62":{"start":{"line":253,"column":8},"end":{"line":253,"column":52}},"63":{"start":{"line":256,"column":4},"end":{"line":302,"column":5}},"64":{"start":{"line":258,"column":8},"end":{"line":258,"column":43}},"65":{"start":{"line":260,"column":8},"end":{"line":277,"column":9}},"66":{"start":{"line":262,"column":12},"end":{"line":276,"column":13}},"67":{"start":{"line":264,"column":16},"end":{"line":264,"column":51}},"68":{"start":{"line":265,"column":16},"end":{"line":265,"column":45}},"69":{"start":{"line":266,"column":16},"end":{"line":266,"column":27}},"70":{"start":{"line":268,"column":17},"end":{"line":276,"column":13}},"71":{"start":{"line":270,"column":16},"end":{"line":270,"column":34}},"72":{"start":{"line":271,"column":16},"end":{"line":271,"column":30}},"73":{"start":{"line":275,"column":16},"end":{"line":275,"column":40}},"74":{"start":{"line":281,"column":8},"end":{"line":281,"column":24}},"75":{"start":{"line":283,"column":8},"end":{"line":291,"column":9}},"76":{"start":{"line":285,"column":12},"end":{"line":285,"column":36}},"77":{"start":{"line":287,"column":12},"end":{"line":290,"column":13}},"78":{"start":{"line":289,"column":16},"end":{"line":289,"column":53}},"79":{"start":{"line":293,"column":8},"end":{"line":301,"column":9}},"80":{"start":{"line":295,"column":12},"end":{"line":295,"column":50}},"81":{"start":{"line":297,"column":12},"end":{"line":300,"column":13}},"82":{"start":{"line":299,"column":16},"end":{"line":299,"column":53}},"83":{"start":{"line":304,"column":4},"end":{"line":304,"column":13}},"84":{"start":{"line":307,"column":0},"end":{"line":315,"column":2}},"85":{"start":{"line":309,"column":4},"end":{"line":312,"column":52}},"86":{"start":{"line":314,"column":4},"end":{"line":314,"column":31}},"87":{"start":{"line":326,"column":0},"end":{"line":330,"column":2}},"88":{"start":{"line":328,"column":4},"end":{"line":328,"column":64}},"89":{"start":{"line":329,"column":4},"end":{"line":329,"column":16}},"90":{"start":{"line":339,"column":0},"end":{"line":343,"column":2}},"91":{"start":{"line":341,"column":4},"end":{"line":341,"column":67}},"92":{"start":{"line":342,"column":4},"end":{"line":342,"column":16}},"93":{"start":{"line":351,"column":0},"end":{"line":354,"column":2}},"94":{"start":{"line":353,"column":4},"end":{"line":353,"column":35}},"95":{"start":{"line":363,"column":0},"end":{"line":367,"column":2}},"96":{"start":{"line":365,"column":4},"end":{"line":365,"column":27}},"97":{"start":{"line":366,"column":4},"end":{"line":366,"column":16}},"98":{"start":{"line":370,"column":0},"end":{"line":373,"column":2}},"99":{"start":{"line":372,"column":4},"end":{"line":372,"column":22}},"100":{"start":{"line":383,"column":0},"end":{"line":386,"column":1}},"101":{"start":{"line":385,"column":4},"end":{"line":385,"column":32}},"102":{"start":{"line":388,"column":0},"end":{"line":388,"column":37}},"103":{"start":{"line":390,"column":0},"end":{"line":393,"column":2}},"104":{"start":{"line":392,"column":4},"end":{"line":392,"column":30}},"105":{"start":{"line":395,"column":0},"end":{"line":398,"column":2}},"106":{"start":{"line":397,"column":4},"end":{"line":397,"column":18}},"107":{"start":{"line":400,"column":0},"end":{"line":406,"column":2}},"108":{"start":{"line":402,"column":4},"end":{"line":405,"column":7}},"109":{"start":{"line":404,"column":8},"end":{"line":404,"column":22}},"110":{"start":{"line":408,"column":0},"end":{"line":412,"column":2}},"111":{"start":{"line":410,"column":4},"end":{"line":410,"column":21}},"112":{"start":{"line":411,"column":4},"end":{"line":411,"column":27}},"113":{"start":{"line":420,"column":0},"end":{"line":423,"column":2}},"114":{"start":{"line":422,"column":4},"end":{"line":422,"column":42}},"115":{"start":{"line":425,"column":0},"end":{"line":425,"column":26}},"116":{"start":{"line":426,"column":0},"end":{"line":426,"column":36}}},"branchMap":{"1":{"line":117,"type":"binary-expr","locations":[{"start":{"line":117,"column":14},"end":{"line":117,"column":21}},{"start":{"line":117,"column":25},"end":{"line":117,"column":27}}]},"2":{"line":119,"type":"binary-expr","locations":[{"start":{"line":119,"column":22},"end":{"line":119,"column":39}},{"start":{"line":119,"column":43},"end":{"line":119,"column":46}}]},"3":{"line":120,"type":"binary-expr","locations":[{"start":{"line":120,"column":25},"end":{"line":120,"column":45}},{"start":{"line":120,"column":49},"end":{"line":120,"column":52}}]},"4":{"line":121,"type":"binary-expr","locations":[{"start":{"line":121,"column":26},"end":{"line":121,"column":47}},{"start":{"line":121,"column":51},"end":{"line":121,"column":54}}]},"5":{"line":149,"type":"if","locations":[{"start":{"line":149,"column":4},"end":{"line":149,"column":4}},{"start":{"line":149,"column":4},"end":{"line":149,"column":4}}]},"6":{"line":161,"type":"if","locations":[{"start":{"line":161,"column":4},"end":{"line":161,"column":4}},{"start":{"line":161,"column":4},"end":{"line":161,"column":4}}]},"7":{"line":165,"type":"if","locations":[{"start":{"line":165,"column":8},"end":{"line":165,"column":8}},{"start":{"line":165,"column":8},"end":{"line":165,"column":8}}]},"8":{"line":180,"type":"if","locations":[{"start":{"line":180,"column":4},"end":{"line":180,"column":4}},{"start":{"line":180,"column":4},"end":{"line":180,"column":4}}]},"9":{"line":193,"type":"if","locations":[{"start":{"line":193,"column":4},"end":{"line":193,"column":4}},{"start":{"line":193,"column":4},"end":{"line":193,"column":4}}]},"10":{"line":197,"type":"if","locations":[{"start":{"line":197,"column":8},"end":{"line":197,"column":8}},{"start":{"line":197,"column":8},"end":{"line":197,"column":8}}]},"11":{"line":197,"type":"binary-expr","locations":[{"start":{"line":197,"column":12},"end":{"line":197,"column":14}},{"start":{"line":198,"column":14},"end":{"line":198,"column":31}},{"start":{"line":199,"column":13},"end":{"line":199,"column":40}}]},"12":{"line":210,"type":"if","locations":[{"start":{"line":210,"column":4},"end":{"line":210,"column":4}},{"start":{"line":210,"column":4},"end":{"line":210,"column":4}}]},"13":{"line":217,"type":"if","locations":[{"start":{"line":217,"column":4},"end":{"line":217,"column":4}},{"start":{"line":217,"column":4},"end":{"line":217,"column":4}}]},"14":{"line":229,"type":"if","locations":[{"start":{"line":229,"column":8},"end":{"line":229,"column":8}},{"start":{"line":229,"column":8},"end":{"line":229,"column":8}}]},"15":{"line":248,"type":"if","locations":[{"start":{"line":248,"column":4},"end":{"line":248,"column":4}},{"start":{"line":248,"column":4},"end":{"line":248,"column":4}}]},"16":{"line":256,"type":"if","locations":[{"start":{"line":256,"column":4},"end":{"line":256,"column":4}},{"start":{"line":256,"column":4},"end":{"line":256,"column":4}}]},"17":{"line":260,"type":"if","locations":[{"start":{"line":260,"column":8},"end":{"line":260,"column":8}},{"start":{"line":260,"column":8},"end":{"line":260,"column":8}}]},"18":{"line":262,"type":"if","locations":[{"start":{"line":262,"column":12},"end":{"line":262,"column":12}},{"start":{"line":262,"column":12},"end":{"line":262,"column":12}}]},"19":{"line":268,"type":"if","locations":[{"start":{"line":268,"column":17},"end":{"line":268,"column":17}},{"start":{"line":268,"column":17},"end":{"line":268,"column":17}}]},"20":{"line":283,"type":"if","locations":[{"start":{"line":283,"column":8},"end":{"line":283,"column":8}},{"start":{"line":283,"column":8},"end":{"line":283,"column":8}}]},"21":{"line":283,"type":"binary-expr","locations":[{"start":{"line":283,"column":13},"end":{"line":283,"column":40}},{"start":{"line":283,"column":46},"end":{"line":283,"column":74}}]},"22":{"line":287,"type":"if","locations":[{"start":{"line":287,"column":12},"end":{"line":287,"column":12}},{"start":{"line":287,"column":12},"end":{"line":287,"column":12}}]},"23":{"line":293,"type":"if","locations":[{"start":{"line":293,"column":8},"end":{"line":293,"column":8}},{"start":{"line":293,"column":8},"end":{"line":293,"column":8}}]},"24":{"line":297,"type":"if","locations":[{"start":{"line":297,"column":12},"end":{"line":297,"column":12}},{"start":{"line":297,"column":12},"end":{"line":297,"column":12}}]},"25":{"line":314,"type":"binary-expr","locations":[{"start":{"line":314,"column":11},"end":{"line":314,"column":22}},{"start":{"line":314,"column":26},"end":{"line":314,"column":30}}]}}}}
/*jslint node: true */
"use strict";
// HACK! Allow one strange_loop in qlobber for performance reasons (checking
// for empty object using iteration _should_ be quicker than getting all the
// keys, at least when V8 implements iteration properly).
var reporters = require('./node_modules/grunt-jslint/lib/reporters'),
orig_standard = reporters.standard;
reporters.standard = function (report)
{
var errors = report.files['lib/qlobber.js'], i;
for (i = 0; i < errors.length; i += 1)
{
if (errors[i].code === 'strange_loop')
{
errors.splice(i, 1);
report.failures -= 1;
if (errors.length === 0)
{
report.files_in_violation -= 1;
}
break;
}
}
return orig_standard.apply(this, arguments);
};
// HACK! Bump code coverage for the hack above!
reporters.standard({ files: { 'lib/qlobber.js': [{ code: 'strange_loop'}] }});
reporters.standard({ files: { 'lib/qlobber.js': [{ code: 'foo' }, { code: 'strange_loop' }] }});
module.exports = function (grunt)

@@ -43,12 +8,10 @@ {

{
jslint: {
all: {
src: [ 'Gruntfile.js', 'index.js', 'lib/*.js', 'test/*.js', 'bench/**/*.js' ],
directives: {
white: true
}
jshint: {
all: [ 'Gruntfile.js', 'index.js', 'lib/*.js', 'test/*.js', 'bench/**/*.js' ],
options: {
esversion: 6
}
},
cafemocha: {
mochaTest: {
src: 'test/*.js'

@@ -64,29 +27,29 @@ },

exec: {
shell: {
cover: {
cmd: './node_modules/.bin/istanbul cover ./node_modules/.bin/grunt -- test'
command: './node_modules/.bin/istanbul cover ./node_modules/.bin/grunt -- test'
},
check_cover: {
cmd: './node_modules/.bin/istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100'
command: './node_modules/.bin/istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100'
},
coveralls: {
cmd: 'cat coverage/lcov.info | coveralls'
command: 'cat coverage/lcov.info | coveralls'
},
bench: {
cmd: './node_modules/.bin/bench -c 20000 -i bench/options/default.js,bench/options/dedup.js -k options bench/add_match_remove bench/match'
command: './node_modules/.bin/bench -c 20000 -i bench/options/default.js,bench/options/dedup.js -k options bench/add_match_remove bench/match'
},
'bench-check': {
cmd: './node_modules/.bin/bench -c 20000 -i bench/options/check.js,bench/options/check-dedup.js -k options bench/add_match_remove bench/match'
command: './node_modules/.bin/bench -c 20000 -i bench/options/check.js,bench/options/check-dedup.js -k options bench/add_match_remove bench/match'
},
'bench-add-many': {
cmd: './node_modules/.bin/bench -c 1 -i bench/options/default.js,bench/options/dedup.js -k options bench/add_many.js'
command: './node_modules/.bin/bench -c 1 -i bench/options/default.js,bench/options/dedup.js -k options bench/add_many.js'
},
'bench-match-many': {
cmd: './node_modules/.bin/bench -c 1 -i bench/options/default.js,bench/options/dedup.js -k options bench/match_many.js'
command: './node_modules/.bin/bench -c 1 -i bench/options/default.js,bench/options/dedup.js -k options bench/match_many.js'
}

@@ -96,19 +59,19 @@ }

grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-cafe-mocha');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-apidox');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('lint', 'jslint:all');
grunt.registerTask('test', 'cafemocha');
grunt.registerTask('lint', 'jshint');
grunt.registerTask('test', 'mochaTest');
grunt.registerTask('docs', 'apidox');
grunt.registerTask('coverage', ['exec:cover', 'exec:check_cover']);
grunt.registerTask('coveralls', 'exec:coveralls');
grunt.registerTask('bench', ['exec:bench',
'exec:bench-add-many',
'exec:bench-match-many']);
grunt.registerTask('bench-check', 'exec:bench-check');
grunt.registerTask('bench-add-many', 'exec:bench-add-many');
grunt.registerTask('bench-match-many', 'exec:bench-match-many');
grunt.registerTask('default', ['jslint', 'cafemocha']);
grunt.registerTask('coverage', ['shell:cover', 'shell:check_cover']);
grunt.registerTask('coveralls', 'shell:coveralls');
grunt.registerTask('bench', ['shell:bench',
'shell:bench-add-many',
'shell:bench-match-many']);
grunt.registerTask('bench-check', 'shell:bench-check');
grunt.registerTask('bench-add-many', 'shell:bench-add-many');
grunt.registerTask('bench-match-many', 'shell:bench-match-many');
grunt.registerTask('default', ['jshint', 'mochaTest']);
};

@@ -122,3 +122,3 @@ /**

this._wildcard_some = options.wildcard_some || '#';
this._trie = {};
this._trie = new Map();
}

@@ -164,3 +164,3 @@

{
st = sub_trie[this._separator];
st = sub_trie.get(this._separator);

@@ -173,3 +173,3 @@ if (st)

{
sub_trie[this._separator] = this._initial_value(val);
sub_trie.set(this._separator, this._initial_value(val));
}

@@ -181,7 +181,8 @@

word = words[i];
st = sub_trie[word];
st = sub_trie.get(word);
if (!st)
{
st = sub_trie[word] = {};
st = new Map();
sub_trie.set(word, st);
}

@@ -198,3 +199,3 @@

{
st = sub_trie[this._separator];
st = sub_trie.get(this._separator);

@@ -205,3 +206,3 @@ if (st &&

{
delete sub_trie[this._separator];
sub_trie.delete(this._separator);
}

@@ -213,3 +214,3 @@

word = words[i];
st = sub_trie[word];
st = sub_trie.get(word);

@@ -223,10 +224,6 @@ if (!st)

/*jslint forin: true */
for (word in st)
if (st.size === 0)
{
return;
sub_trie.delete(word);
}
/*jslint forin: false */
delete sub_trie[word];
};

@@ -236,7 +233,6 @@

{
var keys = Object.keys(st), j, w;
var j, w;
for (j = 0; j < keys.length; j += 1)
for (w of st.keys())
{
w = keys[j];
if (w !== this._separator)

@@ -259,3 +255,3 @@ {

st = sub_trie[this._wildcard_some];
st = sub_trie.get(this._wildcard_some);

@@ -272,3 +268,3 @@ if (st)

{
st = sub_trie[this._separator];
st = sub_trie.get(this._separator);

@@ -300,3 +296,3 @@ if (st)

{
st = sub_trie[word];
st = sub_trie.get(word);

@@ -311,3 +307,3 @@ if (st)

{
st = sub_trie[this._wildcard_one];
st = sub_trie.get(this._wildcard_one);

@@ -382,3 +378,3 @@ if (st)

{
this._trie = {};
this._trie = new Map();
return this;

@@ -385,0 +381,0 @@ };

{
"name": "qlobber",
"description": "Node.js globbing for amqp-like topics",
"version": "0.6.0",
"version": "0.7.0",
"homepage": "https://github.com/davedoesdev/qlobber",

@@ -39,10 +39,10 @@ "author": {

"devDependencies": {
"grunt": "~0.4.5",
"grunt-cli": "~0.1.13",
"grunt-jslint": "~1.1.14",
"grunt-cafe-mocha": "~0.1.13",
"grunt": "~1.0.1",
"grunt-contrib-jshint": "~1.0.0",
"grunt-mocha-test": "~0.12.7",
"grunt-apidox": "~0.1.8",
"grunt-shell": "~1.3.0",
"mocha": "~2.4.5",
"chai": "~3.5.0",
"istanbul": "~0.4.2",
"grunt-exec": "~0.4.6",
"coveralls": "~2.11.8",

@@ -49,0 +49,0 @@ "b": "git://github.com/davedoesdev/b.git"

@@ -53,15 +53,13 @@ /*globals rabbitmq_test_bindings : false,

var k, r = {};
/*jslint forin: true */
for (k in t)
for (k of t.keys())
{
if (k === '.')
{
r[k] = Array.from(t[k]);
r[k] = Array.from(t.get(k));
}
else
{
r[k] = get_trie(matcher, t[k]);
r[k] = get_trie(matcher, t.get(k));
}
}
/*jslint forin: false */
return r;

@@ -68,0 +66,0 @@ }

@@ -46,2 +46,20 @@ /*globals rabbitmq_test_bindings : false,

function get_trie(matcher, t)
{
t = t || matcher.get_trie();
var k, r = {};
for (k of t.keys())
{
if (k === '.')
{
r[k] = t.get(k);
}
else
{
r[k] = get_trie(matcher, t.get(k));
}
}
return r;
}
it('should support adding bindings', function ()

@@ -51,3 +69,3 @@ {

expect(matcher.get_trie()).to.eql({"a":{"b":{"c":{".":["t1","t20"]},"b":{"c":{".":["t4"]},".":["t14"]},".":["t15"]},"*":{"c":{".":["t2"]},".":["t9"]},"#":{"b":{".":["t3"]},".":["t11"],"#":{".":["t12"]}}},"#":{".":["t5"],"#":{".":["t6"],"#":{".":["t24"]}},"b":{".":["t7"],"#":{".":["t26"]}},"*":{"#":{".":["t22"]}}},"*":{"*":{".":["t8"],"*":{".":["t18"]}},"b":{"c":{".":["t10"]}},"#":{".":["t21"],"#":{".":["t23"]}},".":["t25"]},"b":{"b":{"c":{".":["t13"]}},"c":{".":["t16"]}},"":{".":["t17"]},"vodka":{"martini":{".":["t19"]}}});
expect(get_trie(matcher)).to.eql({"a":{"b":{"c":{".":["t1","t20"]},"b":{"c":{".":["t4"]},".":["t14"]},".":["t15"]},"*":{"c":{".":["t2"]},".":["t9"]},"#":{"b":{".":["t3"]},".":["t11"],"#":{".":["t12"]}}},"#":{".":["t5"],"#":{".":["t6"],"#":{".":["t24"]}},"b":{".":["t7"],"#":{".":["t26"]}},"*":{"#":{".":["t22"]}}},"*":{"*":{".":["t8"],"*":{".":["t18"]}},"b":{"c":{".":["t10"]}},"#":{".":["t21"],"#":{".":["t23"]}},".":["t25"]},"b":{"b":{"c":{".":["t13"]}},"c":{".":["t16"]}},"":{".":["t17"]},"vodka":{"martini":{".":["t19"]}}});
});

@@ -75,3 +93,3 @@

expect(matcher.get_trie()).to.eql({"a":{"b":{"c":{".":["t20"]},"b":{"c":{".":["t4"]},".":["t14"]},".":["t15"]},"*":{"c":{".":["t2"]},".":["t9"]},"#":{"b":{".":["t3"]},"#":{".":["t12"]}}},"#":{"#":{".":["t6"],"#":{".":["t24"]}},"b":{".":["t7"],"#":{".":["t26"]}},"*":{"#":{".":["t22"]}}},"*":{"*":{".":["t8"],"*":{".":["t18"]}},"b":{"c":{".":["t10"]}},"#":{"#":{".":["t23"]}},".":["t25"]},"b":{"b":{"c":{".":["t13"]}},"c":{".":["t16"]}},"":{".":["t17"]}});
expect(get_trie(matcher)).to.eql({"a":{"b":{"c":{".":["t20"]},"b":{"c":{".":["t4"]},".":["t14"]},".":["t15"]},"*":{"c":{".":["t2"]},".":["t9"]},"#":{"b":{".":["t3"]},"#":{".":["t12"]}}},"#":{"#":{".":["t6"],"#":{".":["t24"]}},"b":{".":["t7"],"#":{".":["t26"]}},"*":{"#":{".":["t22"]}}},"*":{"*":{".":["t8"],"*":{".":["t18"]}},"b":{"c":{".":["t10"]}},"#":{"#":{".":["t23"]}},".":["t25"]},"b":{"b":{"c":{".":["t13"]}},"c":{".":["t16"]}},"":{".":["t17"]}});

@@ -124,3 +142,3 @@ rabbitmq_expected_results_after_remove.forEach(function (test)

expect(matcher.get_trie()).to.eql({"a":{"b":{"b":{"c":{".":["t4"]},".":["t14"]},".":["t15"]},"*":{"c":{".":["t2"]},".":["t9"]},"#":{"b":{".":["t3"]},"#":{".":["t12"]}}},"#":{"#":{".":["t6"],"#":{".":["t24"]}},"b":{".":["t7"],"#":{".":["t26"]}},"*":{"#":{".":["t22"]}}},"*":{"*":{".":["t8"],"*":{".":["t18"]}},"b":{"c":{".":["t10"]}},"#":{"#":{".":["t23"]}},".":["t25"]},"b":{"b":{"c":{".":["t13"]}},"c":{".":["t16"]}},"":{".":["t17"]}});
expect(get_trie(matcher)).to.eql({"a":{"b":{"b":{"c":{".":["t4"]},".":["t14"]},".":["t15"]},"*":{"c":{".":["t2"]},".":["t9"]},"#":{"b":{".":["t3"]},"#":{".":["t12"]}}},"#":{"#":{".":["t6"],"#":{".":["t24"]}},"b":{".":["t7"],"#":{".":["t26"]}},"*":{"#":{".":["t22"]}}},"*":{"*":{".":["t8"],"*":{".":["t18"]}},"b":{"c":{".":["t10"]}},"#":{"#":{".":["t23"]}},".":["t25"]},"b":{"b":{"c":{".":["t13"]}},"c":{".":["t16"]}},"":{".":["t17"]}});

@@ -127,0 +145,0 @@ rabbitmq_expected_results_after_remove_all.forEach(function (test)

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

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