Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-wazo-platform

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-wazo-platform - npm Package Compare versions

Comparing version 0.0.23 to 0.0.24

6

nodes/auth.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc