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 1.0.23 to 1.0.24

nodes/dtmf.html

8

nodes/config.js

@@ -7,3 +7,2 @@ module.exports = function(RED) {

WazoWebSocketClient.eventLists.push('stt');
WazoWebSocketClient.eventLists.push('queue_log');

@@ -19,4 +18,9 @@ WazoWebSocketClient.eventLists.push('queue_caller_abandon');

WazoWebSocketClient.eventLists.push('queue_member_status');
WazoWebSocketClient.eventLists.push('line_status_updated');
WazoWebSocketClient.eventLists.push('stt');
WazoWebSocketClient.eventLists.push('user_created');
WazoWebSocketClient.eventLists.push('user_deleted');
WazoWebSocketClient.eventLists.push('user_edited');
const agent = new https.Agent({

@@ -23,0 +27,0 @@ rejectUnauthorized: false

@@ -22,2 +22,3 @@ module.exports = function (RED) {

const body = msg.payload.body;
const header = msg.payload.header || 'application/json';
const url = `https://${node.conn.host}:${node.conn.port}/api/${node.serviceName}/${version}/${endpoint}`;

@@ -28,3 +29,3 @@

const token = await node.conn.authenticate();
const result = await apiRequest(url, method, token, query, body);
const result = await apiRequest(url, method, token, query, body, header);
msg.payload = result;

@@ -37,3 +38,3 @@ node.send(msg);

const apiRequest = (url, method, token, query, body) => {
const apiRequest = (url, method, token, query, body, header) => {
const options = {

@@ -43,3 +44,3 @@ method: method,

headers: {
'content-type': 'application/json',
'content-type': header,
'accept': 'application/json',

@@ -46,0 +47,0 @@ 'X-Auth-Token': token

{
"name": "node-red-contrib-wazo-platform",
"version": "1.0.23",
"version": "1.0.24",
"description": "Node Red module for the Wazo Platform API",

@@ -16,5 +16,5 @@ "main": "index.js",

"dependencies": {
"@wazo/sdk": "0.29.0",
"@wazo/sdk": "0.34.46",
"request": "^2.88.2",
"ws": "^7.2.1"
"ws": "^7.4.3"
},

@@ -36,2 +36,3 @@ "keywords": [

"config": "nodes/config.js",
"dtmf": "nodes/dtmf.js",
"fetch_voicemail": "nodes/fetch_voicemail.js",

@@ -38,0 +39,0 @@ "hangup": "nodes/hangup.js",

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