Skip to content

Commit 6f20d2d

Browse files
Release 2.0.2 Minor newline bug effecting windows users
1 parent 651cb5d commit 6f20d2d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "telesignsdk",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Official TeleSign SDK for Rest APIs including Messaging (SMS), Score, PhoneID, Voice, and AppVerify",
55
"repository": {
66
"type": "git",
@@ -15,6 +15,7 @@
1515
"os": "0.1.1",
1616
"querystring": "0.2.0",
1717
"request": "2.81.0",
18+
"telesignsdk": "^2.0.1",
1819
"urijs": "1.18.10",
1920
"uuid-v4.js": "1.0.2"
2021
},

src/RestClient.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ class RestClient {
8484

8585
var urlencoded = "";
8686
if (urlEncodedFields != null && urlEncodedFields.length > 0) {
87-
urlencoded = os.EOL + urlEncodedFields;
87+
urlencoded = "\n" + urlEncodedFields;
8888
}
8989
var stringToSignBuilder = methodName +
90-
os.EOL + contentType +
91-
os.EOL + date +
92-
os.EOL + "x-ts-auth-method:" + authMethod +
93-
os.EOL + "x-ts-nonce:" + nonce +
90+
"\n" + contentType +
91+
"\n" + date +
92+
"\n" + "x-ts-auth-method:" + authMethod +
93+
"\n" + "x-ts-nonce:" + nonce +
9494
urlencoded +
95-
os.EOL + resource;
95+
"\n" + resource;
9696

9797
var signedStrUTF8 = stringToSignBuilder.toString('utf8');
9898
var decodedAPIKey = Buffer.from(apiKey, 'base64');

0 commit comments

Comments
 (0)