Socket
Socket
Sign inDemoInstall

immediate-chunk-store

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immediate-chunk-store - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

7

index.js

@@ -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 @@ }

4

package.json
{
"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": {

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