@openfin/multer-s3
Advanced tools
Comparing version 0.1.12 to 1.0.0
/// <reference types="node" /> | ||
/// <reference types="express-serve-static-core" /> | ||
/// <reference types="multer" /> | ||
/// <reference types="express" /> | ||
import * as fs from "fs"; | ||
import * as Stream from "stream"; | ||
import * as express from "express"; | ||
import * as aws from "aws-sdk"; | ||
@@ -17,3 +17,3 @@ declare global { | ||
} | ||
export declare type valuerFunc = (file: Express.Multer.File, storage: S3Storage, req: Express.Request) => Promise<string | Buffer | null | { | ||
export declare type valuerFunc = (file: Express.Multer.File, storage: S3Storage, req: express.Request) => Promise<string | Buffer | null | { | ||
[key: string]: string; | ||
@@ -38,3 +38,3 @@ }>; | ||
serverSideEncryptionCustomerAlgorithm?: string | valuerFunc; | ||
onUpload?: (req: Express.Request, storage: S3Storage, file: S3File) => any; | ||
onUpload?: (req: express.Request, storage: S3Storage, file: S3File) => any; | ||
detectContentType?: boolean; | ||
@@ -65,3 +65,3 @@ } | ||
} | ||
export declare type multerStorageFns = (req: Express.Request, file: Express.Multer.File, cb: (err: Error | null, S3File) => void) => void; | ||
export declare type multerStorageFns = (req: express.Request, file: Express.Multer.File, cb: (err: Error | null, S3File) => void) => void; | ||
export interface MulterStorage { | ||
@@ -86,7 +86,7 @@ _removeFile: multerStorageFns; | ||
s3: AWS.S3; | ||
onUpload: (req: Express.Request, storage: S3Storage, file: S3File) => any; | ||
onUpload: (req: express.Request, storage: S3Storage, file: S3File) => any; | ||
detectContentType: boolean; | ||
constructor(opts: S3StorageOpts); | ||
_removeFile(req: Express.Request, file: S3File, cb: (error: Error, data: any) => void): void; | ||
_handleFile(req: Express.Request, file: S3File, cb: (error: Error, data?: any) => void): void; | ||
_removeFile(req: express.Request, file: S3File, cb: (error: Error, data: any) => void): void; | ||
_handleFile(req: express.Request, file: S3File, cb: (error: Error, data?: any) => void): void; | ||
} |
{ | ||
"name": "@openfin/multer-s3", | ||
"version": "0.1.12", | ||
"version": "1.0.0", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
39650