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

ceph-s3

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ceph-s3 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

19

lib/client.js
'use strict';
var _ = require('lodash-node');
var _ = require('lodash');
var users = require('./users.js');

@@ -63,4 +63,17 @@ var knox = require('knox');

*/
S3Client.prototype.getFile = function (filename, callback) {
this.s3.getFile(filename, callback);
S3Client.prototype.getFile = function (filename, headers, callback) {
if (typeof headers === 'function') {
callback = headers;
headers = {};
}
headers = _.pick(headers, [
'range',
'if-modified-since',
'if-unmodified-since',
'if-match',
'if-none-match'
]);
this.s3.getFile(filename, headers, callback);
};

@@ -67,0 +80,0 @@

2

lib/users.js
'use strict';
var _ = require('lodash-node');
var _ = require('lodash');

@@ -5,0 +5,0 @@ var configuration;

{
"name": "ceph-s3",
"version": "1.0.0",
"version": "1.0.1",
"description": "Knox wrapper with logic to simply pass set of users via config file and be able to work with your custom internal S3 compatible API",

@@ -29,4 +29,4 @@ "main": "index.js",

"knox": "^0.9.2",
"lodash-node": "^3.6.0"
"lodash": "^3.6.0"
}
}
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