Skip to content

Commit 7bbe944

Browse files
authored
Use download servers to obtain the latest agent version (#563)
* Update download servers URL * Bump version
1 parent 4f77973 commit 7bbe944

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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.12.0",
3+
"version": "2.13.0",
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/socket-daemon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default class SocketDaemon extends Daemon {
163163
});
164164

165165
if (found) {
166-
return fetch('https://s3.amazonaws.com/arduino-create-static/agent-metadata/agent-version.json')
166+
return fetch('https://downloads.arduino.cc/agent-metadata/agent-version.json')
167167
.then(response => response.json().then(data => {
168168
if (this.agentInfo.version && (semVerCompare(this.agentInfo.version, data.Version) === 0 || this.agentInfo.version.indexOf('dev') !== -1 || this.agentInfo.version.indexOf('rc') !== -1)) {
169169
return this.agentInfo;

0 commit comments

Comments
 (0)