var partSizeThreshold = 6242880;
// Set the maximum amount of data that we will keep in memory before flushing it to S3 as a part
// of the multipart upload
ws.maxPartSize = function (partSize) {
if (partSize < 5242880)
partSize = 5242880;
partSizeThreshold = partSize;
return ws;
};
It looks like a typo:
If it's intentional, maybe a comment saying why?