From 1cdf6b2b72da7fa08a1892eeee1ddedbd45c1e3a Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Fri, 29 Mar 2019 12:01:34 +0100 Subject: [PATCH 1/2] Send os to builder compute With arduino-create-agent 1.1.82 the info command return the operating system in which the agent is installed. We then send it to builder-api boards compute to obtain the urls of the required tools for an upload. This will allow create-agent in the future to be more simple and to obtain the urls from builder-api rather than from the parsing of the (multiple) package_index --- src/daemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon.js b/src/daemon.js index 4e4c508b..343dd863 100644 --- a/src/daemon.js +++ b/src/daemon.js @@ -119,7 +119,7 @@ export default class Daemon { // Fetch command line for the board fetch(`${this.BOARDS_URL}/${target.board}/compute`, { method: 'POST', - body: JSON.stringify({ action: 'upload', verbose }) + body: JSON.stringify({ action: 'upload', verbose, os: this.agentInfo.os }) }) .then(result => result.json()) .then(uploadCommandInfo => { From bf89dbc3653c5160e97771211d9584e846b7ae34 Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Fri, 29 Mar 2019 12:01:57 +0100 Subject: [PATCH 2/2] 2.1.11 --- 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 3574eaf4..1d3b8913 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.1.10", + "version": "2.1.11", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 07f8713a..2a78beff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.1.10", + "version": "2.1.11", "description": "JS module providing discovery of the Arduino Create Plugin and communication with it", "main": "lib/index.js", "module": "es/index.js",