Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openfin/multer-s3

Package Overview
Dependencies
Maintainers
13
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfin/multer-s3 - npm Package Compare versions

Comparing version 2.0.1 to 2.2.0

1

build/index.d.ts

@@ -95,2 +95,3 @@ /// <reference types="node" />

streamTransformers: TransformFuncs[];
onUpload: (req: express.Request, storage: S3Storage, file: S3File) => any;
constructor(opts: S3StorageOpts);

@@ -97,0 +98,0 @@ _handleFile(req: express.Request, file: Express.Multer.File, cb: (error: Error, data?: any) => void): Promise<void>;

@@ -183,2 +183,22 @@ "use strict";

return reject(err);
if (this.onUpload) {
const fileData = {
bucket: args.bucket,
acl: args.acl,
cacheControl: args.cacheControl,
contentDisposition: args.contentDisposition,
contentType: args.contentType,
key: args.key,
metadata: args.metadata,
serverSideEncryption: args.serverSideEncryption,
serverSideEncryptionKMSKeyId: args.serverSideEncryptionKMSKeyId,
serverSideEncryptionCustomerAlgorithm: args.serverSideEncryptionCustomerAlgorithm,
serverSideEncryptionCustomerKey: args.serverSideEncryptionCustomerKey,
serverSideEncryptionCustomerKeyMD5: args.serverSideEncryptionCustomerKeyMD5,
storageClass: args.storageClass,
location: data.Location,
etag: data.ETag
};
this.onUpload(req, this, Object.assign({}, file, fileData));
}
resolve(Object.assign({}, args, {

@@ -185,0 +205,0 @@ location: data.Location,

2

package.json
{
"name": "@openfin/multer-s3",
"version": "2.0.1",
"version": "2.2.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "build/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc