fs-blob-store
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -32,2 +32,3 @@ var mkdirp = require('mkdirp') | ||
BlobStore.prototype.createWriteStream = function(opts, cb) { | ||
if (typeof opts === 'string') opts = {key:opts} | ||
if (opts.name && !opts.key) opts.key = opts.name | ||
@@ -56,2 +57,3 @@ | ||
BlobStore.prototype.createReadStream = function(opts) { | ||
if (typeof opts === 'string') opts = {key:opts} | ||
var key = join(this.path, opts.key) | ||
@@ -62,2 +64,3 @@ return fs.createReadStream(key, opts) | ||
BlobStore.prototype.exists = function(opts, cb) { | ||
if (typeof opts === 'string') opts = {key:opts} | ||
var key = join(this.path, opts.key) | ||
@@ -71,2 +74,3 @@ fs.stat(key, function(err, stat) { | ||
BlobStore.prototype.remove = function(opts, cb) { | ||
if (typeof opts === 'string') opts = {key:opts} | ||
var key = join(this.path, opts.key) | ||
@@ -73,0 +77,0 @@ fs.unlink(key, function(err) { |
{ | ||
"name": "fs-blob-store", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "blob store that stores blobs on the local file system", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5383
85
0