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

@flowfuse/nr-launcher

Package Overview
Dependencies
Maintainers
3
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flowfuse/nr-launcher - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1-086b7f8-202408010855.0

14

lib/context/FFContextStorage.js

@@ -90,3 +90,9 @@ const MemoryCache = require('./memoryCache')

const path = paginateUrl('cache', cursor, limit)
const response = await self.client.get(path, opts)
let response
try {
response = await self.client.get(path, opts)
} catch (err) {
console.error('Error populating cache ' + err.toString())
}
return response?.body

@@ -335,3 +341,7 @@ }

}
await self.client.post(path, opts)
try {
await self.client.post(path, opts)
} catch (err) {
console.error('Failed to write cache to backend ' + err.toString())
}
}

@@ -338,0 +348,0 @@ }

@@ -635,2 +635,27 @@ const fs = require('fs')

})
let stderrBuffer = ''
this.proc.stderr.on('data', (data) => {
// Do not assume `data` is a complete log record.
// Parse until newline
stderrBuffer = stderrBuffer + data
let linebreak = stderrBuffer.indexOf('\n')
while (linebreak > -1) {
const line = stderrBuffer.substring(0, linebreak)
if (line.length > 0) {
if (line[0] === '{' && line[line.length - 1] === '}') {
// In case something console.log's directly, we can't assume the line is JSON
// from our logger
try {
this.logBuffer.add(JSON.parse(line))
} catch (err) {
this.logBuffer.add({ msg: line })
}
} else {
this.logBuffer.add({ msg: line })
}
}
stderrBuffer = stderrBuffer.substring(linebreak + 1)
linebreak = stderrBuffer.indexOf('\n')
}
})
}

@@ -637,0 +662,0 @@

@@ -0,1 +1,2 @@

const path = require('path')
function getSettingsFile (settings) {

@@ -159,2 +160,8 @@ const projectSettings = {

// all current drivers add settings.rootDir and settings.userDir
if (settings.rootDir) {
const uibRoot = path.join(settings.rootDir, settings.userDir, 'storage', 'uibuilder').split(path.sep).join(path.posix.sep)
projectSettings.uibuilder = { uibRoot }
}
let contextStorage = ''

@@ -355,2 +362,3 @@ if (settings.fileStore?.url) {

httpAdminCookieOptions: ${JSON.stringify(httpAdminCookieOptions)},
${projectSettings.uibuilder ? 'uibuilder: ' + JSON.stringify(projectSettings.uibuilder) : ''}
}

@@ -357,0 +365,0 @@ `

148

package.json
{
"name": "@flowfuse/nr-launcher",
"version": "2.6.0",
"description": "FlowFuse Launcher for running Node-RED",
"exports": {
"./auditLogger": "./lib/auditLogger/index.js",
"./adminAuth": "./lib/auth/adminAuth.js",
"./authMiddleware": "./lib/auth/httpAuthMiddleware.js",
"./storage": "./lib/storage/index.js",
"./context": "./lib/context/index.js"
},
"node-red": {
"plugins": {
"flowfuse-auth": "lib/auth/httpAuthPlugin.js",
"flowfuse-library": "lib/storage/libraryPlugin.js",
"forge-light": "lib/theme/forge-light/forge-light.js",
"forge-dark": "lib/theme/forge-dark/forge-dark.js",
"forge-resources": "lib/resources/resourcePlugin.js"
}
},
"scripts": {
"test": "mocha 'test/unit/**/*_spec.js'",
"lint": "eslint -c .eslintrc *.js lib/*.js test/**/*.js",
"lint:fix": "eslint -c .eslintrc *.js lib/*.js test/**/*.js --fix",
"build-theme": "node lib/theme/scripts/build.js "
},
"keywords": [
"FlowFuse"
],
"bin": {
"flowforge-node-red": "./index.js",
"flowfuse-node-red": "./index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/FlowFuse/nr-launcher.git"
},
"author": {
"name": "FlowFuse Inc."
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/FlowFuse/nr-launcher/issues"
},
"homepage": "https://github.com/FlowFuse/nr-launcher#readme",
"dependencies": {
"@flowfuse/nr-assistant": "^0.1.0",
"@flowfuse/nr-file-nodes": "^0.0.5",
"@flowfuse/nr-project-nodes": "^0.6.2",
"@node-red/util": "^3.1.0",
"body-parser": "^1.20.2",
"command-line-args": "^5.2.1",
"express": "^4.18.2",
"express-session": "^1.18.0",
"got": "^11.8.6",
"json-stringify-safe": "5.0.1",
"memorystore": "^1.6.7",
"oauth": "^0.9.15",
"parse-prometheus-text-format": "^1.1.1",
"passport": "0.6.0",
"passport-oauth2": "^1.6.1",
"prom-client": "^15.0.0",
"ws": "^8.7.0"
},
"devDependencies": {
"@flowforge/file-server": "git://github.com/FlowFuse/file-server.git",
"eslint": "^8.49.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"mocha": "^10.2.0",
"sass": "1.66.1",
"should": "^13.2.3",
"sinon": "^17.0.1",
"sqlite3": "^5.1.6",
"yaml": "^2.1.3"
"name": "@flowfuse/nr-launcher",
"version": "2.6.1-086b7f8-202408010855.0",
"description": "FlowFuse Launcher for running Node-RED",
"exports": {
"./auditLogger": "./lib/auditLogger/index.js",
"./adminAuth": "./lib/auth/adminAuth.js",
"./authMiddleware": "./lib/auth/httpAuthMiddleware.js",
"./storage": "./lib/storage/index.js",
"./context": "./lib/context/index.js"
},
"node-red": {
"plugins": {
"flowfuse-auth": "lib/auth/httpAuthPlugin.js",
"flowfuse-library": "lib/storage/libraryPlugin.js",
"forge-light": "lib/theme/forge-light/forge-light.js",
"forge-dark": "lib/theme/forge-dark/forge-dark.js",
"forge-resources": "lib/resources/resourcePlugin.js"
}
},
"scripts": {
"test": "mocha 'test/unit/**/*_spec.js'",
"lint": "eslint -c .eslintrc *.js lib/*.js test/**/*.js",
"lint:fix": "eslint -c .eslintrc *.js lib/*.js test/**/*.js --fix",
"build-theme": "node lib/theme/scripts/build.js "
},
"keywords": [
"FlowFuse"
],
"bin": {
"flowforge-node-red": "./index.js",
"flowfuse-node-red": "./index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/FlowFuse/nr-launcher.git"
},
"author": {
"name": "FlowFuse Inc."
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/FlowFuse/nr-launcher/issues"
},
"homepage": "https://github.com/FlowFuse/nr-launcher#readme",
"dependencies": {
"@flowfuse/nr-assistant": "nightly",
"@flowfuse/nr-file-nodes": "nightly",
"@flowfuse/nr-project-nodes": "nightly",
"@node-red/util": "^3.1.0",
"body-parser": "^1.20.2",
"command-line-args": "^5.2.1",
"express": "^4.18.2",
"express-session": "^1.18.0",
"got": "^11.8.6",
"json-stringify-safe": "5.0.1",
"memorystore": "^1.6.7",
"oauth": "^0.9.15",
"parse-prometheus-text-format": "^1.1.1",
"passport": "0.6.0",
"passport-oauth2": "^1.6.1",
"prom-client": "^15.0.0",
"ws": "^8.7.0"
},
"devDependencies": {
"@flowforge/file-server": "git://github.com/FlowFuse/file-server.git",
"eslint": "^8.49.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"mocha": "^10.2.0",
"sass": "1.66.1",
"should": "^13.2.3",
"sinon": "^17.0.1",
"sqlite3": "^5.1.6",
"yaml": "^2.1.3"
}
}
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