@flowfuse/nr-project-nodes
Advanced tools
Comparing version 0.6.5-b233d87-202406041413.0 to 0.7.0
@@ -0,1 +1,8 @@ | ||
### 0.7.0 | ||
- Proxy support (#81) @Steve-Mcl | ||
- Update build.yml to run tests and other node versions (#83) @Steve-Mcl | ||
- Bump actions/setup-node from 1 to 4 (#79) @dependabot | ||
- Bump actions/checkout from 1 to 4 (#75) @dependabot | ||
- Enable dependabot for github actions (#73) @ppawlowski | ||
### 0.6.4 | ||
@@ -2,0 +9,0 @@ |
@@ -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) { |
{ | ||
"name": "@flowfuse/nr-project-nodes", | ||
"version": "0.6.5-b233d87-202406041413.0", | ||
"version": "0.7.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
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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances 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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
123160
15
1577
1
5
9
76
11
+ Addedhttp-proxy-agent@^7.0.2
+ Addedhttps-proxy-agent@^7.0.4
+ Addedproxy-from-env@^1.1.0
+ Addedagent-base@7.1.3(transitive)
+ Addedhttp-proxy-agent@7.0.2(transitive)
+ Addedhttps-proxy-agent@7.0.6(transitive)
+ Addedproxy-from-env@1.1.0(transitive)