Closed kenperkins closed 10 years ago
I don't think that was standardized in the spec yet when I coded the first version of this, so I just went with an appropriate sounding event name that matched what had happened. Then I was stuck using the "uploaded" event for backwards compatibility.
I'm not adverse to changing it.
:+1:
maybe emit both finish
and uploaded
for backwards compatibility
I have published version 1.0.2 which now emits a "finish" event in addition to the "uploaded" event. This will adhere to the spec while retaining backwards compatibility.
The writeable stream spec on node.js docs state that a writeable stream should emit
finish
and readable should emitend
. Ins3-upload-stream
you emituploaded
, but don't appear to usefinish
at all.Can you enlighten me a bit on the motivations here?