particle-iot / particle-usb

A library for accessing Particle USB devices
Apache License 2.0
5 stars 1 forks source link

Make firmware update timeout configurable #27

Closed sergeuz closed 4 years ago

sergeuz commented 4 years ago

This PR adds a configurable timeout for Device.updateFirmware(). The default request timeout of 30 seconds isn't long enough for an NCP firmware update to complete successfully.

Tested via device-os-flash.

busticated commented 4 years ago

ah

Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'

i think i hit this over in #website - i think it's just a matter of updating the dependencies.

edit: yeah - it was this. you need:

@babel/core@7.9.6 (or greater) @babel/preset-env@7.9.6 (or greater)

run

npm list @babel/core to find all the sub-dependencies.

sergeuz commented 4 years ago

@busticated I updated all the dev dependencies and babel's runtime separately. It seems to build fine now. Thanks!