@flowfuse/nr-launcher
Advanced tools
Comparing version 2.6.1-fb5956f-202407081400.0 to 2.7.1-a1fcc4b-202408010913.0
@@ -0,1 +1,13 @@ | ||
#### 2.7.0: Release | ||
- Bump dependencies in preparation for release 2.7.0 (#270) @Steve-Mcl | ||
- Wrap unguarded HTTP requests in try/catch (#267) @hardillb | ||
- nr-launcher was not catching console.error output (#269) @hardillb | ||
- Bump tibdex/github-app-token from 1 to 2 (#236) @app/dependabot | ||
- Bump ws from 7.5.9 to 8.18.0 (#265) @app/dependabot | ||
- Bump ws from 8.14.1 to 8.17.1 (#251) @app/dependabot | ||
- Add support for UIBuilder using storage (#263) @hardillb | ||
- Update release-publish to nodejs 18 (#264) @hardillb | ||
- Bump JS-DevTools/npm-publish from 2 to 3 (#234) @app/dependabot | ||
#### 2.6.0: Release | ||
@@ -2,0 +14,0 @@ |
@@ -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 @@ ` |
{ | ||
"name": "@flowfuse/nr-launcher", | ||
"version": "2.6.1-fb5956f-202407081400.0", | ||
"version": "2.7.1-a1fcc4b-202408010913.0", | ||
"description": "FlowFuse Launcher for running Node-RED", | ||
@@ -5,0 +5,0 @@ "exports": { |
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
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
560065
3382