telesignsdk
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "telesignsdk", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Official TeleSign SDK for Rest APIs including Messaging (SMS), Score, PhoneID, Voice, and AppVerify", | ||
@@ -5,0 +5,0 @@ "repository": { |
[<img src="/node_banner.jpg">](https://developer.telesign.com) | ||
[<img src="https://img.shields.io/travis/TeleSign/node_telesign.svg">](https://travis-ci.org/TeleSign/node_telesign) [<img src="https://img.shields.io/codecov/c/github/TeleSign/node_telesign.svg">](https://codecov.io/gh/TeleSign/node_telesign) [](https://www.npmjs.com/package/telesignsdk) [](https://github.com/TeleSign/node_telesign/blob/master/LICENSE.txt) | ||
[<img src="https://img.shields.io/travis/TeleSign/node_telesign.svg">](https://travis-ci.org/TeleSign/node_telesign) | ||
[<img src="https://img.shields.io/codecov/c/github/TeleSign/node_telesign.svg">](https://codecov.io/gh/TeleSign/node_telesign) | ||
TeleSign Node.js SDK | ||
@@ -9,0 +5,0 @@ ================= |
@@ -139,3 +139,3 @@ const os = require('os'); | ||
if (params != null) { | ||
telesignURL = URI(this.restEndpoint + resource).query(params); | ||
telesignURL = URI(this.restEndpoint + resource).query(params).toString(); | ||
} | ||
@@ -173,8 +173,11 @@ else { | ||
callback(err, bodyStr); | ||
if (callback){ | ||
callback(err, bodyStr); | ||
} | ||
} | ||
if (res) { | ||
var body = JSON.parse(bodyStr); | ||
callback(err, body); | ||
if (callback){ | ||
callback(err, body); | ||
} | ||
} | ||
@@ -181,0 +184,0 @@ }); |
Sorry, the diff of this file is not supported yet
629
95964
15
125