Skip to content

Commit fa42588

Browse files
Pull request #25: Fix Score constructor initialization
Merge in SDK/node_telesign_enterprise from hotfix/contructor-score to developer Squashed commit of the following: commit 4b7f78df9a0dc542cce03ccab798d1b6ab051abd Author: Juan Camilo Martinez <jmartinez@telesign.com> Date: Wed Feb 4 17:07:46 2026 -0500 Fix Score constructor initialization
1 parent 2409af1 commit fa42588

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

RELEASE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
5.0.1
2+
- Fix Score constructor initialization.
3+
14
5.0.0
25
- Added support for Intelligence Cloud to use new endpoint.
36
- Removed the legacy PID Score.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "telesignenterprisesdk",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"description": "This SDK enhances the functionality of the Telesign Self-service Node SDK, providing access to a broader range of Telesign APIs. See our source code on GitHub (https://github.com/TeleSign/node_telesign_enterprise) for installation instructions and other details.",
55
"repository": {
66
"type": "git",

src/telesign.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ const Telebureau = require('./telebureau.js');
44
const Messaging = require('./messaging.js');
55
const OmniVerify = require('./omniverifyclient.js');
66
const ScoreClient = require("./scoreclient.js");
7-
const detectEndpoint= "https://detect.telesign.com";
7+
const detectEndpoint = "https://detect.telesign.com";
88

99
module.exports = class Telesign {
1010
constructor(customerId,
11-
apiKey,
12-
restEndpoint = "https://rest-ww.telesign.com",
13-
timeout = 10000,
14-
useragent = null,
15-
urlOmniVerify = "https://verify.telesign.com") {
11+
apiKey,
12+
restEndpoint = "https://rest-ww.telesign.com",
13+
timeout = 10000,
14+
useragent = null,
15+
urlOmniVerify = "https://verify.telesign.com") {
1616
this.omniVerify = new OmniVerify(customerId, apiKey, urlOmniVerify);
1717
this.verify = new Verify(customerId, apiKey, restEndpoint, timeout, useragent, urlOmniVerify);
1818
this.phoneid = new PhoneID(customerId, apiKey, restEndpoint, timeout, useragent);
1919
this.telebureau = new Telebureau(customerId, apiKey, restEndpoint, timeout, useragent);
2020
this.messaging = new Messaging(customerId, apiKey, restEndpoint, timeout, useragent);
21-
this.score = new ScoreClient(this.rest.requestWrapper, customerId, apiKey, detectEndpoint, timeout, userAgent);
21+
this.score = new ScoreClient(customerId, apiKey, detectEndpoint, timeout, useragent);
2222
}
2323
};

0 commit comments

Comments
 (0)