Replace flatmap with reduce to preserve compatibility with older versions of node
Replace flatmap with reduce to preserve compatibility with older versions of node

ar90n/serverless-s3-local,ar90n/serverless-s3-local,ar90n/serverless-s3-local