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

knox

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knox - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

0

lib/auth.js

@@ -0,0 +0,0 @@

23

lib/client.js

@@ -12,3 +12,4 @@

var utils = require('./utils')
var Emitter = require('events').EventEmitter
, utils = require('./utils')
, auth = require('./auth')

@@ -37,3 +38,3 @@ , http = require('http')

req.on('response', function(res){ fn(null, res); });
req.on('error', function(err){ fn(err); });
req.on('error', fn);
}

@@ -183,2 +184,5 @@

var self = this;
var emitter = new Emitter;
var written = 0;
if ('function' == typeof headers) {

@@ -197,5 +201,16 @@ fn = headers;

var fileStream = fs.createReadStream(src);
self.putStream(fileStream, filename, headers, fn);
var stream = fs.createReadStream(src);
self.putStream(stream, filename, headers, fn);
stream.on('data', function(chunk){
written += chunk.length;
emitter.emit('progress', {
percent: written / stat.size * 100 | 0,
total: stat.size,
written: written
});
});
});
return emitter;
};

@@ -202,0 +217,0 @@

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@ (The MIT License)

2

package.json

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

"keywords": ["aws", "amazon", "s3"],
"version": "0.1.0",
"version": "0.2.0",
"author": "TJ Holowaychuk <tj@learnboost.com>",

@@ -8,0 +8,0 @@ "contributors": [

@@ -0,0 +0,0 @@ # knox

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