You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

multi-rest

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-rest - npm Package Compare versions

Comparing version

to
1.4.2

6

func/driver.js

@@ -24,3 +24,3 @@ "use strict";

if (path)
s3Put(s3, options.driver.bucketName, path, path, null, function(err, done){
s3Put(s3, options.driver.bucketName, path, path, mime.lookup(path), function(err, done){
if (err) return callback(err, null)

@@ -80,5 +80,5 @@ if (done)

function s3Put(s3, bucketName, key, file, type, callback){
let params = {Bucket: bucketName, Key: key, ContentType: type || mime.lookup(file), Body: fs.createReadStream(file)};
let params = {Bucket: bucketName, Key: key, ContentType: type, Body: fs.createReadStream(file)};
s3.putObject(params, function(err, data) {
if (err) return callback({code: "InternalError", messege: "Error happen while uploading."}, null)
if (err) return callback(err, null)
if (data) return callback(null, true);

@@ -85,0 +85,0 @@ });

{
"name": "multi-rest",
"version": "1.4.1",
"version": "1.4.2",
"description": "A middleware to handle multi-part request for restify",

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