Skip to content

Commit

Permalink
Send NR version
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Nov 15, 2024
1 parent d0cc093 commit a3d2d89
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,14 @@ class Agent {
}
if (this.launcher) {
const { modules } = await this.launcher.readPackage()
state.nodeRed = modules['node-red']
if (module['node-red'] != 'latest') {

Check failure on line 266 in lib/agent.js

View workflow job for this annotation

GitHub Actions / build (18)

Expected '!==' and instead saw '!='
state.nodeRedVersion = modules['node-red']
} else {
const nrPackPath = path.join(this.launcher.projectDir, 'node_modules/node-red/package.json')
const content = await fs.readFile(nrPackPath)
const packJSON = JSON.parse(content)
state.nodeRedVersion = packJSON.version
}
}
if (this.currentMode === 'developer' && this.editorToken && this.editorAffinity) {
state.affinity = this.editorAffinity
Expand Down

0 comments on commit a3d2d89

Please sign in to comment.