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

fastpay

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastpay - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

.coveralls.yml

2

coverage/coverage.json

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

{"/Users/okuryu/work/node-fastpay/index.js":{"path":"/Users/okuryu/work/node-fastpay/index.js","s":{"1":1,"2":1,"3":1,"4":19,"5":19,"6":19,"7":18,"8":1,"9":1,"10":5,"11":5,"12":1,"13":4,"14":1,"15":3,"16":1,"17":2,"18":2,"19":2,"20":1,"21":2,"22":1,"23":2,"24":2,"25":1,"26":2,"27":1,"28":3,"29":1,"30":2,"31":2,"32":2,"33":1,"34":2,"35":1,"36":3,"37":1,"38":2,"39":2,"40":2,"41":1,"42":2,"43":1,"44":3,"45":1,"46":2,"47":2,"48":2,"49":1,"50":2,"51":1,"52":3,"53":3,"54":3,"55":1,"56":3,"57":1,"58":21,"59":21,"60":1,"61":20,"62":1,"63":19,"64":19,"65":1},"b":{"1":[19,1],"2":[1,17],"3":[1,4],"4":[1,3],"5":[4,1],"6":[1,2],"7":[1,1],"8":[1,1],"9":[1,1],"10":[1,2],"11":[1,1],"12":[1,2],"13":[1,1],"14":[1,2],"15":[1,1],"16":[3,1],"17":[1,2],"18":[1,20],"19":[1,19]},"f":{"1":19,"2":18,"3":5,"4":2,"5":3,"6":2,"7":3,"8":2,"9":3,"10":2,"11":3,"12":3,"13":21},"fnMap":{"1":{"name":"FastPay","line":12,"loc":{"start":{"line":12,"column":0},"end":{"line":12,"column":35}}},"2":{"name":"(anonymous_2)","line":20,"loc":{"start":{"line":20,"column":7},"end":{"line":20,"column":33}}},"3":{"name":"(anonymous_3)","line":27,"loc":{"start":{"line":27,"column":27},"end":{"line":27,"column":55}}},"4":{"name":"(anonymous_4)","line":52,"loc":{"start":{"line":52,"column":7},"end":{"line":52,"column":33}}},"5":{"name":"(anonymous_5)","line":60,"loc":{"start":{"line":60,"column":29},"end":{"line":60,"column":53}}},"6":{"name":"(anonymous_6)","line":70,"loc":{"start":{"line":70,"column":7},"end":{"line":70,"column":33}}},"7":{"name":"(anonymous_7)","line":78,"loc":{"start":{"line":78,"column":27},"end":{"line":78,"column":51}}},"8":{"name":"(anonymous_8)","line":91,"loc":{"start":{"line":91,"column":7},"end":{"line":91,"column":33}}},"9":{"name":"(anonymous_9)","line":99,"loc":{"start":{"line":99,"column":28},"end":{"line":99,"column":52}}},"10":{"name":"(anonymous_10)","line":112,"loc":{"start":{"line":112,"column":7},"end":{"line":112,"column":33}}},"11":{"name":"(anonymous_11)","line":120,"loc":{"start":{"line":120,"column":24},"end":{"line":120,"column":52}}},"12":{"name":"(anonymous_12)","line":128,"loc":{"start":{"line":128,"column":7},"end":{"line":128,"column":33}}},"13":{"name":"fastpay","line":136,"loc":{"start":{"line":136,"column":0},"end":{"line":136,"column":35}}}},"statementMap":{"1":{"start":{"line":7,"column":0},"end":{"line":7,"column":33}},"2":{"start":{"line":10,"column":0},"end":{"line":10,"column":67}},"3":{"start":{"line":12,"column":0},"end":{"line":25,"column":1}},"4":{"start":{"line":13,"column":4},"end":{"line":13,"column":32}},"5":{"start":{"line":14,"column":4},"end":{"line":14,"column":60}},"6":{"start":{"line":15,"column":4},"end":{"line":24,"column":7}},"7":{"start":{"line":21,"column":8},"end":{"line":23,"column":9}},"8":{"start":{"line":22,"column":12},"end":{"line":22,"column":37}},"9":{"start":{"line":27,"column":0},"end":{"line":58,"column":2}},"10":{"start":{"line":28,"column":4},"end":{"line":28,"column":18}},"11":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"12":{"start":{"line":30,"column":8},"end":{"line":30,"column":60}},"13":{"start":{"line":32,"column":4},"end":{"line":34,"column":5}},"14":{"start":{"line":33,"column":8},"end":{"line":33,"column":77}},"15":{"start":{"line":35,"column":4},"end":{"line":37,"column":5}},"16":{"start":{"line":36,"column":8},"end":{"line":36,"column":65}},"17":{"start":{"line":38,"column":4},"end":{"line":38,"column":32}},"18":{"start":{"line":39,"column":4},"end":{"line":39,"column":28}},"19":{"start":{"line":40,"column":4},"end":{"line":42,"column":5}},"20":{"start":{"line":41,"column":8},"end":{"line":41,"column":46}},"21":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"22":{"start":{"line":44,"column":8},"end":{"line":44,"column":38}},"23":{"start":{"line":46,"column":4},"end":{"line":56,"column":7}},"24":{"start":{"line":53,"column":8},"end":{"line":55,"column":9}},"25":{"start":{"line":54,"column":12},"end":{"line":54,"column":37}},"26":{"start":{"line":57,"column":4},"end":{"line":57,"column":16}},"27":{"start":{"line":60,"column":0},"end":{"line":76,"column":2}},"28":{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},"29":{"start":{"line":62,"column":8},"end":{"line":62,"column":56}},"30":{"start":{"line":64,"column":4},"end":{"line":64,"column":32}},"31":{"start":{"line":65,"column":4},"end":{"line":74,"column":7}},"32":{"start":{"line":71,"column":8},"end":{"line":73,"column":9}},"33":{"start":{"line":72,"column":12},"end":{"line":72,"column":37}},"34":{"start":{"line":75,"column":4},"end":{"line":75,"column":16}},"35":{"start":{"line":78,"column":0},"end":{"line":97,"column":2}},"36":{"start":{"line":79,"column":4},"end":{"line":81,"column":5}},"37":{"start":{"line":80,"column":8},"end":{"line":80,"column":56}},"38":{"start":{"line":82,"column":4},"end":{"line":82,"column":44}},"39":{"start":{"line":83,"column":4},"end":{"line":95,"column":7}},"40":{"start":{"line":92,"column":8},"end":{"line":94,"column":9}},"41":{"start":{"line":93,"column":12},"end":{"line":93,"column":37}},"42":{"start":{"line":96,"column":4},"end":{"line":96,"column":16}},"43":{"start":{"line":99,"column":0},"end":{"line":118,"column":2}},"44":{"start":{"line":100,"column":4},"end":{"line":102,"column":5}},"45":{"start":{"line":101,"column":8},"end":{"line":101,"column":56}},"46":{"start":{"line":103,"column":4},"end":{"line":103,"column":45}},"47":{"start":{"line":104,"column":4},"end":{"line":116,"column":7}},"48":{"start":{"line":113,"column":8},"end":{"line":115,"column":9}},"49":{"start":{"line":114,"column":12},"end":{"line":114,"column":37}},"50":{"start":{"line":117,"column":4},"end":{"line":117,"column":16}},"51":{"start":{"line":120,"column":0},"end":{"line":134,"column":2}},"52":{"start":{"line":121,"column":4},"end":{"line":121,"column":26}},"53":{"start":{"line":122,"column":4},"end":{"line":132,"column":7}},"54":{"start":{"line":129,"column":8},"end":{"line":131,"column":9}},"55":{"start":{"line":130,"column":12},"end":{"line":130,"column":37}},"56":{"start":{"line":133,"column":4},"end":{"line":133,"column":16}},"57":{"start":{"line":136,"column":0},"end":{"line":146,"column":1}},"58":{"start":{"line":137,"column":4},"end":{"line":137,"column":11}},"59":{"start":{"line":138,"column":4},"end":{"line":140,"column":5}},"60":{"start":{"line":139,"column":8},"end":{"line":139,"column":60}},"61":{"start":{"line":141,"column":4},"end":{"line":143,"column":5}},"62":{"start":{"line":142,"column":8},"end":{"line":142,"column":67}},"63":{"start":{"line":144,"column":4},"end":{"line":144,"column":39}},"64":{"start":{"line":145,"column":4},"end":{"line":145,"column":14}},"65":{"start":{"line":148,"column":0},"end":{"line":148,"column":25}}},"branchMap":{"1":{"line":14,"type":"binary-expr","locations":[{"start":{"line":14,"column":22},"end":{"line":14,"column":39}},{"start":{"line":14,"column":43},"end":{"line":14,"column":59}}]},"2":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":8},"end":{"line":21,"column":8}},{"start":{"line":21,"column":8},"end":{"line":21,"column":8}}]},"3":{"line":29,"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":29,"column":4}},{"start":{"line":29,"column":4},"end":{"line":29,"column":4}}]},"4":{"line":32,"type":"if","locations":[{"start":{"line":32,"column":4},"end":{"line":32,"column":4}},{"start":{"line":32,"column":4},"end":{"line":32,"column":4}}]},"5":{"line":32,"type":"binary-expr","locations":[{"start":{"line":32,"column":8},"end":{"line":32,"column":41}},{"start":{"line":32,"column":45},"end":{"line":32,"column":78}}]},"6":{"line":35,"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":35,"column":4}},{"start":{"line":35,"column":4},"end":{"line":35,"column":4}}]},"7":{"line":40,"type":"if","locations":[{"start":{"line":40,"column":4},"end":{"line":40,"column":4}},{"start":{"line":40,"column":4},"end":{"line":40,"column":4}}]},"8":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":43,"column":4}},{"start":{"line":43,"column":4},"end":{"line":43,"column":4}}]},"9":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":8},"end":{"line":53,"column":8}},{"start":{"line":53,"column":8},"end":{"line":53,"column":8}}]},"10":{"line":61,"type":"if","locations":[{"start":{"line":61,"column":4},"end":{"line":61,"column":4}},{"start":{"line":61,"column":4},"end":{"line":61,"column":4}}]},"11":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":8}},{"start":{"line":71,"column":8},"end":{"line":71,"column":8}}]},"12":{"line":79,"type":"if","locations":[{"start":{"line":79,"column":4},"end":{"line":79,"column":4}},{"start":{"line":79,"column":4},"end":{"line":79,"column":4}}]},"13":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":8},"end":{"line":92,"column":8}},{"start":{"line":92,"column":8},"end":{"line":92,"column":8}}]},"14":{"line":100,"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":100,"column":4}},{"start":{"line":100,"column":4},"end":{"line":100,"column":4}}]},"15":{"line":113,"type":"if","locations":[{"start":{"line":113,"column":8},"end":{"line":113,"column":8}},{"start":{"line":113,"column":8},"end":{"line":113,"column":8}}]},"16":{"line":121,"type":"binary-expr","locations":[{"start":{"line":121,"column":13},"end":{"line":121,"column":19}},{"start":{"line":121,"column":23},"end":{"line":121,"column":25}}]},"17":{"line":129,"type":"if","locations":[{"start":{"line":129,"column":8},"end":{"line":129,"column":8}},{"start":{"line":129,"column":8},"end":{"line":129,"column":8}}]},"18":{"line":138,"type":"if","locations":[{"start":{"line":138,"column":4},"end":{"line":138,"column":4}},{"start":{"line":138,"column":4},"end":{"line":138,"column":4}}]},"19":{"line":141,"type":"if","locations":[{"start":{"line":141,"column":4},"end":{"line":141,"column":4}},{"start":{"line":141,"column":4},"end":{"line":141,"column":4}}]}}}}
{"/Users/okuryu/work/node-fastpay/index.js":{"path":"/Users/okuryu/work/node-fastpay/index.js","s":{"1":1,"2":1,"3":1,"4":20,"5":20,"6":20,"7":18,"8":1,"9":1,"10":5,"11":5,"12":1,"13":4,"14":1,"15":3,"16":1,"17":2,"18":2,"19":2,"20":1,"21":2,"22":1,"23":2,"24":2,"25":1,"26":2,"27":1,"28":3,"29":1,"30":2,"31":2,"32":2,"33":1,"34":2,"35":1,"36":3,"37":1,"38":2,"39":2,"40":2,"41":1,"42":2,"43":1,"44":3,"45":1,"46":2,"47":2,"48":2,"49":1,"50":2,"51":1,"52":3,"53":3,"54":3,"55":1,"56":3,"57":1,"58":22,"59":22,"60":1,"61":21,"62":20,"63":1,"64":19,"65":1,"66":20,"67":20,"68":1},"b":{"1":[20,2],"2":[1,17],"3":[1,4],"4":[1,3],"5":[4,1],"6":[1,2],"7":[1,1],"8":[1,1],"9":[1,1],"10":[1,2],"11":[1,1],"12":[1,2],"13":[1,1],"14":[1,2],"15":[1,1],"16":[3,1],"17":[1,2],"18":[1,21],"19":[20,1],"20":[1,19]},"f":{"1":20,"2":18,"3":5,"4":2,"5":3,"6":2,"7":3,"8":2,"9":3,"10":2,"11":3,"12":3,"13":22},"fnMap":{"1":{"name":"FastPay","line":10,"loc":{"start":{"line":10,"column":0},"end":{"line":10,"column":35}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":7},"end":{"line":18,"column":33}}},"3":{"name":"(anonymous_3)","line":25,"loc":{"start":{"line":25,"column":27},"end":{"line":25,"column":55}}},"4":{"name":"(anonymous_4)","line":50,"loc":{"start":{"line":50,"column":7},"end":{"line":50,"column":33}}},"5":{"name":"(anonymous_5)","line":58,"loc":{"start":{"line":58,"column":29},"end":{"line":58,"column":53}}},"6":{"name":"(anonymous_6)","line":68,"loc":{"start":{"line":68,"column":7},"end":{"line":68,"column":33}}},"7":{"name":"(anonymous_7)","line":76,"loc":{"start":{"line":76,"column":27},"end":{"line":76,"column":51}}},"8":{"name":"(anonymous_8)","line":89,"loc":{"start":{"line":89,"column":7},"end":{"line":89,"column":33}}},"9":{"name":"(anonymous_9)","line":97,"loc":{"start":{"line":97,"column":28},"end":{"line":97,"column":52}}},"10":{"name":"(anonymous_10)","line":110,"loc":{"start":{"line":110,"column":7},"end":{"line":110,"column":33}}},"11":{"name":"(anonymous_11)","line":118,"loc":{"start":{"line":118,"column":24},"end":{"line":118,"column":52}}},"12":{"name":"(anonymous_12)","line":126,"loc":{"start":{"line":126,"column":7},"end":{"line":126,"column":33}}},"13":{"name":"fastpay","line":134,"loc":{"start":{"line":134,"column":0},"end":{"line":134,"column":35}}}},"statementMap":{"1":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"2":{"start":{"line":8,"column":0},"end":{"line":8,"column":67}},"3":{"start":{"line":10,"column":0},"end":{"line":23,"column":1}},"4":{"start":{"line":11,"column":4},"end":{"line":11,"column":32}},"5":{"start":{"line":12,"column":4},"end":{"line":12,"column":60}},"6":{"start":{"line":13,"column":4},"end":{"line":22,"column":7}},"7":{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},"8":{"start":{"line":20,"column":12},"end":{"line":20,"column":37}},"9":{"start":{"line":25,"column":0},"end":{"line":56,"column":2}},"10":{"start":{"line":26,"column":4},"end":{"line":26,"column":18}},"11":{"start":{"line":27,"column":4},"end":{"line":29,"column":5}},"12":{"start":{"line":28,"column":8},"end":{"line":28,"column":60}},"13":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"14":{"start":{"line":31,"column":8},"end":{"line":31,"column":77}},"15":{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},"16":{"start":{"line":34,"column":8},"end":{"line":34,"column":65}},"17":{"start":{"line":36,"column":4},"end":{"line":36,"column":32}},"18":{"start":{"line":37,"column":4},"end":{"line":37,"column":28}},"19":{"start":{"line":38,"column":4},"end":{"line":40,"column":5}},"20":{"start":{"line":39,"column":8},"end":{"line":39,"column":46}},"21":{"start":{"line":41,"column":4},"end":{"line":43,"column":5}},"22":{"start":{"line":42,"column":8},"end":{"line":42,"column":38}},"23":{"start":{"line":44,"column":4},"end":{"line":54,"column":7}},"24":{"start":{"line":51,"column":8},"end":{"line":53,"column":9}},"25":{"start":{"line":52,"column":12},"end":{"line":52,"column":37}},"26":{"start":{"line":55,"column":4},"end":{"line":55,"column":16}},"27":{"start":{"line":58,"column":0},"end":{"line":74,"column":2}},"28":{"start":{"line":59,"column":4},"end":{"line":61,"column":5}},"29":{"start":{"line":60,"column":8},"end":{"line":60,"column":56}},"30":{"start":{"line":62,"column":4},"end":{"line":62,"column":32}},"31":{"start":{"line":63,"column":4},"end":{"line":72,"column":7}},"32":{"start":{"line":69,"column":8},"end":{"line":71,"column":9}},"33":{"start":{"line":70,"column":12},"end":{"line":70,"column":37}},"34":{"start":{"line":73,"column":4},"end":{"line":73,"column":16}},"35":{"start":{"line":76,"column":0},"end":{"line":95,"column":2}},"36":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"37":{"start":{"line":78,"column":8},"end":{"line":78,"column":56}},"38":{"start":{"line":80,"column":4},"end":{"line":80,"column":44}},"39":{"start":{"line":81,"column":4},"end":{"line":93,"column":7}},"40":{"start":{"line":90,"column":8},"end":{"line":92,"column":9}},"41":{"start":{"line":91,"column":12},"end":{"line":91,"column":37}},"42":{"start":{"line":94,"column":4},"end":{"line":94,"column":16}},"43":{"start":{"line":97,"column":0},"end":{"line":116,"column":2}},"44":{"start":{"line":98,"column":4},"end":{"line":100,"column":5}},"45":{"start":{"line":99,"column":8},"end":{"line":99,"column":56}},"46":{"start":{"line":101,"column":4},"end":{"line":101,"column":45}},"47":{"start":{"line":102,"column":4},"end":{"line":114,"column":7}},"48":{"start":{"line":111,"column":8},"end":{"line":113,"column":9}},"49":{"start":{"line":112,"column":12},"end":{"line":112,"column":37}},"50":{"start":{"line":115,"column":4},"end":{"line":115,"column":16}},"51":{"start":{"line":118,"column":0},"end":{"line":132,"column":2}},"52":{"start":{"line":119,"column":4},"end":{"line":119,"column":26}},"53":{"start":{"line":120,"column":4},"end":{"line":130,"column":7}},"54":{"start":{"line":127,"column":8},"end":{"line":129,"column":9}},"55":{"start":{"line":128,"column":12},"end":{"line":128,"column":37}},"56":{"start":{"line":131,"column":4},"end":{"line":131,"column":16}},"57":{"start":{"line":134,"column":0},"end":{"line":151,"column":1}},"58":{"start":{"line":135,"column":4},"end":{"line":136,"column":12}},"59":{"start":{"line":137,"column":4},"end":{"line":148,"column":5}},"60":{"start":{"line":138,"column":8},"end":{"line":140,"column":10}},"61":{"start":{"line":141,"column":11},"end":{"line":148,"column":5}},"62":{"start":{"line":142,"column":8},"end":{"line":144,"column":9}},"63":{"start":{"line":143,"column":12},"end":{"line":143,"column":71}},"64":{"start":{"line":145,"column":8},"end":{"line":145,"column":21}},"65":{"start":{"line":147,"column":8},"end":{"line":147,"column":70}},"66":{"start":{"line":149,"column":4},"end":{"line":149,"column":36}},"67":{"start":{"line":150,"column":4},"end":{"line":150,"column":14}},"68":{"start":{"line":153,"column":0},"end":{"line":153,"column":25}}},"branchMap":{"1":{"line":12,"type":"binary-expr","locations":[{"start":{"line":12,"column":22},"end":{"line":12,"column":39}},{"start":{"line":12,"column":43},"end":{"line":12,"column":59}}]},"2":{"line":19,"type":"if","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":8}},{"start":{"line":19,"column":8},"end":{"line":19,"column":8}}]},"3":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":27,"column":4}},{"start":{"line":27,"column":4},"end":{"line":27,"column":4}}]},"4":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":30,"column":4}},{"start":{"line":30,"column":4},"end":{"line":30,"column":4}}]},"5":{"line":30,"type":"binary-expr","locations":[{"start":{"line":30,"column":8},"end":{"line":30,"column":41}},{"start":{"line":30,"column":45},"end":{"line":30,"column":78}}]},"6":{"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}}]},"7":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":38,"column":4}},{"start":{"line":38,"column":4},"end":{"line":38,"column":4}}]},"8":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":41,"column":4}},{"start":{"line":41,"column":4},"end":{"line":41,"column":4}}]},"9":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":8},"end":{"line":51,"column":8}},{"start":{"line":51,"column":8},"end":{"line":51,"column":8}}]},"10":{"line":59,"type":"if","locations":[{"start":{"line":59,"column":4},"end":{"line":59,"column":4}},{"start":{"line":59,"column":4},"end":{"line":59,"column":4}}]},"11":{"line":69,"type":"if","locations":[{"start":{"line":69,"column":8},"end":{"line":69,"column":8}},{"start":{"line":69,"column":8},"end":{"line":69,"column":8}}]},"12":{"line":77,"type":"if","locations":[{"start":{"line":77,"column":4},"end":{"line":77,"column":4}},{"start":{"line":77,"column":4},"end":{"line":77,"column":4}}]},"13":{"line":90,"type":"if","locations":[{"start":{"line":90,"column":8},"end":{"line":90,"column":8}},{"start":{"line":90,"column":8},"end":{"line":90,"column":8}}]},"14":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":98,"column":4}},{"start":{"line":98,"column":4},"end":{"line":98,"column":4}}]},"15":{"line":111,"type":"if","locations":[{"start":{"line":111,"column":8},"end":{"line":111,"column":8}},{"start":{"line":111,"column":8},"end":{"line":111,"column":8}}]},"16":{"line":119,"type":"binary-expr","locations":[{"start":{"line":119,"column":13},"end":{"line":119,"column":19}},{"start":{"line":119,"column":23},"end":{"line":119,"column":25}}]},"17":{"line":127,"type":"if","locations":[{"start":{"line":127,"column":8},"end":{"line":127,"column":8}},{"start":{"line":127,"column":8},"end":{"line":127,"column":8}}]},"18":{"line":137,"type":"if","locations":[{"start":{"line":137,"column":4},"end":{"line":137,"column":4}},{"start":{"line":137,"column":4},"end":{"line":137,"column":4}}]},"19":{"line":141,"type":"if","locations":[{"start":{"line":141,"column":11},"end":{"line":141,"column":11}},{"start":{"line":141,"column":11},"end":{"line":141,"column":11}}]},"20":{"line":142,"type":"if","locations":[{"start":{"line":142,"column":8},"end":{"line":142,"column":8}},{"start":{"line":142,"column":8},"end":{"line":142,"column":8}}]}}}}

@@ -135,10 +135,17 @@ /*

function fastpay(option, callback) {
var fp;
if (typeof option !== "object") {
throw new Error("the option (object) is required.");
var fp,
opt;
if (typeof option === "string") {
opt = {
apiKey: option
};
} else if (typeof option === "object") {
if (typeof option.apiKey !== "string") {
throw new Error("the option.apiKey (string) is required.");
}
opt = option;
} else {
throw new Error("the option (object or string) is required.");
}
if (typeof option.apiKey !== "string") {
throw new Error("the option.apiKey (string) is required.");
}
fp = new FastPay(option, callback);
fp = new FastPay(opt, callback);
return fp;

@@ -145,0 +152,0 @@ }

{
"name": "fastpay",
"version": "1.0.0",
"version": "1.1.0",
"description": "FastPay for Node.js",

@@ -9,6 +9,10 @@ "main": "index",

"test": "node_modules/istanbul/lib/cli.js cover -- node_modules/.bin/_mocha test/*.js --reporter spec",
"coveralls": "node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"lint": "node_modules/jshint/bin/jshint *.js test/*.js"
},
"author": "Ryuichi Okumura <okuryu@okuryu.com>",
"license": "BSD",
"license": {
"type": "BSD",
"url": "https://github.com/okuryu/node-fastpay/blob/master/LICENSE"
},
"dependencies": {

@@ -19,2 +23,3 @@ "request": "2.x.x"

"chai": "1.x.x",
"coveralls": "2.x.x",
"echoecho": "0.x.x",

@@ -21,0 +26,0 @@ "istanbul": "0.x.x",

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

# FastPay for Node.js
# node-fastpay
[![NPM version](https://badge.fury.io/js/fastpay.svg)](http://badge.fury.io/js/fastpay)
[![Build Status](https://travis-ci.org/okuryu/node-fastpay.svg?branch=master)](https://travis-ci.org/okuryu/node-fastpay)
[![Dependency Status](https://gemnasium.com/okuryu/node-fastpay.svg)](https://gemnasium.com/okuryu/node-fastpay)
[![Coverage Status](https://coveralls.io/repos/okuryu/node-fastpay/badge.png?branch=master)](https://coveralls.io/r/okuryu/node-fastpay?branch=master)
FastPay for Node.js.
## Getting started

@@ -17,5 +24,3 @@

fastpay({
apiKey: "YOUR_API_KEY"
}, function (err, res, body) {
fastpay("YOUR_API_KEY", function (err, res, body) {
if (!err && res.statusCode === 200) {

@@ -30,5 +35,3 @@ console.log(body);

```js
fastpay({
apiKey: "YOUR_API_KEY"
}).create({
fastpay("YOUR_API_KEY").create({
amount: 1000,

@@ -46,5 +49,3 @@ card: "YOUR_CARD_ID"

```js
fastpay({
apiKey: "YOUR_API_KEY"
}).retrieve("YOUR_CHARGE_ID", function (err, res, body) {
fastpay("YOUR_API_KEY").retrieve("YOUR_CHARGE_ID", function (err, res, body) {
if (!err && res.statusCode === 200) {

@@ -59,5 +60,3 @@ console.log(body);

```js
fastpay({
apiKey: "YOUR_API_KEY"
}).refund("YOUR_CHARGE_ID", function (err, res, body) {
fastpay("YOUR_API_KEY").refund("YOUR_CHARGE_ID", function (err, res, body) {
if (!err && res.statusCode === 200) {

@@ -72,5 +71,3 @@ console.log(body);

```js
fastpay({
apiKey: "YOUR_API_KEY"
}).capture("YOUR_CHARGE_ID", function (err, res, body) {
fastpay("YOUR_API_KEY").capture("YOUR_CHARGE_ID", function (err, res, body) {
if (!err && res.statusCode === 200) {

@@ -85,5 +82,3 @@ console.log(body);

```js
fastpay({
apiKey: "YOUR_API_KEY"
}).all({
fastpay("YOUR_API_KEY").all({
count: 1

@@ -90,0 +85,0 @@ }, function (err, res, body) {

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