diff --git a/package-lock.json b/package-lock.json index c5ef32a..dbc4bbc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.4.4", + "version": "2.4.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 047a15b..325a4bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.4.4", + "version": "2.4.5", "description": "JS module providing discovery of the Arduino Create Plugin and communication with it", "main": "lib/index.js", "module": "es/index.js", diff --git a/src/daemon.js b/src/daemon.js index 0407f06..c448726 100644 --- a/src/daemon.js +++ b/src/daemon.js @@ -133,7 +133,7 @@ export default class Daemon { const projectNameIndex = uploadCommandInfo.commandline.indexOf('{build.project_name}'); let ext = uploadCommandInfo.commandline.substring(projectNameIndex + 21, projectNameIndex + 24); const data = compilationResult[ext] || compilationResult.bin; - if (!ext || !compilationResult[ext]) { + if (!ext || !data) { console.log('we received a faulty ext property, defaulting to .bin'); ext = 'bin'; }