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

cuckoo-filter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cuckoo-filter - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

4

package.json
{
"name": "cuckoo-filter",
"version": "1.1.2",
"version": "1.1.3",
"description": "Cuckoo Filter: Better Than Bloom",

@@ -17,3 +17,3 @@ "main": "src/index.js",

"dependencies": {
"cbor-js": "^0.1.0",
"borc": "2.0.4",
"fnv32": "0.0.1"

@@ -20,0 +20,0 @@ },

'use strict'
const cbor = require('cbor-js')
const cbor = require('borc')
const Bucket = require('./bucket')

@@ -235,9 +235,9 @@ const Fingerprint = require('./fingerprint')

}
toCBOR(){
toCBOR () {
return Buffer.from(cbor.encode(this.toJSON()))
}
static fromCBOR(buf){
let obj = cbor.decode(buf.buffer)
static fromCBOR (buf) {
let obj = cbor.decodeFirst(buf)
return CuckooFilter.fromJSON(obj)
}
}
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