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

toni

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toni - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

lib/toni.js

@@ -14,4 +14,3 @@ /*

exports.Toni = ( function () {
var log = console.log
, Bolgia = require( 'bolgia' )
var Bolgia = require( 'bolgia' )
, abs = Math.abs

@@ -21,3 +20,2 @@ , ceil = Math.ceil

, floor = Math.floor
, round = Math.round
, clone = Bolgia.clone

@@ -24,0 +22,0 @@ , improve = Bolgia.improve

{
"name": "toni"
, "version": "0.1.1"
, "version": "0.1.2"
, "description": "Toni, a simple and efficient bitmap implementation for integer sets, using bitwise operations and a Buffer. Modifying a single bit instead of an entire byte, obviously saves 87.5% of Buffer space, with low performance loss."

@@ -5,0 +5,0 @@ , "homepage": "https://github.com/rootslab/toni"

@@ -77,2 +77,18 @@ /*

log();
// CLEAR
log( '- manually fill entire Buffer with %d\'s', 0x01 );
toni.btable.fill( 0x01 );
log( '- now #clear() bitmap' );
toni.clear();
log( '- bitmap should be empty' );
for ( i = 0; i < toni.btable.length; i++ ) assert.equal( toni.btable[ i ], 0x00, 'Something goes wrong with clear function!' );
assert.equal( toni.items, 0, 'wrong value for item counter!' );
exit();

@@ -79,0 +95,0 @@ };

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