immediate-chunk-store
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -12,7 +12,5 @@ module.exports = ImmediateStore | ||
this.mem = [] | ||
this.closed = false | ||
} | ||
ImmediateStore.prototype.put = function (index, buf, cb) { | ||
if (this.closed) return nextTick(cb, new Error('Storage is closed')) | ||
var self = this | ||
@@ -28,3 +26,2 @@ self.mem[index] = buf | ||
if (typeof opts === 'function') return this.get(index, null, opts) | ||
if (this.closed) return nextTick(cb, new Error('Storage is closed')) | ||
@@ -41,4 +38,2 @@ var start = (opts && opts.offset) || 0 | ||
ImmediateStore.prototype.close = function (cb) { | ||
if (this.closed) return nextTick(cb, new Error('Storage is closed')) | ||
this.closed = true | ||
this.store.close(cb) | ||
@@ -48,4 +43,2 @@ } | ||
ImmediateStore.prototype.destroy = function (cb) { | ||
if (this.closed) return nextTick(cb, new Error('Storage is closed')) | ||
this.closed = true | ||
this.store.destroy(cb) | ||
@@ -52,0 +45,0 @@ } |
{ | ||
"name": "immediate-chunk-store", | ||
"description": "Immediate put/get for abstract-chunk-store compliant stores", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"author": { | ||
@@ -35,3 +35,3 @@ "name": "Feross Aboukhadijeh", | ||
"type": "git", | ||
"url": "https://github.com/feross/immediate-chunk-store.git" | ||
"url": "git://github.com/immediate-chunk-store/torrent-piece.git" | ||
}, | ||
@@ -38,0 +38,0 @@ "scripts": { |
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
5963
78