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

@flowfuse/nr-project-nodes

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flowfuse/nr-project-nodes - npm Package Compare versions

Comparing version 0.6.5-5b6b1db-202406041411.0 to 0.6.5-8fb4a4d-202406141120.0

lib/utils.js

15

nodes/project-link.js

@@ -11,5 +11,6 @@ module.exports = function (RED) {

const crypto = require('crypto')
const got = require('got')
const { default: GOT } = require('got')
const MQTT = require('mqtt')
const urlModule = require('url')
const utils = require('../lib/utils.js')

@@ -635,2 +636,10 @@ // Constants

parsedURL.hostname = newURL.hostname
// wsOptions.agent is expected to be an HTTP or HTTPS agent based on the request protocol
if (process.env.all_proxy || process.env.http_proxy || process.env.https_proxy) {
options.wsOptions = {
agent: utils.getWSProxyAgent(brokerURL)
}
}
client = MQTT.connect(parsedURL, options)

@@ -1061,2 +1070,6 @@ clients.push(client) // add to clients array for containment and auto cleanup of multiple clients

const got = GOT.extend({
agent: utils.getHTTPProxyAgent(RED.settings.flowforge.forgeURL, { timeout: 4000 })
})
// Endpoint for querying list of projects in node UI

@@ -1063,0 +1076,0 @@ RED.httpAdmin.get('/nr-project-link/projects', RED.auth.needsPermission('flows.write'), async function (_req, res) {

21

package.json
{
"name": "@flowfuse/nr-project-nodes",
"version": "0.6.5-5b6b1db-202406041411.0",
"version": "0.6.5-8fb4a4d-202406141120.0",
"description": "A collection of Node-RED nodes for easy communication between Node-RED instances running in the FlowFuse platform",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint -c .eslintrc --ext js,html nodes/**/*.js",
"lint:fix": "eslint -c .eslintrc --ext js,html nodes/**/*.js --fix"
"test": "mocha test/unit/**/*_spec.js --timeout 5000",
"lint": "eslint -c .eslintrc --ext js,html nodes/**/*.js lib/**/*.js test/**/*.js",
"lint:fix": "eslint -c .eslintrc --ext js,html nodes/**/*.js lib/**/*.js test/**/*.js --fix"
},

@@ -23,3 +23,9 @@ "repository": {

"eslint-config-standard": "^17.0.0",
"eslint-plugin-html": "7.1.0"
"eslint-plugin-html": "7.1.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"mocha": "^10.4.0",
"mocha-cli": "^1.0.1",
"node-red": "^3.1.9",
"node-red-node-test-helper": "^0.3.4",
"sinon": "^18.0.0"
},

@@ -39,4 +45,7 @@ "keywords": [

"got": "^11.8.6",
"mqtt": "^4.3.7"
"http-proxy-agent": "^7.0.2",
"https-proxy-agent": "^7.0.4",
"mqtt": "^4.3.7",
"proxy-from-env": "^1.1.0"
}
}

Sorry, the diff of this file is not supported yet

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