Comparing version 1.0.0 to 1.0.1
'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 @@ |
'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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7440
154
1
+ Addedlodash@^3.6.0
+ Addedlodash@3.10.1(transitive)
- Removedlodash-node@^3.6.0
- Removedlodash-node@3.10.2(transitive)