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

@flowfuse/nr-assistant

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flowfuse/nr-assistant - npm Package Compare versions

Comparing version 0.1.2-b3dc6d0-202407160719.0 to 0.1.2

20

index.js

@@ -66,7 +66,19 @@ module.exports = (RED) => {

}).catch((error) => {
const errorData = { status: 'error', message: 'Request to FlowFuse Assistant was unsuccessful', body: error.response?.body }
let body = error.response?.body
if (typeof body === 'string') {
try {
body = JSON.parse(body)
} catch (e) {
// ignore
}
}
let message = 'FlowFuse Assistant request was unsuccessful'
const errorData = { status: 'error', message, body }
const errorCode = error.response?.statusCode || 500
res.status(errorCode).json({ status: 'error', message: errorData })
console.warn('nr-assistant error:', error)
RED.log.warn('FlowFuse Assistant request was unsuccessful')
res.status(errorCode).json(errorData)
RED.log.trace('nr-assistant error:', error)
if (body && typeof body === 'object' && body.error) {
message = `${message}: ${body.error}`
}
RED.log.warn(message)
})

@@ -73,0 +85,0 @@ })

2

package.json
{
"name": "@flowfuse/nr-assistant",
"version": "0.1.2-b3dc6d0-202407160719.0",
"version": "0.1.2",
"description": "FlowFuse Node-RED assistant plugin",

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

@@ -28,3 +28,3 @@ # FlowFuse Node-RED Assistant

"assistant": {
"enabled": true
"enabled": true,
"url": "https://", // URL of the AI service

@@ -31,0 +31,0 @@ "token": "", // API token for the AI service

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