In v0.9.x, b2.downloadFileById() accepted a fileId parameter as a String or Number.However, progress reporting is still available by passing a callback function into the b2.method() that you're calling. Because we are no longer using the same promise library, this functionality has been removed. In v0.9.12, we added request progress reporting via the third parameter to then().Where previously, the request response data was the root object in the promise resolution ( res), this data now resides in res.data. The Promise resolution has a different data structure. ![]() However, there are a couple changes that will break your code and ruin your day. Upgrading from 0.9.x to 1.0.xįor this update, we've switched the back end HTTP request library from request to axios as it has better Promise and progress support built in. See the CHANGELOG for a history of updates. ![]() Const B2 = require ( 'backblaze-b2' ) const b2 = new B2 ( ) Changes
0 Comments
Leave a Reply. |