aylien_textapi
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -1,1 +0,1 @@ | ||
{"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/textapi.js":{"path":"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/textapi.js","s":{"1":1,"2":1,"3":29,"4":29,"5":29,"6":16,"7":7,"8":9,"9":13,"10":29,"11":4,"12":4,"13":29,"14":4,"15":4,"16":29,"17":3,"18":3,"19":29,"20":3,"21":3,"22":29,"23":2,"24":2,"25":29,"26":3,"27":3,"28":29,"29":2,"30":2,"31":29,"32":3,"33":3,"34":1,"35":2,"36":29,"37":2,"38":2,"39":1,"40":1,"41":2,"42":29,"43":3,"44":3,"45":1},"b":{"1":[29,0],"2":[16,13],"3":[7,9],"4":[1,2],"5":[3,1,0],"6":[1,1],"7":[2,1]},"f":{"1":29,"2":29,"3":4,"4":4,"5":3,"6":3,"7":2,"8":3,"9":2,"10":3,"11":2,"12":3},"fnMap":{"1":{"name":"AYLIENTextAPI","line":38,"loc":{"start":{"line":38,"column":0},"end":{"line":38,"column":32}}},"2":{"name":"(anonymous_2)","line":41,"loc":{"start":{"line":41,"column":25},"end":{"line":41,"column":41}}},"3":{"name":"(anonymous_3)","line":70,"loc":{"start":{"line":70,"column":19},"end":{"line":70,"column":46}}},"4":{"name":"(anonymous_4)","line":90,"loc":{"start":{"line":90,"column":17},"end":{"line":90,"column":44}}},"5":{"name":"(anonymous_5)","line":110,"loc":{"start":{"line":110,"column":18},"end":{"line":110,"column":45}}},"6":{"name":"(anonymous_6)","line":130,"loc":{"start":{"line":130,"column":18},"end":{"line":130,"column":45}}},"7":{"name":"(anonymous_7)","line":151,"loc":{"start":{"line":151,"column":18},"end":{"line":151,"column":45}}},"8":{"name":"(anonymous_8)","line":171,"loc":{"start":{"line":171,"column":18},"end":{"line":171,"column":45}}},"9":{"name":"(anonymous_9)","line":190,"loc":{"start":{"line":190,"column":18},"end":{"line":190,"column":45}}},"10":{"name":"(anonymous_10)","line":215,"loc":{"start":{"line":215,"column":19},"end":{"line":215,"column":46}}},"11":{"name":"(anonymous_11)","line":237,"loc":{"start":{"line":237,"column":17},"end":{"line":237,"column":44}}},"12":{"name":"(anonymous_12)","line":255,"loc":{"start":{"line":255,"column":22},"end":{"line":255,"column":49}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":20,"column":51}},"2":{"start":{"line":38,"column":0},"end":{"line":259,"column":1}},"3":{"start":{"line":39,"column":2},"end":{"line":39,"column":32}},"4":{"start":{"line":41,"column":2},"end":{"line":51,"column":4}},"5":{"start":{"line":42,"column":4},"end":{"line":48,"column":5}},"6":{"start":{"line":43,"column":6},"end":{"line":47,"column":7}},"7":{"start":{"line":44,"column":8},"end":{"line":44,"column":58}},"8":{"start":{"line":46,"column":8},"end":{"line":46,"column":59}},"9":{"start":{"line":50,"column":4},"end":{"line":50,"column":45}},"10":{"start":{"line":70,"column":2},"end":{"line":73,"column":4}},"11":{"start":{"line":71,"column":4},"end":{"line":71,"column":80}},"12":{"start":{"line":72,"column":4},"end":{"line":72,"column":58}},"13":{"start":{"line":90,"column":2},"end":{"line":93,"column":4}},"14":{"start":{"line":91,"column":4},"end":{"line":91,"column":78}},"15":{"start":{"line":92,"column":4},"end":{"line":92,"column":46}},"16":{"start":{"line":110,"column":2},"end":{"line":113,"column":4}},"17":{"start":{"line":111,"column":4},"end":{"line":111,"column":79}},"18":{"start":{"line":112,"column":4},"end":{"line":112,"column":58}},"19":{"start":{"line":130,"column":2},"end":{"line":133,"column":4}},"20":{"start":{"line":131,"column":4},"end":{"line":131,"column":79}},"21":{"start":{"line":132,"column":4},"end":{"line":132,"column":58}},"22":{"start":{"line":151,"column":2},"end":{"line":154,"column":4}},"23":{"start":{"line":152,"column":4},"end":{"line":152,"column":79}},"24":{"start":{"line":153,"column":4},"end":{"line":153,"column":58}},"25":{"start":{"line":171,"column":2},"end":{"line":174,"column":4}},"26":{"start":{"line":172,"column":4},"end":{"line":172,"column":79}},"27":{"start":{"line":173,"column":4},"end":{"line":173,"column":58}},"28":{"start":{"line":190,"column":2},"end":{"line":193,"column":4}},"29":{"start":{"line":191,"column":4},"end":{"line":191,"column":79}},"30":{"start":{"line":192,"column":4},"end":{"line":192,"column":58}},"31":{"start":{"line":215,"column":2},"end":{"line":222,"column":4}},"32":{"start":{"line":216,"column":4},"end":{"line":216,"column":80}},"33":{"start":{"line":217,"column":4},"end":{"line":221,"column":5}},"34":{"start":{"line":218,"column":6},"end":{"line":218,"column":84}},"35":{"start":{"line":220,"column":6},"end":{"line":220,"column":45}},"36":{"start":{"line":237,"column":2},"end":{"line":241,"column":4}},"37":{"start":{"line":238,"column":4},"end":{"line":238,"column":78}},"38":{"start":{"line":239,"column":4},"end":{"line":239,"column":92}},"39":{"start":{"line":239,"column":41},"end":{"line":239,"column":69}},"40":{"start":{"line":239,"column":70},"end":{"line":239,"column":90}},"41":{"start":{"line":240,"column":4},"end":{"line":240,"column":49}},"42":{"start":{"line":255,"column":2},"end":{"line":258,"column":4}},"43":{"start":{"line":256,"column":4},"end":{"line":256,"column":83}},"44":{"start":{"line":257,"column":4},"end":{"line":257,"column":46}},"45":{"start":{"line":265,"column":0},"end":{"line":265,"column":31}}},"branchMap":{"1":{"line":39,"type":"binary-expr","locations":[{"start":{"line":39,"column":18},"end":{"line":39,"column":25}},{"start":{"line":39,"column":29},"end":{"line":39,"column":31}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":6},"end":{"line":43,"column":6}},{"start":{"line":43,"column":6},"end":{"line":43,"column":6}}]},"4":{"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}}]},"5":{"line":217,"type":"binary-expr","locations":[{"start":{"line":217,"column":8},"end":{"line":217,"column":19}},{"start":{"line":217,"column":24},"end":{"line":217,"column":36}},{"start":{"line":217,"column":40},"end":{"line":217,"column":53}}]},"6":{"line":239,"type":"if","locations":[{"start":{"line":239,"column":4},"end":{"line":239,"column":4}},{"start":{"line":239,"column":4},"end":{"line":239,"column":4}}]},"7":{"line":239,"type":"binary-expr","locations":[{"start":{"line":239,"column":8},"end":{"line":239,"column":19}},{"start":{"line":239,"column":23},"end":{"line":239,"column":37}}]}}},"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/lib/util.js":{"path":"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/lib/util.js","s":{"1":1,"2":58,"3":58,"4":58,"5":58,"6":137,"7":58},"b":{},"f":{"1":58},"fnMap":{"1":{"name":"(anonymous_1)","line":20,"loc":{"start":{"line":20,"column":10},"end":{"line":20,"column":24}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":30,"column":2}},"2":{"start":{"line":21,"column":4},"end":{"line":21,"column":21}},"3":{"start":{"line":22,"column":4},"end":{"line":27,"column":5}},"4":{"start":{"line":23,"column":6},"end":{"line":23,"column":28}},"5":{"start":{"line":24,"column":6},"end":{"line":26,"column":7}},"6":{"start":{"line":25,"column":8},"end":{"line":25,"column":33}},"7":{"start":{"line":28,"column":4},"end":{"line":28,"column":15}}},"branchMap":{}},"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/lib/apirequest.js":{"path":"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/lib/apirequest.js","s":{"1":1,"2":1,"3":1,"4":28,"5":9,"6":28,"7":28,"8":28,"9":110,"10":17,"11":17,"12":34,"13":23,"14":17,"15":6,"16":93,"17":3,"18":28,"19":1,"20":28,"21":28,"22":9,"23":9,"24":19,"25":19,"26":19,"27":19,"28":19,"29":19,"30":1,"31":19,"32":19,"33":19,"34":19,"35":19,"36":19,"37":19,"38":19,"39":19,"40":19,"41":19,"42":19,"43":57,"44":19,"45":17,"46":2,"47":2,"48":2,"49":1,"50":1,"51":2,"52":19,"53":19,"54":1},"b":{"1":[9,19],"2":[17,93],"3":[23,11],"4":[6,11],"5":[3,90],"6":[9,19],"7":[9,19],"8":[1,18],"9":[57,54],"10":[17,2],"11":[1,0]},"f":{"1":28,"2":110,"3":34,"4":28,"5":19,"6":19,"7":19,"8":57},"fnMap":{"1":{"name":"getMissingParams","line":26,"loc":{"start":{"line":26,"column":0},"end":{"line":26,"column":44}}},"2":{"name":"(anonymous_2)","line":32,"loc":{"start":{"line":32,"column":19},"end":{"line":32,"column":35}}},"3":{"name":"(anonymous_3)","line":35,"loc":{"start":{"line":35,"column":20},"end":{"line":35,"column":32}}},"4":{"name":"createAPIRequest","line":51,"loc":{"start":{"line":51,"column":0},"end":{"line":51,"column":58}}},"5":{"name":"(anonymous_5)","line":85,"loc":{"start":{"line":85,"column":5},"end":{"line":85,"column":24}}},"6":{"name":"(anonymous_6)","line":87,"loc":{"start":{"line":87,"column":24},"end":{"line":87,"column":40}}},"7":{"name":"(anonymous_7)","line":90,"loc":{"start":{"line":90,"column":23},"end":{"line":90,"column":34}}},"8":{"name":"(anonymous_8)","line":92,"loc":{"start":{"line":92,"column":46},"end":{"line":92,"column":58}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":22,"column":41}},"2":{"start":{"line":24,"column":0},"end":{"line":24,"column":22}},"3":{"start":{"line":26,"column":0},"end":{"line":49,"column":1}},"4":{"start":{"line":27,"column":2},"end":{"line":29,"column":3}},"5":{"start":{"line":28,"column":4},"end":{"line":28,"column":26}},"6":{"start":{"line":30,"column":2},"end":{"line":30,"column":80}},"7":{"start":{"line":31,"column":2},"end":{"line":31,"column":19}},"8":{"start":{"line":32,"column":2},"end":{"line":46,"column":5}},"9":{"start":{"line":33,"column":4},"end":{"line":45,"column":5}},"10":{"start":{"line":34,"column":6},"end":{"line":34,"column":26}},"11":{"start":{"line":35,"column":6},"end":{"line":37,"column":9}},"12":{"start":{"line":36,"column":8},"end":{"line":36,"column":47}},"13":{"start":{"line":36,"column":26},"end":{"line":36,"column":45}},"14":{"start":{"line":38,"column":6},"end":{"line":40,"column":7}},"15":{"start":{"line":39,"column":8},"end":{"line":39,"column":45}},"16":{"start":{"line":42,"column":6},"end":{"line":44,"column":7}},"17":{"start":{"line":43,"column":8},"end":{"line":43,"column":28}},"18":{"start":{"line":48,"column":2},"end":{"line":48,"column":45}},"19":{"start":{"line":51,"column":0},"end":{"line":109,"column":1}},"20":{"start":{"line":52,"column":2},"end":{"line":52,"column":61}},"21":{"start":{"line":53,"column":2},"end":{"line":57,"column":3}},"22":{"start":{"line":54,"column":4},"end":{"line":54,"column":90}},"23":{"start":{"line":56,"column":4},"end":{"line":56,"column":16}},"24":{"start":{"line":59,"column":2},"end":{"line":59,"column":30}},"25":{"start":{"line":60,"column":2},"end":{"line":60,"column":48}},"26":{"start":{"line":61,"column":2},"end":{"line":61,"column":50}},"27":{"start":{"line":62,"column":2},"end":{"line":62,"column":37}},"28":{"start":{"line":63,"column":2},"end":{"line":63,"column":23}},"29":{"start":{"line":64,"column":2},"end":{"line":66,"column":3}},"30":{"start":{"line":65,"column":4},"end":{"line":65,"column":20}},"31":{"start":{"line":67,"column":2},"end":{"line":67,"column":36}},"32":{"start":{"line":68,"column":2},"end":{"line":68,"column":37}},"33":{"start":{"line":69,"column":2},"end":{"line":69,"column":30}},"34":{"start":{"line":70,"column":2},"end":{"line":70,"column":27}},"35":{"start":{"line":71,"column":2},"end":{"line":71,"column":51}},"36":{"start":{"line":73,"column":2},"end":{"line":106,"column":5}},"37":{"start":{"line":86,"column":4},"end":{"line":86,"column":18}},"38":{"start":{"line":87,"column":4},"end":{"line":89,"column":7}},"39":{"start":{"line":88,"column":6},"end":{"line":88,"column":20}},"40":{"start":{"line":90,"column":4},"end":{"line":105,"column":7}},"41":{"start":{"line":91,"column":6},"end":{"line":91,"column":26}},"42":{"start":{"line":92,"column":6},"end":{"line":94,"column":9}},"43":{"start":{"line":93,"column":8},"end":{"line":93,"column":82}},"44":{"start":{"line":95,"column":6},"end":{"line":104,"column":7}},"45":{"start":{"line":96,"column":8},"end":{"line":96,"column":53}},"46":{"start":{"line":98,"column":8},"end":{"line":98,"column":31}},"47":{"start":{"line":99,"column":8},"end":{"line":102,"column":21}},"48":{"start":{"line":100,"column":10},"end":{"line":100,"column":37}},"49":{"start":{"line":101,"column":10},"end":{"line":101,"column":53}},"50":{"start":{"line":101,"column":27},"end":{"line":101,"column":51}},"51":{"start":{"line":103,"column":8},"end":{"line":103,"column":59}},"52":{"start":{"line":107,"column":2},"end":{"line":107,"column":26}},"53":{"start":{"line":108,"column":2},"end":{"line":108,"column":16}},"54":{"start":{"line":111,"column":0},"end":{"line":111,"column":34}}},"branchMap":{"1":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":2},"end":{"line":27,"column":2}},{"start":{"line":27,"column":2},"end":{"line":27,"column":2}}]},"2":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":33,"column":4}},{"start":{"line":33,"column":4},"end":{"line":33,"column":4}}]},"3":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":8},"end":{"line":36,"column":8}},{"start":{"line":36,"column":8},"end":{"line":36,"column":8}}]},"4":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":6},"end":{"line":38,"column":6}},{"start":{"line":38,"column":6},"end":{"line":38,"column":6}}]},"5":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":6},"end":{"line":42,"column":6}},{"start":{"line":42,"column":6},"end":{"line":42,"column":6}}]},"6":{"line":48,"type":"cond-expr","locations":[{"start":{"line":48,"column":30},"end":{"line":48,"column":37}},{"start":{"line":48,"column":40},"end":{"line":48,"column":44}}]},"7":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":53,"column":2}},{"start":{"line":53,"column":2},"end":{"line":53,"column":2}}]},"8":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":2},"end":{"line":64,"column":2}},{"start":{"line":64,"column":2},"end":{"line":64,"column":2}}]},"9":{"line":93,"type":"binary-expr","locations":[{"start":{"line":93,"column":33},"end":{"line":93,"column":69}},{"start":{"line":93,"column":73},"end":{"line":93,"column":76}}]},"10":{"line":95,"type":"if","locations":[{"start":{"line":95,"column":6},"end":{"line":95,"column":6}},{"start":{"line":95,"column":6},"end":{"line":95,"column":6}}]},"11":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":10},"end":{"line":101,"column":10}},{"start":{"line":101,"column":10},"end":{"line":101,"column":10}}]}}}} | ||
{"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/textapi.js":{"path":"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/textapi.js","s":{"1":1,"2":1,"3":35,"4":35,"5":35,"6":17,"7":8,"8":9,"9":18,"10":35,"11":4,"12":4,"13":35,"14":4,"15":4,"16":0,"17":0,"18":4,"19":35,"20":3,"21":3,"22":35,"23":3,"24":3,"25":35,"26":2,"27":2,"28":35,"29":2,"30":2,"31":35,"32":2,"33":2,"34":35,"35":3,"36":3,"37":35,"38":2,"39":2,"40":35,"41":3,"42":3,"43":1,"44":2,"45":35,"46":2,"47":2,"48":1,"49":1,"50":2,"51":35,"52":3,"53":3,"54":35,"55":2,"56":2,"57":1},"b":{"1":[35,0],"2":[17,18],"3":[8,9],"4":[0,4],"5":[4,0],"6":[1,2],"7":[3,1,0],"8":[1,1],"9":[2,1]},"f":{"1":35,"2":35,"3":4,"4":4,"5":3,"6":3,"7":2,"8":2,"9":2,"10":3,"11":2,"12":3,"13":2,"14":3,"15":2},"fnMap":{"1":{"name":"AYLIENTextAPI","line":38,"loc":{"start":{"line":38,"column":0},"end":{"line":38,"column":32}}},"2":{"name":"(anonymous_2)","line":41,"loc":{"start":{"line":41,"column":25},"end":{"line":41,"column":41}}},"3":{"name":"(anonymous_3)","line":70,"loc":{"start":{"line":70,"column":19},"end":{"line":70,"column":46}}},"4":{"name":"(anonymous_4)","line":91,"loc":{"start":{"line":91,"column":17},"end":{"line":91,"column":44}}},"5":{"name":"(anonymous_5)","line":111,"loc":{"start":{"line":111,"column":18},"end":{"line":111,"column":45}}},"6":{"name":"(anonymous_6)","line":131,"loc":{"start":{"line":131,"column":18},"end":{"line":131,"column":45}}},"7":{"name":"(anonymous_7)","line":153,"loc":{"start":{"line":153,"column":30},"end":{"line":153,"column":57}}},"8":{"name":"(anonymous_8)","line":172,"loc":{"start":{"line":172,"column":18},"end":{"line":172,"column":45}}},"9":{"name":"(anonymous_9)","line":193,"loc":{"start":{"line":193,"column":18},"end":{"line":193,"column":45}}},"10":{"name":"(anonymous_10)","line":213,"loc":{"start":{"line":213,"column":18},"end":{"line":213,"column":45}}},"11":{"name":"(anonymous_11)","line":232,"loc":{"start":{"line":232,"column":18},"end":{"line":232,"column":45}}},"12":{"name":"(anonymous_12)","line":257,"loc":{"start":{"line":257,"column":19},"end":{"line":257,"column":46}}},"13":{"name":"(anonymous_13)","line":279,"loc":{"start":{"line":279,"column":17},"end":{"line":279,"column":44}}},"14":{"name":"(anonymous_14)","line":297,"loc":{"start":{"line":297,"column":22},"end":{"line":297,"column":49}}},"15":{"name":"(anonymous_15)","line":314,"loc":{"start":{"line":314,"column":19},"end":{"line":314,"column":46}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":20,"column":51}},"2":{"start":{"line":38,"column":0},"end":{"line":318,"column":1}},"3":{"start":{"line":39,"column":2},"end":{"line":39,"column":32}},"4":{"start":{"line":41,"column":2},"end":{"line":51,"column":4}},"5":{"start":{"line":42,"column":4},"end":{"line":48,"column":5}},"6":{"start":{"line":43,"column":6},"end":{"line":47,"column":7}},"7":{"start":{"line":44,"column":8},"end":{"line":44,"column":58}},"8":{"start":{"line":46,"column":8},"end":{"line":46,"column":59}},"9":{"start":{"line":50,"column":4},"end":{"line":50,"column":45}},"10":{"start":{"line":70,"column":2},"end":{"line":73,"column":4}},"11":{"start":{"line":71,"column":4},"end":{"line":71,"column":84}},"12":{"start":{"line":72,"column":4},"end":{"line":72,"column":58}},"13":{"start":{"line":91,"column":2},"end":{"line":95,"column":4}},"14":{"start":{"line":92,"column":4},"end":{"line":92,"column":82}},"15":{"start":{"line":93,"column":4},"end":{"line":93,"column":88}},"16":{"start":{"line":93,"column":39},"end":{"line":93,"column":65}},"17":{"start":{"line":93,"column":66},"end":{"line":93,"column":86}},"18":{"start":{"line":94,"column":4},"end":{"line":94,"column":58}},"19":{"start":{"line":111,"column":2},"end":{"line":114,"column":4}},"20":{"start":{"line":112,"column":4},"end":{"line":112,"column":83}},"21":{"start":{"line":113,"column":4},"end":{"line":113,"column":58}},"22":{"start":{"line":131,"column":2},"end":{"line":134,"column":4}},"23":{"start":{"line":132,"column":4},"end":{"line":132,"column":83}},"24":{"start":{"line":133,"column":4},"end":{"line":133,"column":58}},"25":{"start":{"line":153,"column":2},"end":{"line":156,"column":4}},"26":{"start":{"line":154,"column":4},"end":{"line":154,"column":96}},"27":{"start":{"line":155,"column":4},"end":{"line":155,"column":67}},"28":{"start":{"line":172,"column":2},"end":{"line":175,"column":4}},"29":{"start":{"line":173,"column":4},"end":{"line":173,"column":83}},"30":{"start":{"line":174,"column":4},"end":{"line":174,"column":70}},"31":{"start":{"line":193,"column":2},"end":{"line":196,"column":4}},"32":{"start":{"line":194,"column":4},"end":{"line":194,"column":83}},"33":{"start":{"line":195,"column":4},"end":{"line":195,"column":58}},"34":{"start":{"line":213,"column":2},"end":{"line":216,"column":4}},"35":{"start":{"line":214,"column":4},"end":{"line":214,"column":83}},"36":{"start":{"line":215,"column":4},"end":{"line":215,"column":58}},"37":{"start":{"line":232,"column":2},"end":{"line":235,"column":4}},"38":{"start":{"line":233,"column":4},"end":{"line":233,"column":83}},"39":{"start":{"line":234,"column":4},"end":{"line":234,"column":58}},"40":{"start":{"line":257,"column":2},"end":{"line":264,"column":4}},"41":{"start":{"line":258,"column":4},"end":{"line":258,"column":84}},"42":{"start":{"line":259,"column":4},"end":{"line":263,"column":5}},"43":{"start":{"line":260,"column":6},"end":{"line":260,"column":84}},"44":{"start":{"line":262,"column":6},"end":{"line":262,"column":45}},"45":{"start":{"line":279,"column":2},"end":{"line":283,"column":4}},"46":{"start":{"line":280,"column":4},"end":{"line":280,"column":82}},"47":{"start":{"line":281,"column":4},"end":{"line":281,"column":92}},"48":{"start":{"line":281,"column":41},"end":{"line":281,"column":69}},"49":{"start":{"line":281,"column":70},"end":{"line":281,"column":90}},"50":{"start":{"line":282,"column":4},"end":{"line":282,"column":49}},"51":{"start":{"line":297,"column":2},"end":{"line":300,"column":4}},"52":{"start":{"line":298,"column":4},"end":{"line":298,"column":87}},"53":{"start":{"line":299,"column":4},"end":{"line":299,"column":46}},"54":{"start":{"line":314,"column":2},"end":{"line":317,"column":4}},"55":{"start":{"line":315,"column":4},"end":{"line":315,"column":85}},"56":{"start":{"line":316,"column":4},"end":{"line":316,"column":46}},"57":{"start":{"line":324,"column":0},"end":{"line":324,"column":31}}},"branchMap":{"1":{"line":39,"type":"binary-expr","locations":[{"start":{"line":39,"column":18},"end":{"line":39,"column":25}},{"start":{"line":39,"column":29},"end":{"line":39,"column":31}}]},"2":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4}}]},"3":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":6},"end":{"line":43,"column":6}},{"start":{"line":43,"column":6},"end":{"line":43,"column":6}}]},"4":{"line":93,"type":"if","locations":[{"start":{"line":93,"column":4},"end":{"line":93,"column":4}},{"start":{"line":93,"column":4},"end":{"line":93,"column":4}}]},"5":{"line":93,"type":"binary-expr","locations":[{"start":{"line":93,"column":8},"end":{"line":93,"column":19}},{"start":{"line":93,"column":23},"end":{"line":93,"column":35}}]},"6":{"line":259,"type":"if","locations":[{"start":{"line":259,"column":4},"end":{"line":259,"column":4}},{"start":{"line":259,"column":4},"end":{"line":259,"column":4}}]},"7":{"line":259,"type":"binary-expr","locations":[{"start":{"line":259,"column":8},"end":{"line":259,"column":19}},{"start":{"line":259,"column":24},"end":{"line":259,"column":36}},{"start":{"line":259,"column":40},"end":{"line":259,"column":53}}]},"8":{"line":281,"type":"if","locations":[{"start":{"line":281,"column":4},"end":{"line":281,"column":4}},{"start":{"line":281,"column":4},"end":{"line":281,"column":4}}]},"9":{"line":281,"type":"binary-expr","locations":[{"start":{"line":281,"column":8},"end":{"line":281,"column":19}},{"start":{"line":281,"column":23},"end":{"line":281,"column":37}}]}}},"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/lib/util.js":{"path":"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/lib/util.js","s":{"1":1,"2":70,"3":70,"4":70,"5":70,"6":166,"7":70},"b":{},"f":{"1":70},"fnMap":{"1":{"name":"(anonymous_1)","line":20,"loc":{"start":{"line":20,"column":10},"end":{"line":20,"column":24}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":30,"column":2}},"2":{"start":{"line":21,"column":4},"end":{"line":21,"column":21}},"3":{"start":{"line":22,"column":4},"end":{"line":27,"column":5}},"4":{"start":{"line":23,"column":6},"end":{"line":23,"column":28}},"5":{"start":{"line":24,"column":6},"end":{"line":26,"column":7}},"6":{"start":{"line":25,"column":8},"end":{"line":25,"column":33}},"7":{"start":{"line":28,"column":4},"end":{"line":28,"column":15}}},"branchMap":{}},"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/lib/apirequest.js":{"path":"/home/amir/Projects/AYLIEN/aylien_textapi_nodejs/lib/apirequest.js","s":{"1":1,"2":1,"3":1,"4":34,"5":7,"6":34,"7":34,"8":34,"9":138,"10":25,"11":25,"12":50,"13":34,"14":25,"15":9,"16":113,"17":5,"18":34,"19":1,"20":34,"21":34,"22":12,"23":12,"24":22,"25":22,"26":22,"27":22,"28":22,"29":22,"30":1,"31":22,"32":22,"33":22,"34":22,"35":22,"36":22,"37":22,"38":22,"39":22,"40":22,"41":22,"42":22,"43":66,"44":22,"45":20,"46":2,"47":2,"48":2,"49":1,"50":1,"51":2,"52":22,"53":22,"54":1},"b":{"1":[7,27],"2":[25,113],"3":[34,16],"4":[9,16],"5":[5,108],"6":[12,22],"7":[12,22],"8":[1,21],"9":[66,63],"10":[20,2],"11":[1,0]},"f":{"1":34,"2":138,"3":50,"4":34,"5":22,"6":22,"7":22,"8":66},"fnMap":{"1":{"name":"getMissingParams","line":26,"loc":{"start":{"line":26,"column":0},"end":{"line":26,"column":44}}},"2":{"name":"(anonymous_2)","line":32,"loc":{"start":{"line":32,"column":19},"end":{"line":32,"column":35}}},"3":{"name":"(anonymous_3)","line":35,"loc":{"start":{"line":35,"column":20},"end":{"line":35,"column":32}}},"4":{"name":"createAPIRequest","line":51,"loc":{"start":{"line":51,"column":0},"end":{"line":51,"column":58}}},"5":{"name":"(anonymous_5)","line":85,"loc":{"start":{"line":85,"column":5},"end":{"line":85,"column":24}}},"6":{"name":"(anonymous_6)","line":87,"loc":{"start":{"line":87,"column":24},"end":{"line":87,"column":40}}},"7":{"name":"(anonymous_7)","line":90,"loc":{"start":{"line":90,"column":23},"end":{"line":90,"column":34}}},"8":{"name":"(anonymous_8)","line":92,"loc":{"start":{"line":92,"column":46},"end":{"line":92,"column":58}}}},"statementMap":{"1":{"start":{"line":19,"column":0},"end":{"line":22,"column":41}},"2":{"start":{"line":24,"column":0},"end":{"line":24,"column":22}},"3":{"start":{"line":26,"column":0},"end":{"line":49,"column":1}},"4":{"start":{"line":27,"column":2},"end":{"line":29,"column":3}},"5":{"start":{"line":28,"column":4},"end":{"line":28,"column":26}},"6":{"start":{"line":30,"column":2},"end":{"line":30,"column":84}},"7":{"start":{"line":31,"column":2},"end":{"line":31,"column":19}},"8":{"start":{"line":32,"column":2},"end":{"line":46,"column":5}},"9":{"start":{"line":33,"column":4},"end":{"line":45,"column":5}},"10":{"start":{"line":34,"column":6},"end":{"line":34,"column":26}},"11":{"start":{"line":35,"column":6},"end":{"line":37,"column":9}},"12":{"start":{"line":36,"column":8},"end":{"line":36,"column":47}},"13":{"start":{"line":36,"column":26},"end":{"line":36,"column":45}},"14":{"start":{"line":38,"column":6},"end":{"line":40,"column":7}},"15":{"start":{"line":39,"column":8},"end":{"line":39,"column":45}},"16":{"start":{"line":42,"column":6},"end":{"line":44,"column":7}},"17":{"start":{"line":43,"column":8},"end":{"line":43,"column":28}},"18":{"start":{"line":48,"column":2},"end":{"line":48,"column":45}},"19":{"start":{"line":51,"column":0},"end":{"line":109,"column":1}},"20":{"start":{"line":52,"column":2},"end":{"line":52,"column":61}},"21":{"start":{"line":53,"column":2},"end":{"line":57,"column":3}},"22":{"start":{"line":54,"column":4},"end":{"line":54,"column":90}},"23":{"start":{"line":56,"column":4},"end":{"line":56,"column":16}},"24":{"start":{"line":59,"column":2},"end":{"line":59,"column":30}},"25":{"start":{"line":60,"column":2},"end":{"line":60,"column":48}},"26":{"start":{"line":61,"column":2},"end":{"line":61,"column":50}},"27":{"start":{"line":62,"column":2},"end":{"line":62,"column":45}},"28":{"start":{"line":63,"column":2},"end":{"line":63,"column":23}},"29":{"start":{"line":64,"column":2},"end":{"line":66,"column":3}},"30":{"start":{"line":65,"column":4},"end":{"line":65,"column":20}},"31":{"start":{"line":67,"column":2},"end":{"line":67,"column":36}},"32":{"start":{"line":68,"column":2},"end":{"line":68,"column":37}},"33":{"start":{"line":69,"column":2},"end":{"line":69,"column":34}},"34":{"start":{"line":70,"column":2},"end":{"line":70,"column":27}},"35":{"start":{"line":71,"column":2},"end":{"line":71,"column":51}},"36":{"start":{"line":73,"column":2},"end":{"line":106,"column":5}},"37":{"start":{"line":86,"column":4},"end":{"line":86,"column":18}},"38":{"start":{"line":87,"column":4},"end":{"line":89,"column":7}},"39":{"start":{"line":88,"column":6},"end":{"line":88,"column":20}},"40":{"start":{"line":90,"column":4},"end":{"line":105,"column":7}},"41":{"start":{"line":91,"column":6},"end":{"line":91,"column":26}},"42":{"start":{"line":92,"column":6},"end":{"line":94,"column":9}},"43":{"start":{"line":93,"column":8},"end":{"line":93,"column":82}},"44":{"start":{"line":95,"column":6},"end":{"line":104,"column":7}},"45":{"start":{"line":96,"column":8},"end":{"line":96,"column":53}},"46":{"start":{"line":98,"column":8},"end":{"line":98,"column":31}},"47":{"start":{"line":99,"column":8},"end":{"line":102,"column":21}},"48":{"start":{"line":100,"column":10},"end":{"line":100,"column":37}},"49":{"start":{"line":101,"column":10},"end":{"line":101,"column":53}},"50":{"start":{"line":101,"column":27},"end":{"line":101,"column":51}},"51":{"start":{"line":103,"column":8},"end":{"line":103,"column":59}},"52":{"start":{"line":107,"column":2},"end":{"line":107,"column":26}},"53":{"start":{"line":108,"column":2},"end":{"line":108,"column":16}},"54":{"start":{"line":111,"column":0},"end":{"line":111,"column":34}}},"branchMap":{"1":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":2},"end":{"line":27,"column":2}},{"start":{"line":27,"column":2},"end":{"line":27,"column":2}}]},"2":{"line":33,"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":33,"column":4}},{"start":{"line":33,"column":4},"end":{"line":33,"column":4}}]},"3":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":8},"end":{"line":36,"column":8}},{"start":{"line":36,"column":8},"end":{"line":36,"column":8}}]},"4":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":6},"end":{"line":38,"column":6}},{"start":{"line":38,"column":6},"end":{"line":38,"column":6}}]},"5":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":6},"end":{"line":42,"column":6}},{"start":{"line":42,"column":6},"end":{"line":42,"column":6}}]},"6":{"line":48,"type":"cond-expr","locations":[{"start":{"line":48,"column":30},"end":{"line":48,"column":37}},{"start":{"line":48,"column":40},"end":{"line":48,"column":44}}]},"7":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":53,"column":2}},{"start":{"line":53,"column":2},"end":{"line":53,"column":2}}]},"8":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":2},"end":{"line":64,"column":2}},{"start":{"line":64,"column":2},"end":{"line":64,"column":2}}]},"9":{"line":93,"type":"binary-expr","locations":[{"start":{"line":93,"column":33},"end":{"line":93,"column":69}},{"start":{"line":93,"column":73},"end":{"line":93,"column":76}}]},"10":{"line":95,"type":"if","locations":[{"start":{"line":95,"column":6},"end":{"line":95,"column":6}},{"start":{"line":95,"column":6},"end":{"line":95,"column":6}}]},"11":{"line":101,"type":"if","locations":[{"start":{"line":101,"column":10},"end":{"line":101,"column":10}},{"start":{"line":101,"column":10},"end":{"line":101,"column":10}}]}}}} |
@@ -24,3 +24,3 @@ /** | ||
var VERSION = "0.2.0"; | ||
var VERSION = "0.4.0"; | ||
@@ -31,3 +31,3 @@ function getMissingParams(params, required) { | ||
} | ||
required = required.concat(['endpoint', 'application_id', 'application_key']); | ||
required = required.concat(['endpointPath', 'application_id', 'application_key']); | ||
var missing = []; | ||
@@ -64,3 +64,3 @@ required.forEach(function(param) { | ||
var applicationKey = postParams.application_key; | ||
var endpoint = postParams.endpoint; | ||
var endpointPath = postParams.endpointPath; | ||
var protocol = https; | ||
@@ -72,3 +72,3 @@ if (parameters.https === false) { | ||
delete(postParams.application_key); | ||
delete(postParams.endpoint); | ||
delete(postParams.endpointPath); | ||
delete(postParams.https); | ||
@@ -79,3 +79,3 @@ var postData = querystring.stringify(postParams); | ||
host: 'api.aylien.com', | ||
path: '/api/v1/' + endpoint, | ||
path: '/api/v1/' + endpointPath, | ||
method: 'POST', | ||
@@ -82,0 +82,0 @@ headers: { |
{ | ||
"name": "aylien_textapi", | ||
"description": "AYLIEN Text API Client Library for Node.js", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"author": "AYLIEN Inc.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -71,3 +71,3 @@ /** | ||
this.sentiment = function(params, callback) { | ||
params = util.extend({endpoint: 'sentiment'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'sentiment'}, this.normalizeParams(params)); | ||
createAPIRequest(params, [['text', 'url']], callback); | ||
@@ -93,3 +93,3 @@ }; | ||
this.extract = function(params, callback) { | ||
params = util.extend({endpoint: 'extract'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'extract'}, this.normalizeParams(params)); | ||
if (params.text && !params.html) { params.html = params.text; delete(params.text); } | ||
@@ -99,3 +99,2 @@ createAPIRequest(params, [['url', 'html']], callback); | ||
/** | ||
@@ -116,3 +115,3 @@ * textapi.language | ||
this.language = function(params, callback) { | ||
params = util.extend({endpoint: 'language'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'language'}, this.normalizeParams(params)); | ||
createAPIRequest(params, [['text', 'url']], callback); | ||
@@ -137,3 +136,3 @@ }; | ||
this.classify = function(params, callback) { | ||
params = util.extend({endpoint: 'classify'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'classify'}, this.normalizeParams(params)); | ||
createAPIRequest(params, [['text', 'url']], callback); | ||
@@ -160,3 +159,3 @@ }; | ||
this.unsupervisedClassify = function(params, callback) { | ||
params = util.extend({endpoint: 'classify/unsupervised'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'classify/unsupervised'}, this.normalizeParams(params)); | ||
createAPIRequest(params, [['text', 'url'], 'class'], callback); | ||
@@ -166,2 +165,21 @@ }; | ||
/** | ||
* textapi.combined | ||
* | ||
* @desc Runs multiple analysis operations in one API call. | ||
* | ||
* @memberof! aylien_textapi(v1) | ||
* @instance | ||
* | ||
* @param {object} params - Parameters for request | ||
* @param {string} params.text - Text | ||
* @param {string} params.url - URL | ||
* @param {array} params.endpoint - List of endpoints to call | ||
* @param {callback} callback - The callback that handles the response | ||
*/ | ||
this.combined = function(params, callback) { | ||
params = util.extend({endpointPath: 'combined'}, this.normalizeParams(params)); | ||
createAPIRequest(params, [['text', 'url'], 'endpoint'], callback); | ||
}; | ||
/** | ||
* textapi.concepts | ||
@@ -183,3 +201,3 @@ * | ||
this.concepts = function(params, callback) { | ||
params = util.extend({endpoint: 'concepts'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'concepts'}, this.normalizeParams(params)); | ||
createAPIRequest(params, [['text', 'url']], callback); | ||
@@ -204,3 +222,3 @@ }; | ||
this.entities = function(params, callback) { | ||
params = util.extend({endpoint: 'entities'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'entities'}, this.normalizeParams(params)); | ||
createAPIRequest(params, [['text', 'url']], callback); | ||
@@ -224,3 +242,3 @@ }; | ||
this.hashtags = function(params, callback) { | ||
params = util.extend({endpoint: 'hashtags'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'hashtags'}, this.normalizeParams(params)); | ||
createAPIRequest(params, [['text', 'url']], callback); | ||
@@ -250,3 +268,3 @@ }; | ||
this.summarize = function(params, callback) { | ||
params = util.extend({endpoint: 'summarize'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'summarize'}, this.normalizeParams(params)); | ||
if (!params.url && (!params.text || !params.title)) { | ||
@@ -273,3 +291,3 @@ callback(new Error('You must either provide url, or pair of text and title')); | ||
this.related = function(params, callback) { | ||
params = util.extend({endpoint: 'related'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'related'}, this.normalizeParams(params)); | ||
if (params.text && !params.phrase) { params.phrase = params.text; delete(params.text); } | ||
@@ -292,3 +310,3 @@ createAPIRequest(params, 'phrase', callback); | ||
this.microformats = function(params, callback) { | ||
params = util.extend({endpoint: 'microformats'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'microformats'}, this.normalizeParams(params)); | ||
createAPIRequest(params, 'url', callback); | ||
@@ -310,3 +328,3 @@ }; | ||
this.imageTags = function(params, callback) { | ||
params = util.extend({endpoint: 'image-tags'}, this.normalizeParams(params)); | ||
params = util.extend({endpointPath: 'image-tags'}, this.normalizeParams(params)); | ||
createAPIRequest(params, 'url', callback); | ||
@@ -313,0 +331,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170609
525