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

@openfin/multer-s3

Package Overview
Dependencies
Maintainers
5
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 0.1.12 to 1.0.0

16

build/index.d.ts
/// <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",

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