Skip to content

Commit 54b2fb9

Browse files
committed
Release Version 11.6.1
1 parent 493d0ab commit 54b2fb9

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
> **LoginRadius Node JS SDK Change Log** provides information regarding what has changed, more specifically what changes, improvements and bug fix has been made to the SDK. For more details please refer to the [LoginRadius API Documention](https://docs.loginradius.com/api/v2/deployment/sdk-libraries/node-js-library)
33
44

5+
# Version 11.6.1
6+
7+
Release on **October 25, 2024**
8+
9+
- We have introduced support for the "X-PreventWebhook" header in the SDK. When the PreventWebhook configuration is set to true, this feature prevents the specific API from triggering webhooks, providing enhanced flexibility to address specific customer use cases.
10+
511
# Version 11.6.0
612

713
Release on **July 03, 2024**

demo/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodeJsDemo",
3-
"version": "11.5.0-demo",
3+
"version": "11.6.1-demo",
44
"keywords": [
55
"util",
66
"functional",
@@ -13,6 +13,6 @@
1313
"dependencies": {
1414
"body-parser": "^1.18.3",
1515
"express": "^4.16.3",
16-
"loginradius-sdk": "11.6.0"
16+
"loginradius-sdk": "11.6.1"
1717
}
1818
}

loginradius-sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"lint": "prettier --check sdk/**/*.js && eslint sdk/**/*.js",
66
"lint:fix": "prettier --write sdk/**/*.js && eslint sdk/**/*.js --fix"
77
},
8-
"version": "11.6.0",
8+
"version": "11.6.1",
99
"description": "A LoginRadius SDK for node.js",
1010
"homepage": "https://www.loginradius.com",
1111
"main": "./sdk/util/lr.js",

loginradius-sdk/sdk/util/lr.js

+6
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ module.exports = function (config = {}) {
7373
'X-LoginRadius-apiKey': config.apiKey,
7474
'X-LoginRadius-apiSecret': config.apiSecret
7575
};
76+
if(config.PreventWebhook !=undefined && config.PreventWebhook != "" && config.PreventWebhook){
77+
Object.assign(headers, { 'X-PreventWebhook': true });
78+
}
79+
80+
81+
7682

7783
if (config.fieldsParam && config.fieldsValue) {
7884
var fieldsList;

0 commit comments

Comments
 (0)