node-red-contrib-wazo-platform
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -14,2 +14,3 @@ module.exports = function(RED) { | ||
this.port = n.port; | ||
this.expiration = n.expiration; | ||
this.refreshToken = n.refreshToken; | ||
@@ -30,3 +31,3 @@ this.insecure = true; | ||
try { | ||
const { ...result } = await this.client.auth.refreshToken(this.refreshToken); | ||
const { ...result } = await this.client.auth.refreshToken(this.refreshToken, null, this.expiration); | ||
this.client.setToken(result.token); | ||
@@ -67,3 +68,4 @@ this.client.setRefreshToken(this.refreshToken); | ||
username: req.body.username, | ||
password: req.body.password | ||
password: req.body.password, | ||
expiration: req.body.expiration | ||
}); | ||
@@ -70,0 +72,0 @@ |
module.exports = function (RED) { | ||
const { WazoWebSocketClient } = require('@wazo/sdk'); | ||
@@ -16,4 +17,8 @@ function event(n) { | ||
RED.httpAdmin.get('/wazo-platform/events', RED.auth.needsPermission('wazo.read'), async function(req, res) { | ||
res.json(WazoWebSocketClient.eventLists); | ||
}); | ||
RED.nodes.registerType("wazo event", event); | ||
} |
{ | ||
"name": "node-red-contrib-wazo-platform", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "Node Red module for the Wazo Platform API", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@wazo/sdk": "0.26.10", | ||
"@wazo/sdk": "0.26.12", | ||
"ws": "^7.2.1" | ||
@@ -19,0 +19,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
692
877649
+ Added@wazo/sdk@0.26.12(transitive)
+ Addedgoogle-libphonenumber@3.2.38(transitive)
- Removed@wazo/sdk@0.26.10(transitive)
- Removedgoogle-libphonenumber@3.2.39(transitive)
Updated@wazo/sdk@0.26.12