Got: Progress Events with Promises?

Created on 19 Aug 2017  ยท  4Comments  ยท  Source: sindresorhus/got

got('todomvc.com')
    .on('downloadProgress', progress => {
        // Report download progress
    })
    .on('uploadProgress', progress => {
        // Report upload progress
    })
    .then(response => {
        // Done
    });

Copy pasted from docs straight into my electron app:

TypeError: got(...).on is not a function

Am I missing something or was this functionality removed?

Most helpful comment

Ok thank you!

On Aug 19, 2017 5:09 PM, "Alexander Tesfamichael" notifications@github.com
wrote:

Not released yes @framerate https://github.com/framerate ๐Ÿ˜‰ .
You need to take a look at the latest released README. Either through the tagged
commit https://github.com/sindresorhus/got/tree/v7.1.0#readme or npm
page https://www.npmjs.com/package/got.

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sindresorhus/got/issues/361#issuecomment-323547859,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEiM48nOomz4py6Yyfn2P1zI61Cvo9xks5sZ07vgaJpZM4O8b_e
.

All 4 comments

Not released yes @framerate ๐Ÿ˜‰ .
You need to take a look at the latest released README. Easiest to use the tagged commit or npm page.

Ok thank you!

On Aug 19, 2017 5:09 PM, "Alexander Tesfamichael" notifications@github.com
wrote:

Not released yes @framerate https://github.com/framerate ๐Ÿ˜‰ .
You need to take a look at the latest released README. Either through the tagged
commit https://github.com/sindresorhus/got/tree/v7.1.0#readme or npm
page https://www.npmjs.com/package/got.

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sindresorhus/got/issues/361#issuecomment-323547859,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEiM48nOomz4py6Yyfn2P1zI61Cvo9xks5sZ07vgaJpZM4O8b_e
.

Any idea when will this feature be released?

366 just popped up too, @AlexTes, if you have any info on how we can help wrap up the latest release! Seems like people really want the feature! :)

Was this page helpful?
0 / 5 - 0 ratings