@openfin/multer-s3
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -37,3 +37,3 @@ /// <reference types="node" /> | ||
serverSideEncryptionCustomerAlgorithm?: string | valuerFunc; | ||
onUpload?: (file: S3File) => void; | ||
onUpload?: (req: Express.Request, storage: S3Storage, file: S3File) => void; | ||
detectContentType?: boolean; | ||
@@ -84,3 +84,3 @@ } | ||
s3: AWS.S3; | ||
onUpload: (s3File) => void; | ||
onUpload: (req: Express.Request, storage: S3Storage, file: S3File) => void; | ||
detectContentType: boolean; | ||
@@ -87,0 +87,0 @@ constructor(opts: S3StorageOpts); |
@@ -17,3 +17,3 @@ "use strict"; | ||
serverSideEncryptionCustomerKeyMD5: () => Promise.resolve(null), | ||
onUpload: function () { }, | ||
onUpload: function (req, storage, file) { }, | ||
detectContentType: false | ||
@@ -285,3 +285,3 @@ }; | ||
}; | ||
this.onUpload(Object.assign({}, file, fileData)); | ||
this.onUpload(req, this, Object.assign({}, file, fileData)); | ||
cb(null, fileData); | ||
@@ -288,0 +288,0 @@ }); |
{ | ||
"name": "@openfin/multer-s3", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39668