From bf04b8cd24d726b7d99b750c7161b902a44617ab Mon Sep 17 00:00:00 2001 From: Alberto Iannaccone Date: Thu, 25 Mar 2021 16:40:54 +0100 Subject: [PATCH 1/2] fix nano rp2040 --- src/daemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; } From 297c86ea727eb301ebcb191cc5c5c19f371df044 Mon Sep 17 00:00:00 2001 From: Alberto Iannaccone Date: Thu, 25 Mar 2021 16:45:10 +0100 Subject: [PATCH 2/2] 2.4.5 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",