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

fs-blob-store

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-blob-store - npm Package Compare versions

Comparing version 3.0.2 to 4.0.0

10

index.js

@@ -20,3 +20,3 @@ var fs = require('fs')

var Writer = function(dir, algo, init) {
this.hash = null
this.key = null
this.length = 0

@@ -38,3 +38,3 @@ this.destroyed = false

var self = this
var hash = this.hash = this._digest.digest('hex')
var hash = this.key = this._digest.digest('hex')
var dir = path.join(this._directory, hash.slice(0, 2))

@@ -125,7 +125,7 @@

that.createReadStream = function(opts) {
return fs.createReadStream(toPath(dir, opts.hash))
return fs.createReadStream(toPath(dir, opts.key))
}
that.exists = function(opts, cb) {
fs.stat(toPath(dir, opts.hash), function(err, stat) {
fs.stat(toPath(dir, opts.key), function(err, stat) {
if (err && err.code === 'ENOENT') return cb(null, false)

@@ -139,3 +139,3 @@ if (err) return cb(err)

if (!cb) cb = noop
fs.unlink(toPath(dir, opts.hash), function(err) {
fs.unlink(toPath(dir, opts.key), function(err) {
if (err && err.code === 'ENOENT') return cb(null, false)

@@ -142,0 +142,0 @@ if (err) return cb(err)

{
"name": "fs-blob-store",
"version": "3.0.2",
"version": "4.0.0",
"description": "Streamable content addressable blob object store that is streams2 and implements the blob store interface on top of the fs module",

@@ -12,3 +12,3 @@ "main": "index.js",

"devDependencies": {
"abstract-blob-store": "^1.1.1",
"abstract-blob-store": "^2.0.1",
"concat-stream": "^1.4.6",

@@ -15,0 +15,0 @@ "rimraf": "^2.2.8",

# fs-blob-store
Streamable content addressable blob object store that is streams2 and implements the blob store interface on top of the fs module.
Streamable content addressable [blob](http://en.wikipedia.org/wiki/Binary_large_object) object store that is streams2 and implements the blob store interface on top of the fs module.

@@ -5,0 +5,0 @@ Conforms to the [abstract-blob-store](https://github.com/maxogden/abstract-blob-store) API and passes it's test suite.

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