Skip to content

Commit 7aa99a8

Browse files
author
Stefania
authored
Merge pull request #108 from arduino/os
Send os to builder compute
2 parents dc09a0a + bf89dbc commit 7aa99a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arduino-create-agent-js-client",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"description": "JS module providing discovery of the Arduino Create Plugin and communication with it",
55
"main": "lib/index.js",
66
"module": "es/index.js",

src/daemon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default class Daemon {
119119
// Fetch command line for the board
120120
fetch(`${this.BOARDS_URL}/${target.board}/compute`, {
121121
method: 'POST',
122-
body: JSON.stringify({ action: 'upload', verbose })
122+
body: JSON.stringify({ action: 'upload', verbose, os: this.agentInfo.os })
123123
})
124124
.then(result => result.json())
125125
.then(uploadCommandInfo => {

0 commit comments

Comments
 (0)