@yousolution/node-red-contrib-you-sap-service-layer 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/nodes/nextLink.js +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/nodes/nextLink.js
CHANGED
|
@@ -6,6 +6,20 @@ module.exports = function (RED) {
|
|
|
6
6
|
node.on('input', async (msg) => {
|
|
7
7
|
const nextLink = msg[config.nextLink];
|
|
8
8
|
|
|
9
|
+
if (nextLink) {
|
|
10
|
+
node.log('NextLink Check for SL');
|
|
11
|
+
if (nextLink.includes('/b1s/v2/')) {
|
|
12
|
+
msg.nextLink = nextLink.replace('/b1s/v2/', "").trim();
|
|
13
|
+
node.log('NextLink Replace SL SetUp /b1s/v2/');
|
|
14
|
+
} else if (nextLink.includes('/b1s/v1/')) {
|
|
15
|
+
msg.nextLink = nextLink.replace('/b1s/v1/', "").trim();
|
|
16
|
+
node.log('NextLink Replace SL SetUp /b1s/v1/');
|
|
17
|
+
} else {
|
|
18
|
+
node.log('NextLink OK for SL');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
9
23
|
if (!nextLink) {
|
|
10
24
|
node.send([null, msg]);
|
|
11
25
|
return;
|