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

s3-blob-store

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3-blob-store - npm Package Compare versions

Comparing version 1.2.3 to 2.0.1

History.md

26

index.js

@@ -5,3 +5,3 @@

var mime = require('mime-types');
var through = require('through2');
var uploadStream = require('s3-stream-upload');

@@ -63,18 +63,12 @@ function S3BlobStore(opts) {

var params = this.uploadParams(opts)
var proxy = through();
proxy.pause();
params.Body = proxy;
// var s3opts = {partSize: 10 * 1024 * 1024, queueSize: 1};
this.s3.upload(params, s3opts, function(err, data) {
if (err) {
debug('got err %j', err);
proxy.emit('error', err)
return done && done(err)
}
debug('uploaded %j', data);
var out = uploadStream(this.s3, params)
out.on('error', function (err) {
debug('got err %j', err);
return done && done(err)
})
out.on('finish', function () {
debug('uploaded');
done && done(null, { key: params.Key })
});
return proxy;
})
return out;
}

@@ -81,0 +75,0 @@

@@ -10,3 +10,3 @@ {

],
"version": "1.2.3",
"version": "2.0.1",
"repository": {

@@ -24,3 +24,3 @@ "type": "git",

"s3-download-stream": "0.0.5",
"through2": "^0.6.1"
"s3-stream-upload": "^2.0.1"
},

@@ -27,0 +27,0 @@ "devDependencies": {

@@ -33,4 +33,4 @@

var writer = store.createWriteStream({ key: 'test5.txt' });
writer.push("abc");
writer.push(null);
writer.write("abc");
writer.end();

@@ -41,5 +41,5 @@ writer.on('error', function(ee){

writer.on('end', function(){
writer.on('finish', function(){
t.ok(true);
});
});
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